tips: search text into list file and order by date

Simple but power command to search text inside file ed order list file by date ….. thx to google and all user grep -rl ‘REGEX’ * | xargs ls -trl

January 13, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#linux #Script #Script #tips

Windows ANSI Color (WAC)

wac.exe is a small command line utility that lets you use ANSI colors on Windows. link https://github.com/aslakhellesoy/wac

November 10, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#ruby #Script #Script #tips #tips #Uncategorized

emacs in terminal mode

how to start emacs in terminal-mode instead of graphical mode ? the solutions is : emacs -nw

October 22, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#Script #tips

winetricks Gentoo 64-bit WINEPREFIX

if you have this message you’are using a 64-bit WINEPREFIX, most of winetricks hasn’t been fixed for win64 yet. rm $HOME/.wine -rf export WINEARCH=win32 export WINEPREFIX=$HOME/.wine/ now, you use wine 32 bit into gentoo (or other distro) 64 bit :D

October 14, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#64bit #gentoo #Script #tips #wine #winetricks

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 ...

July 1, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#backup #linux #rsync #Script #Script #tips

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 ...

June 28, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#ebook #foxit #linux #pdf #tips

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”

June 14, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#tips

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 http://groups.google.com/group/rubyinstaller/browse_thread/thread/c837c4438d91208b but , on my laptop don’t work…. With Windows 7 work well: Step 1: DOWNLOAD Ruby => http://rubyforge.org/frs/download.php/74298/rubyinstaller-1.9.2-p180.exe DevKit => http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe ImageMagick => http://www.imagemagick.org/download/binaries/ImageMagick-6.6.7-9-Q16-windows-dll.exe RMagick => https://github.com/rmagick/rmagick/zipball/master type-windows.xml => http://www.imagemagick.org/source/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.6.7-Q16configtype-ghostscript.xml with type-windows.xml RMagick => c:rmagick-rmagick Step 3: Set Enviroment variable ...

February 12, 2010 · 2 min · Carlo Bertini [WaYdotNET]
#mingw32 #rmagick #ruby #ruby #ruby 1.9.1 #RubyInstaller #tips #windows

Coder & Graph :D

[caption id=“attachment_92” align=“aligncenter” width=“258” caption=“Carlo Bertini // Patrizio Grimaldi”][/caption] Siamo bellissimi :D

February 5, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#Bertini #coder #graph #Grimaldi #Uncategorized

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.6.0_15) [amd64-java] ) rmagick (http://rmagick.rubyforge.org/) optiflag (http://optiflag.rubyforge.org/) syntax: ...

February 2, 2010 · 2 min · Carlo Bertini [WaYdotNET]
#optiflag #photo #photo resize #resize #rmagick #ruby #Script