Search for: vim

How to step debug debugging rust in vim 8.1
24 Jul 2021

“Basically, rust-gdb is a wrapper that loads external Python pretty-printing scripts into GDB. This is useful (and somewhat necessary) when debugging more complex Rust programs because it significantly improves the display of Rust data types.” (src) what the developer has […]

GNU Linux how to vim install VimPlug
16 Jul 2021

tested on hostnamectl Static hostname: lenovo Icon name: computer-laptop Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-17-amd64 Architecture: x86-64 preperations: su – root apt update # install vim and git and curl apt install vim git curl # install […]

how to copy and paste outside of vim – system clipboard to another other gui applications – the 1 million lines text editor benchmark onemillionlines.txt
28 Jul 2020

what is the problem? https://vi.stackexchange.com/questions/13564/why-is-vim-for-debian-compiled-without-clipboard for whatever reasons a lot of vim packages come compiled without system -clipboard support. furthermore: for copy & paste per default vim uses it’s own registers (not the default primary and secondary system clipboard that […]

password protect encrypt files with vim and vi
02 Jun 2017

it’s amazing… try this: open up a text file Hit ESC (command mode) :X now vim / vi will ask you for a password if you know save and quit and reopen the file it detects that the file was […]

GNU Linux -> Vim Search & Replace
27 Aug 2015

vim is one of the greatest terminal based editors that is out there (though Stallman & Linus prefer Emacs) it is capable of editing pretty large files, that would make other gui based editors crash # Find each occurrence of […]

28 May 2015

you can enable syntax highlighting in vim by typing: :syntax on and disable by: :syntax off per default vim shows *.conf files as blue-text on black-bg, which is pretty hard to read. you can change the color-scheme used by typing: […]

GNU Linux ssh magic tricks – reverse ssh tunnel – open source admin’s vpn and teamviewer replacement (no open ports needed) – how to use ssh into a network behind router-firewall and forward port of any device to localhost
01 Apr 2024

scroll down to: “how to access user-dev-admin’s home network boxes from anywhere via reverse-ssh-tunnel! :D” ssh tunnel remote deviceD’s port access a device’s port that is only available via a specific machine 😀 or in other words: ssh-tunnel port of […]

GNU Linux howto ssh sshd config hardening security guide
10 Mar 2024

ssh can be regarded as “critical core infrastructure” time spend on it’s security is time well spend time + money well invested: https://www.openssh.com https://github.com/openssh current manpage: ssh.man.txt WARNING: this howto guide IS MOST LIKELY INCOMPLETE! WARNING! WHEN RUNNING THE SCRIPT: […]

GNU Linux howto – enable (very detailed) logging logs log postgres database + monitor script
10 Mar 2024

#!WARNING! THIS WAS TESTED FOR OLDER RHEL7 AND CENTOS! # manual editing vim /var/lib/pgsql/12/data/postgresql.conf; # postgres main config file # semi-automatic editing via sed # optional: postgres: enable detailed logging POSTGRES_MAIN_CONFIG=”/var/lib/pgsql/12/data/postgresql.conf” sed -i ‘s/#log_statement = [^”]*/log_statement = ‘all’/g’ $POSTGRES_MAIN_CONFIG sed […]

GNU Linux (Debian) – how to – find the largest 30 duplicate files wasting disk space – multi line sorting madness (mlsm) – how to output x blocks of text separated by delimiter – build (Bill Poser’s and BSDs) msort from src
04 Oct 2023

This is actually VERY usefull to find files that waste disk space. lsb_release -a; # tested on Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) the solution: czkawka_cli install rust like this (no need to install rust as root) install […]

Web Power Statistics for Masterpower-Voltronic – How to run WatchPower software GNU Linux Debian – reading writing good quality Voltronic (aka MasterPower PMS 5K-48TOP Off-Grid aka Axpert MKS II 5K aka  MF-OMEGA-UM5KV3 aka MPPSolar aka STECA KATEK SOLARIX PLI 5000W 48V (DO NOT BUY CHEAP CLONES FROM PowMr EASUN PowLand VEVOR WKS) solar hybrid inverter – how to heat LiFePo4 in winter the smart way?
27 Jun 2023

most important: use the WatchPower version that comes on CD with the solar charge controller, as newer or older versions might not be working (incompatible, changes in protocol etc) it might wise to use a galvanic isolator (even the shielding […]

07 Apr 2023

aac is a great format. it uses less space whan wav, while preserving the quality of sound (sound is important) to almost 100%$ (losless). hostnamectl; # tested with Operating System: Debian GNU/Linux 11 (bullseye) su – root apt update apt […]

2023-03 IT Cyber Security Updates – Unfixed Cisco routers, Google ads to distribute malware, Evil Dota 2 game mods, Reddit’s internal documents and source code stolen, Apple zero-day vulnerabilities, malware in images, stealthy malware, fileless malware, SIM-Swapping scammer, Street magic steals crypto, Gootkit malware is actively attacking medical and financial institutions, American Megatrends BMC vulnerabilities, publicly accessible QNAP NAS again at risk, worm via USB drives, first suggested attacks on quantum cryptography, hurray for the cloud: misconfigured cloud database leaked data on ALL Australien citizens (spell it “klaut” wich is German for “steal”), Hackers modify DNS settings to redirect victims to malicious via vulnerable WiFi routers
05 Mar 2023

(knowing that manually auto-translating Russian CyberSec news to English, is not a feasable concept and need to be automated, but as this blog is non-profit, it is for curiosity.) Booking.com found an authentication vulnerability that allows account hijacking A vulnerability […]