The Goating script

Many employees of a number of companies are probably familiar with the term “Goating”.
Various emails with funky subjects like “I love you”, or “I like goats” addressing the whole company often leave unlocked PCs to remind company members how important it is to lock computers when not using them.

Quite often those computers are left unattended and unlocked for several minutes, which is enough time to write fun messages, attach embarrassing images, etc.
goating
Read the rest of this entry

Having dreamt enough about an almost real-time snapshot report showing where my site’s visitors are coming from, including which countries, cities, referrers or organic searches, and what did they look at, all this in a one-click way, without needing to log-in to Google Analytics, click, click, click, sort, and click, or use heavy Flash based dashboards, I created a small PHP script to do it all at once.

I hacked a few lines in the GAPI PHP class by making public some of its properties, thus allowing more elegant PHP foreach scans to retrieve metrics and dimensions.

Read the rest of this entry

Large enterprise Omniture implementations may usually have a lot of offline dynamic content to be correlated with online data through SAINT.

Uploading TSV files to Omniture’s admin panel has often been a big pain in the neck. Handling format conversions through Excel, escaping disallowed characters, understand often vague error messages if something goes wrong. Who tried it, knows what I mean. :P

What about a simple PHP script that uploads data automatically?
Read the rest of this entry

When implementing Omniture’s Site Catalyst on a large set of websites/report suites, it could turn a bit tedious to define classifications one by one through Omniture’s admin interface, and then further upload the TSV classification files every time something changes.

In order to streamline this process, it’s possible to play with a few PHP scripts. A good base for an enterprise solution might consist of a relational database table containing a classification in each column.
Read the rest of this entry

Many Gentoo users tend to have more than one pc at home: say one or more desktops, a few laptops, other laptops, and some older, slower laptops, or netbooks, or whatever.

So many computers are often needed to fasten the compilation times of a whole system, which can really take a lot, unless it’s done on a quad-core machine with several GiB or more of RAM.
Read the rest of this entry

Andoram - The new game

After a very first version of a JavaScript based SVG axonometrical rendering engine, working natively on Firefox and Opera9 as the only browsers supporting SVG embedded into XHTML, some friends of mine joined to build a complete fantasy MMOG with a 3D look and feel Read the rest of this entry

Decrypting some encoded PHP

Recently I had to face some encoded PHP scripts that looked like the following:

<?php // This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited.
$OOO0O0O00=__FILE__; $OOO000000=urldecode( '%74%68%36 %73%62%65%68%71 %6c%61%34%63%6f %5f %73%61 %64%66%70 %6e%72'); $OO00O0000=18968; $OOO0000O0 =$OOO000000{4} .$OOO000000{9} .$OOO000000{3} .$OOO000000{5}; $OOO0000O0 .=$OOO000000{2} .$OOO000000{10} .$OOO000000{13} .$OOO000000{16};$OOO0000O0 .=$OOO0000O0{3} .$OOO000000{11} .$OOO000000{12} .$OOO0000O0{7} .$OOO000000{5}; $O0O0000O0='OOO0000O0'; eval(($O0O0000O0('JE9PME9PMDAwMD0kT09PMDAwMDAwez
E3fS4kT09PMDAw 9PMDAwMDAw ezE4 fS4kT09PMD AwMDAwezV9LiR PT08DU2OC ksJ0VudGVye Read the rest of this entry

The below is a script to turn a standard Linux box into a very good router, featuring traffic shaping and QoS rule sets for an optimal user experience and a fair connection prioritisation under heavy network load.

I’m running it on a 1Ghz CPU Gentoo Linux box, sharing a cable connection with other 11 machines and an access point opened to rest of the world.
The tool can be run on any Linux distribuition, not on a Windows machine, if it’s what you are looking for.

By using this script, anyone can exchange files on the Internet with any P2P application like DC++, BitTorrent, Emule, watch Youtube video clips, talk to people with Skype, MSN Messenger or Ekiga, play realtime online games, and have all those connections work flawlessly, audio/video VoIP calls without cloggering, online gaming without delays, P2P as fast as possible.

The router script doesn’t do any magic actually. It just makes sure traffic is routed the proper way, and gives the proper applications the proper bandwidth at the proper time. Read the rest of this entry