Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 903 Bytes

File metadata and controls

30 lines (21 loc) · 903 Bytes

Miscellaneous

Ubuntu Xenial debhelper mayhem

Ubuntu Xenial debhelper has a weird dependency issue with debhelper: debhelper-autoreconf is not installed on schroot creation ... needs to investigate (or not 🤷)

Split file content based on regex into multiple files

awk '/<regexp>/{filename=NR".txt"}; {print >filename}' dump.txt

Add logger to a shell script

cat >>/tmp/vagrant.log<<EOF
$(date) '${dir_name}' '${name}' '$*'
EOF

Check start date of commands

ps -C <cmd> -o pid,ppid,command,lstart

allow google chrome to use system ca-cacertificates on debian

sudo apt install p11-kit p11-kit-modules sudo dpkg-divert --local --rename --divert /usr/lib.x86_64-linux-gnu.libnssckbi.so.diverted --add /usr/lib/x86_64-linux-gnu/libnssckbi.so sudo ln -sr /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so /usr/lib/x86_64-linux-gnu/libnssckbi.so