Category: script

Import/Synchronizing your imap email into Gmail with imapsync

- Installare “imapsync” (su Debian/Ubuntu “apt-get install imapsync”) – Procedere alla sincronizzazione con il seguente comando: imapsync –host1 my_mail_server –port1 143 \ –user1 changeme@yourdomain –password1 mypassword \ –host2 imap.gmail.com –port2 993 \ –user2 changeme@gmail.com –password2 mypassword \ –syncinternaldates –ssl2 –noauthmd5 –split1 100 –split2 100 – Se volete sincronizzare solo specifiche direcotry Imap bastera’ aggiungere l’opzione [...]


Screen rotation on ATI Radeon card with xrandr

Prima di tutto e’ indispensabile installare gli ultimi driver ATI disponibili (al momento il file si chiama ati-driver-installer-8-12-x86.x86_64.run). Installati i driver, va lanciato l’inserimento dei moduli nel kernel: modprobe fglrx Infine va abilitato il support a RandR per poter modificare al volo il layout dello schermo, cosi’ come la sua rotazione e molte altre cose. [...]


Yet Another SmackBook Script

Simple steps to command your macbook hitting it. You need a Leopard Mac OS X to use the script below. This is a bad quality video I took just to demonstrate what you will get. Download AMSTracker, a command-line program that retrieves acceleration data from the Sudden Motion Sensor in Apple notebook computers (Macbook and [...]


Postfix Autoreply/Out-of-Office Virtual HOWTO

Imbattutomi nell’arduo problema di trovare un modo per configurare un autorisponditore sul server di posta di un cliente che usa account virtuali e non di sistema, ho finalmente risolto l’arcano ricordandomi della mitica funzione “pipe” di Postfix, ecco come fare: Se avete Postfix configurato su mysql dovrete inanzitutto aggiungere un “transport” nella tabella appropriata del [...]


FriendFeed addicted? Try FriendFeed SPY mashup

FriendFeed SPY is arrived! Now you can spy on the FriendFeed public timeline in real time without refreshing your browser, like my first mashup Twitter SPY, it grabs the latest news posted by users on FriendFeed and display them. But FriendFeed SPY does something more because you can autenticate against your FriendFeed account to comment [...]


Last(.fm) Music Map – Discover music events around the world

Here is my last creation after my first mashup project Twitter SPY, Last(.fm) Music Map is a mashup between Last.fm music social network and Google Maps. You can find your preferred artist’s music events around the world, just put your artist name and let it find the latest concerts and events. It looks at similar [...]


Twitter SPY launched!

Today I’ve launched my first project based upon the Twitter API. Twitter SPY displays the Twitter public timeline in a fancy and addictive way, thanks to Jquery Javascript framework Twitter SPY scrolls new tweets in real time, very web 2.0 :) Twitter SPY also grabs latest url submitted by users and it displays them, I [...]


For loop explained (Bash, PHP, Perl, Phyton)

Quante volte vi sara’ capitato di scrivere un ciclo “for” nel vostro linguaggio di programmazione preferito per automatizzare un processo o per renderlo piu’ semplice? Ecco come si scrive un ciclo “for” in 4 linguaggi di programmazione molto famosi: Bash: for i in $(seq 1 10); do echo $i; done PHP: for ($i=1; $i>=10; $i++) [...]


Postfix Mail Graph monitoring with Cacti

Se avete bisogno di graficare su Cacti l’andamento di un server mail che usa Postfix come MTA, questi semplici step vi saranno di particolare aiuto: Salvate nel vostro server mail lo script mailgraph.pl che trovate all’interno del download (thanks to David Schweikert) Lanciatelo come root con l’ozione -d per renderlo demone: ./mailgraph -d (usate –help [...]


WordPress Query based on Custom Field and Category

Il bello di WordPress e’ che puoi farci di tutto e se il loop di default che ti propone non ti sta bene e vuoi loopare su query personalizzate da te, puoi. Per esempio potreste volere che la query principale riporti solo determinati post basati su specifiche categorie, tags o quello che vi pare, e [...]


Categories