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 […]
Useful git commands and tips.
Links or onliners that save my git life Split a commit in two : interactive rebase, edit the commit of interest, reset HEAD^, recommit in as many splits as you want, git rebase –continue
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 […]
Install non-free latex fonts
sudo getnonfreefonts-sys –all It includes luximono (and luximono.sty) for latex, a nice fixedwidth font with all typeface included (blod, italics) I use this one for listings (lstlistings, algorithmic etc …) And now for something completly different : Install ms font in linux : sudo apt-get install msttcorefonts ttf-ms-fonts sudo fc-cache -f -v
Tags latexbash wildcard
note to me : ls *.{h,cpp} more complete ref http://www.tuxfiles.org/linuxhelp/wildcards.html
Create a pdf preview (for paper page)
Here is how I create a nice png paper preview from pdf, with ImageMagick 6.6.2 In a small shell script file And here is the result :
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