Magic rebase and (re-) format
If you like clean coherent formatted code, you may already use something like clang-format and git hook to ensure format when commit
Turning crazy with sound
UPDATE: problem is still preset … still trying to find what is going on. After a recent update on my debian workstation, I had spurious sound volume changes, only with line out, no matter my usb headset either plug in or out (but when I listen with the usb headset, there was no problem). I […]
Find duplicated files
check md5 between similarly named file (toto.ext and toto 2.ext)
Cleanup hardlink from a backup with hardlink (rsync like)
Here is a small script to remove hard link of a rsync based backup, by days. I have use it to cleanup my backup and find when different version of file have been created. find . -type d > dir_list0 # my dir list is of the form ./2010/07/22/home cat dir_list0 | cut -f1-5 -d/ […]
My one line usefull commands
convert png file, keeping full color (either convert will reduce color space to 1bit our colormap) if it do not loose anything Apply convert @ -crop 600×580+100+0 -gravity Center -auto-level -define png:format=png32 output/@ to * Copy a webpage for local viewing, recursive but not the entire www 😉 wget -r -k -Dhost.com http://www.host.com/webpage ubuntu package […]
pdf optimize
http://code.google.com/p/pdfsizeopt/wiki/InstallationInstructions
bash prompt
my current simple prompt was in .bashrc but I found another more complicated 😉 one here which gives nicer results (do not cut a directory name in the middlehttps://wiki.archlinux.org/index.php/Color_Bash_Prompt
Category bashbash wildcard
note to me : ls *.{h,cpp} more complete ref http://www.tuxfiles.org/linuxhelp/wildcards.html
Categories
- bash (8)
- Computer (2)
- Computer Graphics (6)
- gfx (1)
- LaTeX (4)
- Life (3)
- OpenGL (3)
- Programming (6)
- Proposal (jobs, internship, project) (3)
- Research (2)
- script (9)
- Uncategorized (15)
- Wordpress (1)
- writing (1)
Tags
acpi alsa animation anr-structures bash c++ change clang-format cmake code computer graphics debian gcc git imageMagick install intership job keyboard latex ld linux macosx maxosx OpenGL pdf programming pulseaudio qt Radium-Engine rebase rendering shortcut sound sujet de stage teaching three.js touch typing ubuntu volume