Posts

TAM + Neovim + Github

 list git_history.. term  cp -fv ../src/* ./src/; cp -fv ../README.md ./; cp -fv ../Cargo.toml ./; cp -vf ../LICENSE ./ term git add src/* Cargo.toml README.md LICENSE term git commit -m "v 4.1.1" -m "" term git switch pre-workable term git switch not_tested_func term git switch trunk term git push -u term cargo clean;cargo publish term git log term git reset --hard HEAD term git checkout commit_hash term  git commit --amend -m "" term git rm Cargo.lock term git commit -m "v 4.1.1" -m "corrections & optimizations." term git switch --orphan NAME ================================  > nano ~/.fishrc alias gitty.rst='~/Rust/TAM/target/debug/sark0y_tam_rst -find-files -path ~/Rust/TAM/src -in-name "pass==-iE \.rs" -view-w "nvim.app" -view-w "nano" -tui-app "vim" -tui-app "ne" -view-w "mc" -dont-exit $argv' OR.. alias gitty.rst='sark0y_tam_rst -find-files -path ~/Ru

Rust for Neovim.

 https://github.com/greensegfault/neovim-rust/wiki/Install-Neovim,-NvChad,-Mason,-and-rust%E2%80%90analyzer-from-scratch

TAM, guide of features & smart tricks.

Image
 Current version is 9.1.3. So, Dear User, let's dive into.. Install TAM. cargo install sark0y_tam_rst Run TAM. fish> nano ~/.fishrc alias tam.rst='sark0y_tam_rst -find-files -path /path/to/dir -cols 3 -rows 9 -in-name \'pass==-iE \w\' -view-w "flatpak run info.smplayer.SMPlayer" -view-w "smplayer" -view-w "gwenview" -dont-exit $argv' bash> nano ~/.bashrc alias tam.rst='sark0y_tam_rst -find-files -path /path/to/dir -cols 3 -rows 9 -in-name "pass==-iE \w" -view-w "flatpak run info.smplayer.SMPlayer" -view-w "smplayer" -view-w "gwenview" -dont-exit $@' So, now it's possible just.. > tam.rst Some terminology.. Actually, TAM provides commands & subcommands: for shorter notation, c{...} is a command; s{...} is a subcommand + we have hotkeys {UpArrow}, {DownArrow}, {Insert} etc. If a context is known for sure - just use {...}. For instance, c{sieve ...} == {sieve ...}. The very P

How to print a func with Grep.

 grep -oPz  '(?s)fn\s+mk_uid.*?fn' -R ~/Rust/TAM/src/ lst.rs:fn mk_uid(){     let front_list = take_list_adr_env("found_files").unreel_link_to_depth(1);     let front_list = read_tail(&front_list, "/");     crate::cache::set_uid_cache(&front_list);     crate::update18::upd_screen_or_not( (-1, "".strn() ) ); } pub fn

Malware Rhapsody

 https://crates.io/crates/Malware_Rhapsody

Smart way to handle CPU.

 bash > cat   /etc/systemd/system/setcpuspeed@.service [Unit] Description=cpu speed is set for %I Wants=network.target Before=network.target #BindsTo=sys-subsystem-net-devices-%i.device #After=sys-subsystem-net-devices-%i.device [Service] Type=oneshot ExecStart=/bin/inst_cpupower ExecStart=/sbin/modprobe acpi-cpufreq ExecStart=/usr/bin/cpupower frequency-set --max  %I #ExecStart=/usr/bin/cpufreq-set --max %I RemainAfterExit=yes [Install] WantedBy=multi-user.target bash > cat /bin/inst_cpupower bash > systemctl enable setcpuspeed@3.4GHz bash >  systemctl   start   setcpuspeed@3.4GHz CPU's downclock makes possible to avoid local overheats which cannot be prevented w/ even the best cooling systems + too high frequency provides eddy currents to activate parasitic circuitries.

7z to make encrypted archive.

  7z a -t 7z -p -mhe archive_name ./file_to_add "-mhe" to encrypt file names too.