This file contains hidden or 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
| https://serverfault.com/a/743106/536603 | |
| virsh qemu-monitor-command ${vm_name?} block_resize drive-${alias?} 200G --hmp | |
| alias: something like 'virtio-disk0'. It comes from: | |
| <disk type="file" device="disk"> | |
| <driver name="qemu" type="qcow2" /> | |
| <source file="/data/test.img" /> | |
| <backingStore /> | |
| <target dev="vda" bus="virtio" /> |
This file contains hidden or 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
| N=1; HOME=/tmp/lo$N; mkdir $HOME; libreoffice --safe-mode --quickstart=no --pidfile=$HOME/lo$N.pid | |
| N=2; HOME=/tmp/lo$N; mkdir $HOME; libreoffice --safe-mode --quickstart=no --pidfile=$HOME/lo$N.pid |
This file contains hidden or 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
| bindsym --release Print exec maim -s -u | xclip -selection clipboard -t image/png -i |
This file contains hidden or 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
| psexec /s /i cmd | |
| takeown /R /SKIPSL /A /D Y /F %1 | |
| cacls %1 /T /grant administrators:F /L |
This file contains hidden or 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
| set -g prefix C-a | |
| unbind-key C-b | |
| bind-key C-a send-prefix | |
| bind c new-window -c "#{pane_current_path}" | |
| bind '"' split-window -c "#{pane_current_path}" | |
| bind % split-window -h -c "#{pane_current_path}" |
This file contains hidden or 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
| acpidump -n MSDM |
This file contains hidden or 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
| mkdir -p ../fotos2 | |
| ls | while read i | |
| do | |
| convert $i -orient TopLeft -quality 50 -set filename:x '%t' ../fotos2/%[filename:x].JPG | |
| done |
This file contains hidden or 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
| # MBR | |
| sudo sfdisk -d /dev/sdb | grep -v label-id | sudo sfdisk /dev/sda | |
| # GPT | |
| sgdisk --replicate=$dest $source | |
| sgdisk -G $dest |
This file contains hidden or 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
| dkr () | |
| { | |
| docker run --rm -it -w "`pwd`" -v "`pwd`":"`pwd`":Z -e DISPLAY -e GDK_BACKEND -e GDK_SCALE -e GDK_DPI_SCALE -e QT_DEVICE_PIXEL_RATIO -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 --device /dev/dri --device /dev/snd -v /etc/localtime:/etc/localtime:ro -v /tmp/.X11-unix/:/tmp/.X11-unix/ "$@" | |
| } |
This file contains hidden or 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
| #gimp: menu Image -> flatten image | |
| find . -name '*.png' | while read i ; do echo $i ; convert -flatten +matte "$i" "$i"; done |
NewerOlder