xterm settings

I mostly work in terminals, so I want them to look the way I want them to look. I accomplish this by editing the .Xresources file. This is what a bare-bones .Xresources file looks like: Then do not forget to load the new resources into the X (or wayland?) server: If you now launch a […]

Continue Reading

Emacs shortcuts revisited

In this post I wrote down a few Emacs shortcuts. Today I’m trying again, but a little more organised.   A few defenitions: buffer : a representation of a file in memory of emacs. You edit a buffer frame : the whole of windows/menu’s/mini-buffer. On a graphical interface you can have multiple frames. On a text […]

Continue Reading

Assembly and opcodes

Intro When a program is compiled (and linked) it will no longer contains readable lines of code. Instead it will consist of opcodes (operation codes). I would like to see whether I can find out what dome opcodes mean. You might say “just look at the intel or AMD manual and there you go”…but where […]

Continue Reading

sar usage

I like to use the linux utility sar (system activity reporter (?)) I gives a fast and quite complete overview over the performance of a linux system. SAR has a lot of possibilitys. I just highlight a few of them to remember how the syntax is 🙂 CPU information of today oracle@lqas4342:~$sar Linux 4.18.0-425.13.1.el8_7.x86_64 (lqas4342.mod.nl) […]

Continue Reading

tcpdump

Just a write up of the filters I sometimes use/need. (work in progress…) Filtering _out_ ssh: tcpdump “port ! ssh” Just seeing ICMP packets: tcpdump “icmp” Filtering on port _and_ host: tcpdump “port ssh && host host-name”

Continue Reading

ansible reboot after updating packages

When installing security/kernel packages the system must be rebooted. It would be a bit silly to reboot always. So..without further ado…you can solve this for example with the following playbook: [martijn@fedora basis]$ cat update_all.yaml — – name: Update alle hosts hosts: all become: true tasks: – name: install dnf tools dnf: state: present name: dnf-utils […]

Continue Reading

vi beep

I’m was going crazy because off the annoying bell sound vi(m) makes all the time. To solve it I put “set belloff=all” in my .vimrc martijn@radijs:~$ cat .vimrc set belloff=all martijn@radijs:~$

Continue Reading

DIG

Whenever I need to do something concerning DNS resolving I resort to dig. Some examples: Getting the IP adres for maboc.nl: martijnmbos@penguin:~$ dig maboc.nl ; DiG 9.11.5-P4-5.1+deb10u3-Debian maboc.nl ;; global options: +cmd ;; Got answer: ;; ->>HEADERHEADERHEADERHEADER

Continue Reading

Emacs shortcuts

My most used emacs short-cuts: Alt – v : Scroll page up Ctrl – v : Scroll page down Ctrl – k : cut line into the yank buffer Ctrl – y : Yank line(s) (paste yank buffer) Ctrl – a : Move to the start of a line Ctrl – e : Move to […]

Continue Reading