This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backup luks partition | |
1. Boot clonezilla | |
2. Drop into the command line | |
3. open the encrypted external drive partition | |
cryptsetup luksOpen /dev/sda3 backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
luks encrypted lvm across two disks / partitions | |
/dev/sda3 and /dev/sdb1 | |
1. open encrypted parts | |
cryptsetup luksOpen /dev/sda3 crypt1 | |
(enter pass) | |
cryptsetup luksOpen /dev/sdb1 crypt2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable Alt+` in gnome which is used for the VCS Operations Popup in intellij | |
gsettings set org.gnome.desktop.wm.keybindings switch-group "['disabled']" | |
# disable Ctrl+Alt+Shift+Down and Ctrl+Alt+Shift+Up | |
# which are used for Next / Previous VCS change in intellij | |
# not sure if this one works yet but Ctrl+Alt+Shift+Super+Up/Down seems to even though | |
# intellij makes no mention of the super key in the keymap... | |
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-down "['disabled']" | |
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-up "['disabled']" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use ImageMagick convert | |
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t |