Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
65009083bfa6a094 (app launched via XPMode) 8/22/2011 Win4n6 List Serv
469e4a7982cea4d4 ? (.job) 8/22/2011 Win4n6 List Serv
b0459de4674aab56 (.vmcx) 8/22/2011 Win4n6 List Serv
89b0d939f117f75c Adobe Acrobat 9 Pro Extended (32-bit) 8/22/2011 Microsoft Windows 7 Forum
26717493b25aa6e1 Adobe Dreamweaver CS5 (32-bit) 8/22/2011 Microsoft Windows 7 Forum
e2a593822e01aed3 Adobe Flash CS5 (32-bit) 8/22/2011 Microsoft Windows 7 Forum
c765823d986857ba Adobe Illustrator CS5 (32-bit) 8/22/2011 Microsoft Windows 7 Forum
84f066768a22cc4f Adobe Photoshop CS5 (64-bit) 8/22/2011 Microsoft Windows 7 Forum
44a398496acc926d Adobe Premiere Pro CS5 (64-bit) 8/22/2011 Microsoft Windows 7 Forum
23646679aaccfae0 Adobe Reader 9. 8/22/2011 Microsoft Windows 7 Forum
# /etc/udev/rules.d/99-noautomount.rules
ENV{UDISKS_PRESENTATION_HIDE}="1"
ENV{UDISKS_PRESENTATION_NOPOLICY}="1"
ENV{UDISKS_AUTOMOUNT_HINT}="never"
ENV{UDISKS_SYSTEM_INTERNAL}="1"
ENV{UDISKS_IGNORE}="1"
@atilaromero
atilaromero / gist:48140d43fd90cb786e4d3b992ddcb945
Created November 19, 2020 12:43
Hot extend libvirt qcow2 disk
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" />
@atilaromero
atilaromero / gist:5b5c017e00a4272d96d0f75626a0e7e9
Created November 18, 2020 12:43
Multiple instances of libreoffice
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
bindsym --release Print exec maim -s -u | xclip -selection clipboard -t image/png -i
@atilaromero
atilaromero / gist:e5edb6e22dd90d5156c5c113b8e3ff62
Last active November 5, 2020 13:40
take windows folder ownership
psexec /s /i cmd
takeown /R /SKIPSL /A /D Y /F %1
cacls %1 /T /grant administrators:F /L
@atilaromero
atilaromero / .tmux.conf
Created August 21, 2020 18:27 — forked from william8th/.tmux.conf
Tmux open new pane in same directory
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}"
acpidump -n MSDM
mkdir -p ../fotos2
ls | while read i
do
convert $i -orient TopLeft -quality 50 -set filename:x '%t' ../fotos2/%[filename:x].JPG
done
#gimp: menu Image -> flatten image
find . -name '*.png' | while read i ; do echo $i ; convert -flatten +matte "$i" "$i"; done