vim is written in (https://github.com/vim/vim) Vim Script 54.3% C 39.2% Roff 1.6% Makefile 1.3% C++ 0.7% NSIS 0.5% Other 2.4% nobody is god, nobody is perfect, but vim is a pretty nice terminal based text editor, capable of handling even […]
variant1: the most minimalist approach works but imho it is very primitive 🙂 (but it works) variant2: a wee bit better let’s go hostnamectl; # tested with Virtualization: kvm Operating System: Ubuntu 22.04.4 LTS Kernel: Linux 5.15.0-94-generic Architecture: x86-64 # […]
ok let’s put it like this Mr Torvalds and Mr Stallman like their EMacs. Vim has grown into a very big program, that will contain errors (every program does and only god and nobody are perfect) But it at least […]
prepare: echo “com -nargs=1 HI exe histget(‘c’, )” >> ~/.vimrc then start vim and type to show the history (commands last typed): [ESC] :history # or short :his now to re run the command #LineNumber 29, type: :HI 29
https://joinpeertube.org/ “show me the src“: https://github.com/Chocobozzz/PeerTube Developed with by Framasoft “PeerTube is a free, decentralized and federated video platform developed as an alternative to other platforms that centralize our data and attention, such as YouTube, Dailymotion or Vimeo. ” (src) […]
“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 […]
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 […]
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 […]
it is actually possible to open a text file in less, then switch over to vim (without exiting less) and when done with editing, switch back to less. less /open/this/file/for/viewing # switch over to vim :v # now one is […]
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 […]
how to search replace in the whole text how to undo redo how to change selected text UPPERCASE to lowercase other examples: vim; # start vim # inside vim global search and replace :%s/search/replace/g vi testfile.txt; # open some file […]
vim: the config file is located at: ~/.vimrc for example one might want to change the default color highlighting scheme: one can open a config file: vim /etc/passwd # then hit ESC :syntax on :colorscheme desert # one can actually […]
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 […]
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: […]
to enable syntax highlighting in vim, open a file.php and do: :syntax on if you want syntax highlighting permanently enabled do: echo “syntax on” >> ~/.vimrc HAVE FUN! 🙂
WARNING! WORDPRESS DISPLAYS ONE-LINER-COMMANDS IN MULTIPLE LINES MAKE SURE TO ALWAYS COPY THE WHOLE LINE! based on https://anchored.host/articles/how-to-turn-a-debian-machine-into-a-router hardware requirements: have at least 2x network interfaces LAN (internal network shielded from WAN) WAN (this is the network that connects to […]
sometimes it is usefull to meassure how long what took in the shell vim /scripts/stopwatch.sh #!/bin/bash # function to get current time in seconds and milliseconds get_time() { date +%s%N | cut -b1-13 } # initial time start_time=$(get_time) echo “press […]
Debian also now adopted netplan for network interface management after this #wtf moment (now all users have to re learn how to set ip addresses X-D) lets conf unless the device is a directly-to-internet-connecting-router for UNIX KISS (if it can […]
neofetch; # tested on (fancy version of uname -a or hostnamectl su – root apt update apt install stress-ng # Ctrl+D log off root # what cpu cat /proc/cpuinfo |head processor : 0 vendor_id : AuthenticAMD cpu family : 25 […]
this is no promotion had to pay the 36 bucks, imho its absolutely worth it the rockpi-e specifically the RK3588 ARMv8 has a lot of CPU power multi core wise it is 12x times slower than AMD Ryzen 5 (6 […]
when the user signs up with grok (mail address is enough) after login there is no nice web gui that immediately allows entering prompts and remembers session no, there is just an apy key generator WARNING! THOSE $25 ARE ONLY […]
htop has a column called “S” (State) if the state of a process is “Z” (Zombie) that ain’t good htop states: S for sleeping process is waiting for an event to complete, could be I/O completion, a signal, or some […]
thanks for the EXCELLENT minimalistic MATE Desktop, but this needs to be easier X-D (even ChatGPT of 2024-11 failed to change that screensaver picture folder X-D hostnamectrl; # tested on Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-26-amd64 Architecture: […]
sometimes the most simple things are the trickiest X-D the question was, why if shutdown -r now is specified in a script or crontab directly: why won’t the server reboot (to activate newly via updates installed kernel?) the answer: crontab […]
imho it’s recommended to solve things without 3rd party packages (which might possible be neglected (no more security updates) or even hijacked after some time) it is sometimes agreed upon to extend python’s capabilities with 3rd party packages like psutil […]
pluma is minimalistic graphical text editor to work with (unless it has to handle very big files than vim is definitely better) it is basically the better version of window’s notepad X-D one such neat feature is text zoom: Ctrl […]
hostnamectl; # tested on Static hostname: debian12DevPython Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-20-amd64 Architecture: x86-64 python –version Python 3.11.2; # tested on vim run_script_in_external_terminal.py #!/usr/bin/env python import subprocess process = subprocess.Popen(‘/usr/bin/mate-terminal -e /run/some/script.sh’.split(), stdout=subprocess.PIPE) output, error = […]
whenever the inet goes down, do something, wait until inet recovers, then restart program x. hostnamectl; # tested on Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-20-amd64 Architecture: x86-64 ping -V ping from iputils 20221126 libcap: yes, IDN: yes, […]
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 […]
update: 2024-06: ed25519 is currently “the way to go” 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 […]