Articles

Optical illusion: circles in motion

Here is an optical illusion I generated with Inkscape . I created this file some years ago and found it recently while cleaning my archives. Using a contrast trick it appears that circles are in motions . Click on the image below to get a full-size preview: Unfortunately I lost the original …
➟ Read more

OpenSSH commands

Here is the syntax that makes scp support spaces (source): $ scp foo.com:"/home/fubar/some\ folder/file.txt" ./ Copy a bunch of files to a remote server (or how to use find with scp): $ find /var/log/ -iname "*.log" -type f | xargs -i scp '{}' kevin@myserver:/media/backup/logs …
➟ Read more

Web commands

Scraping Download a web page an all its requisites: $ wget -r -p -nc -nH --level=1 https://pypi.python.org/simple/python-ldap/ Check the local SOCKS proxy started by a Tor Browser is working: $ curl --preproxy 127.0.0.1:9150 "https://check.torproject.org" Reuse local Tor Browser proxy …
➟ Read more

System & Shell commands

Processes Run a process detached to the current terminal and monitor its output: $ nohup my_command & $ tail -F ./nohup.out Same as above but with multiple commands, the last cloning a disk to another: $ nohup zsh -c "my_command && cat /dev/da1 > /dev/da0" & $ tail -F ./nohup.out Run a process with …
➟ Read more

MySQL commands

List all users in the current MySQL server: SELECT User, Host FROM mysql.user; Remove a user from the server: DROP USER ''@''; Remove all binary logs: RESET MASTER; Delete all binary logs but keep a week worth of logs: $ mysql --verbose --execute="PURGE BINARY LOGS BEFORE '`date +"%Y- …
➟ Read more