Articles

Subversion commands

Native commands Produce a patch file of changes committed in revision 1377: 1 $ svn diff -r 1376:1377 > diff.patch Merge revision 3403 of the trunk into the “1.0” branch: 1 $ cd branches/1.0 2 $ svn merge -c3403 https://svn.example.com/my_project/trunk 3 $ svn commit -m …
➟ Read more

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): 1 $ 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): 1 $ find /var/log/ -iname "*.log" -type f | xargs -i scp '{}' kevin@myserver:/media …
➟ Read more

Web commands

Scraping Download a web page an all its requisites: 1 $ 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: 1 $ curl --preproxy 127.0.0.1:9150 "https://check.torproject.org" Reuse local Tor …
➟ Read more

System & Shell commands

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