Post your Gtalk/Jabber Status Automatically on Twitter
If you need to post you google talk, or for that matter any jabber service, automatically to twitter, then have a look at my code over at http://github.com/aniketh/jabber-global-status
The list of commands that the server supports are :
add
- this command adds the users twitter credentials to the server
start
- starts auto-tweeting of users IM status message
stop
- stops auto-tweeting of users IM status message
tweet
- posts the message as a twitter update
del
- deletes user twitter credentials from the system
This code is basically just a combination of the xmpp php library and a twitter class for php. The biyly url shortening service has also been tied in just for completeness.
Cheaper Domain Names
I’ve finally decided to get myself a reseller account for all my domains. This way, the prices I get are really cheap, and as a lot of providers already use the orderbox interface, there is nothing I need to do or implement to start using the site.
The benefits are sort of immediate, with reseller-cost domains available at ~8USD when providers normally charge ~10USD.
Now, even if these domains are resold at near cost price, providing just a service, it would be possible to get the costs down even more. Expect more on this…
Download files from a 4chan post
If you need to download all images (or files) from a 4chan post, then here is a quick script to do it. You can run it using PHP on the command line. Saves a lot of time when you see interesting wallpapers and things like that.
Once you save the file, make it executable by using
chmod a+x download-4chan.php
and then you can start downloading all the images using something like
./download-4chan.php http://boards.4chan.org/wg/res/2508871
Shorten URLs in strings with bit.ly
Here is a simple class that shortens the URLs within a string using the bit.ly shortening service. Example is at the bottom of the file.
If you only need to shorten a list of URLs (not within the string), then use the “shorten” function. Bitly api documentation is at http://code.google.com/p/bitly-api/wiki/ApiDocumentation .
Hello world!
Everything important should begin with a “Hello World”. After this, the journey can begin…