Your Ad Here

This Blog is not to read or go through

because, I have never been such a mess

Search the blog instead

Wednesday, June 5, 2013

git reset to a commit on remote

1. reset to any known good commit
git push -f origin last_known_good_commit:branch_name –

Monday, June 3, 2013

How To Fix “421 Cleartext Sessions Not Accepted” Error In Filezilla?

Server is enforcing TLS encryption for the connections. Hence, need to add prefix ftpes:// before the hostname of the server

if trying to connection to,
simply change the hostname to ftpes://

Refer to this article for more details if required. 

Tuesday, May 14, 2013

curl post (php)

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);

//execute post
$result = curl_exec($ch);

//close connection

Sunday, March 17, 2013

Check ubuntu distribution information

$ cat /etc/lsb-release

Saturday, March 9, 2013

Mplayer and your own Theare (For Public)

$ mplayer -fs -vf mirror video.flv

Find a window with white curtain, and project from inside. Get a gang outside the window and run your own theatre .

It was COOL to see Sparrow SMS commercial blowup. wooooooooooooow

Friday, January 18, 2013

[Imagemagick] Explode Image into pieces

convert -crop 16x16 mascotsmall.png +repage mascot-%d.png
Your Ad Here