Carlo Bertini's personal website

Web Developer/ Devops and problem solver adept at programming

mini backup with rsync

#!/bin/bash # Backup file remote/local # By Carlo Bertini [WaYdotNET] # il tutto utilizzando rsync senza scomodare subversion # RSYNC OPTION # -r => ricorsivo # -l => copy symlinks as symlinks # -p => preserve permissions # -v => verbose # -u => update, ignorare i file che sono piĆ¹ nuovi nella destinazione # -a => archive mode # -z => comprime i file durante l invio # -h => rendere leggibile l output # –delete => cancello i file estranei nella destinazione

how to highlight and bookmarks pdf files on linux

Because i need to highlight and bookmarks pdf file on linux/windows, only solution wich i’ve found is Foxit Reader 3.3.1 for Windows [UPDATE] Foxit Reader 4.0 for Windows link 06/29/10 The linux version is too old and not have these function, but with wine work well (you need also mdac2.8 and jet4.0) tips 4 me: create foxit in $HOME/bin #!/bin/sh wine /home/waydotnet/wine_tools/Foxit Reader.exe $1 and chmod +x foxit If you found another solution, please comment :D Bye

My notes

compile wxruby 64bit system: export CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=-fPIC Set proxy: export http_proxy="http://user:pass@proxy:port” export ftp_proxy="http://user:pass@proxy:port”

RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! :D [UPDATE]

RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! :D Ispirate from : installing rmagick with mingw and ruby 1.9 and but , on my laptop don’t work…. With Windows 7 work well: Step 1: DOWNLOAD Ruby => DevKit => ImageMagick => RMagick => type-windows.xml => Step 2: Install Ruby => c:Ruby192 DevKit => c:DevKit ImageMagick => c:ImageMagick-6.6.7-Q16 [WITH HEADER !!!!!!!] 3.a) Replace c:ImageMagick-6.

Photo Resize from console :D

Qui raccolgo un po di script che mi sono fatto x la vita di tutti i giorni :D Photo resize (photo_resize) piccolo script in ruby che serve per fare delle thumbnails di foto, passando almeno la cartella contenente le foto (strano :D) Require: ruby (test with: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] ||ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux] || jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) 64-Bit Server VM 1.