ffmpeg -f concat -safe 0 -i <(printf "file '$PWD/%s'\n" ./*.wav) -c copy output.wav
---
libreoffice --headless --convert-to pdf file.xlsx
to convert csv to pdf (takes forever tho; but produces output of a decent size; but poor quality):
libreoffice --headless --infilter=text --convert-to pdf file.csv
---
pdftk in.pdf output out.pdf user_pw password
---
iconv -f utf8 -t asciiTRANSLIT /tmp/t.txt
---
qpdf -password=<your-password> -decrypt /path/to/secured.pdf out.pdf
---
sudo gem install typogen sudo xargs typogen <&0
---
dbus-monitor --system dbus-monitor --session grep . -r /sys/firmware/acpi/interrupts/
echo "disable" > /sys/firmware/acpi/interrupts/gpe50
---
from importlib import reload
---
exiftool -all= image.jpg
---
f=filename; (tar --create $f > /run/shm/$f.tar); lzip /run/shm/$f.tar; rm -vf /run/shm/$f.tar; gpg --symmetric /run/shm/$f.tar.lz; mv /run/shm/$f.tar.lz.gpg .; rm -vf /run/shm/$f.tar.lz;
tar xovf filename.tar.lz --lzip
---
find . -print0
| xargs -0 cmd |
find -print -exec cmd '{}' \;
---
to make a hard drive spin down (go to sleep):
to make gpg-agent forget everything (i think):
echo RELOADAGENT
| gpg-connect-agent |
to tell gpg-agent to reload .gnupg/gpg-agent.conf:
pkill -SIGHUP gpg-agent
---
hdparm -S 6 /dev/sdb
---
dropbox exclude
---
sudo ifconfig wlp2s0 down
sudo rmmod cfg80211 mwifiex mwifiex_pcie sudo rmmod cfg80211 mwifiex mwifiex_pcie sudo rmmod cfg80211 mwifiex mwifiex_pcie sudo rmmod cfg80211 mwifiex mwifiex_pcie
sudo modprobe cfg80211 sudo modprobe mwifiex sudo modprobe mwifiex_pcie
sudo ifconfig wlp2s0 up
---
xrdb -merge ~/.Xresources
---
to install a .deb from a slightly untrusted source but not run the postinstall (because you don't want them running anything with root access):
apt-get download <package> sudo dpkg --unpack <package>*.deb sudo rm /var/lib/dpkg/info/<package>.postinst -f sudo dpkg --configure <package> sudo apt-get install -yf #To fix dependencies
---
sudo systemctl status sudo systemctl start sudo systemctl stop sudo systemctl is-enabled sudo systemctl enable sudo systemctl disable
more at [1]
---
cd ~/newwebsite; hugo hugo serve& cd ~/newwebsite; hugo; find public -type d -exec chmod 755 {} +; chmod -R a+r public; scp -rp ~/newwebsite/public/* web:; cd -
---
in emacs, to convert