command 2>&1 | another-command
- Copy cert to
/usr/local/share/ca-certificates/
- sudo update-ca-certificates
- Add these lines to
~/.config/pip/pip.conf
\
[global]
cert=/etc/ssl/certs/ca-certificates.crt
Source: https://stackoverflow.com/a/22625150
curl-format.txt:
time_namelookup: %{time_namelookup}s\n
time_connect: %{time_connect}s\n
time_appconnect: %{time_appconnect}s\n
time_pretransfer: %{time_pretransfer}s\n
time_redirect: %{time_redirect}s\n
time_starttransfer: %{time_starttransfer}s\n
----------\n
time_total: %{time_total}s\n
Command: curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"
git ls-tree --full-tree -r --name-only HEAD | head -n 3 | tee /dev/tty | xargs -I{} sed -i -e '$a\' {}
From Stackoverflow:
for f in $(git grep --cached -Il ''); do tail -c1 $f | read -r _ || echo >> $f; done
Useful for installing a package on a computer without network. Borrowed from: https://stackoverflow.com/a/27469489
Download:
apt-get download $(apt-rdepends <package>|grep -v "^ " |grep -v "^libc-dev$")
Install:
sudo dpkg -i *.deb
xclip -selection clipboard -t image/png -i example.png
- Empty man-db cache:
sudo mandb -t && sudo rm -rf /var/cache/man/ && sudo mandb -c
sudo dpkg -- configure -a