- Shell 86.4%
- Lua 13.6%
Chris' Configs
The install.sh script symlinks the dotfiles in this directory to wherever they belong.
There's a server, a desktop and an IBM version.
The server version is basically a subset of all desktop configs that also work on an SSH server.
The IBM version is a subset of the desktop version.
How to Cook Like I Do?
- Fork this repo,
- adjust the configs to your liking
- and run
./install.sh serveror./install.sh desktop. (Warning: this script permanently overwrites your current configs.)
Updating Lvim
- delete
~/.local/share/lvim
Gentoo Config
The gentoo subdirectory contains my Gentoo configs.
The same three-step plan applies to it, with an addition to the third:
You have to run the install.sh script with root privileges (with sudo).
Resources
- Chris' Dotfiles (Looking for something aesthetic? Check his stuff out.)
- clang-format-configurator
- Pascal's Configs
- inputrc for Humans
- .inputrc for vi
- Setup GitHub Verified Commits
- Wacom
ssh s_besch@i08fs1.informatik.kit.edu lp -d pool-sw1 -o sides=two-sided-long-edge < file.pdf- http://studscan.informatik.kit.edu with
ssh -C2qTnND 9090 i08fs1.informatik.kit.eduand SOCK5 Host: localhost; Port: 9090; SOCKS V5
GDB Commands
tui enabletarget record-fullrecordreverse-stepreverse-next- clear screen: ctrl+l
Blender Hotkeys
- join objects: ctrl+j in object mode
- separate meshes: p in edit mode
- hide everything except for selected: shift+h
- show hidden objects: alt+h
- duplicate selected: shift+d
- select all linked : ctrl+l
- modifier for move (g), scale (s):
- in one direction: x, y, z
- in both other directions: shift+x, shift+y, shift+z
- all to same hight: s z 0
Neovim Hotkeys
- buffer to new Tab:
<C-w>T :%s/\(\.\|?\|\!\) /1円\r/g:%s/\_[kK]alman \_[fF]ilter/Kalman Filter/g
Solve Issues with Pacman Keys on EndeavourOS
sudo rm -r /etc/pacman.d/gnupgsudo pacman-key --initsudo pacman-key --populate archlinux endeavourossudo pacman -Syy archlinux-keyring endeavouros-keyring
KiCad Hotkeys
- repour: B
Fixed Weird PDF
- remove crop:
gs -o Kap\ A_\ Folien_Waermeschutz_fixed_size.pdf -sDEVICE=pdfwrite -dPDFFitPage -r300x300 -g2480x3507 Kap\ A_\ Folien_Waermeschutz.pdf - rotate landscape pages:
pdftk Kap\ A_\ Folien_Waermeschutz_fixed_size.pdf cat 1-40 41left 42 43-53left 54-55 56left 57 58-59left 60 61-66left 67-end output Kap\ A_\ Folien_Waermeschutz_fixed_size_rotated.pdf - turn into bitmap:
gimp Kap\ A_\ Folien_Waermeschutz_fixed_size_rotated.pdfand export asKap A_ Folien_Waermeschutz_fixed_size_rotated_gimped.pdf - compress:
pdfcomp Kap A_ Folien_Waermeschutz_fixed_size_rotated_gimped.pdfakags -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="comp_$file" "$file"
Revert Arch Grub Update
-
Make a Live USB with archlinux (or archlinux based) and boot on it
-
Mount your partitions (/, /home, /boot/efi... and so on)
-
Use arch-chroot to "connect" as root. From now on, it's like your on your PC, from the cli
-
Find the previous version number of grub by looking at the logs (grep -i upgrade /var/log/pacman.log | grep grub should do the trick)
-
Locate the corresponding archive in /var/cache/pacman/pkg/ (find /var/cache/pacman/pkg/ -iname "grub*")
-
Use pacman to downgrade (pacman -U /var/cache/pacman/pkg/grub-2:2... complete with the previous version number)
-
If not done automatically, grub-mkconfig -o /boot/grub/grub.cfg
-
Reboot
-
grub-mkconfig -o /boot/grub/grub.cfg -
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-grub
PDF Procedures
Multiple A5 on A4
yay pdfjam pdfpages pdftkpdftk Zusammenfassung_240716_091112.pdf cat 4-endright output rotated_last.pdfpdftk Zusammenfassung_240716_091112.pdf cat 1-3 output first.pdfssh s_besch@i08fs1.informatik.kit.edu lp -d pool-sw3 < first.pdfpdfjam rotated_last.pdf --nup 1x2 --outfile last.pdf- gimp scaling
ssh s_besch@i08fs1.informatik.kit.edu lp -d pool-farb1 -o sides=two-sided-long-edge < last_scaled.pdf
red sections in pdf
pdftk edited_script.pdf burstrm pg_0{001..176}.pdffor filename in pg_*.pdf; do convert $filename -colorspace RGB -format %c -depth 8 histogram:info:- | grep -i '#ff0000' || rm $filename ; donefirefox pg_*.pdf
download files from file
while read URL; do yt-dlp "$URL"; done < sources.txtwhile read URL; do echo "$URL" && curl -s "$URL" | htmlq 'meta[property="og:image"]' --attribute content | xargs curl -O; done < <(grep https://example.com sources.txt)
Other
cat diary.md | grep '### ' | sed 's/### \(.\+\), \(.\+\) \(.\+\) \(.\+\)/1円/g' | sort | uniq -c
VSC
{
"keyboard.dispatch": "keyCode"
}
Bash Commands
cut -f1 -d ' ' lsof_250509.txt | sort | uniq -c | sort -gcat seminar-report.tex | grep -P '^([A-Za-z]|\\autoref|\\code)' | awk '{print 1ドル;}' | sort | uniq -c | sort -n