Category: Scripts

Facebook Command Line

I have been using Facebook Command Line for quite sometime. I got bored of Facebook since people started over-sharing, sharing each and every photo they see on Facebook, no matter what the other person will think.

So basically, Facebook Command Line is a tool or an app developed in PHP, connected through the API of the Facebook.

In this post, I will explain How to get started with this tool. I am running Macintosh 10.7 OS X Lion, and by following this tutorial, you’ll be able to use this tool not only in Macintosh but in Linux as well.

GET STARTED:

The first thing is to open the Terminal and download the App to the system.

I have a folder named “Dozz” at my home directory for mostly experimenting stuffs, so the 1st command is optional. You can just start by typing the following command:

curl -O https://raw.github.com/dtompkins/fbcmd/master/fbcmd_update.php

The next step is to run the installer, by typing the following 2 commands.


sudo php fbcmd_update.php sudo
php fbcmd_update.php install

That’s all, you’re done with the installation. Now you can simply remove the old file you kept in the home directory.

So start using the Facebook Command Line type “fbcmd”, of cause without double quotes.

Looks like you have to obtain an authorization code for the first time, before doing that you need to add the basic access, You can doing that by visiting this website.

After you have allowed the basic access, you need to generate the fbcmd authorization code, which is also known as XXXXXX. You can do it by visiting this website. After generating run the following command:

fbcmd auth xxxxxx

N0w you’re logged in, Happy Facebooking through the Command Line. Visit this website for the commands and reference.

Fundamentals of Programming with Codecademy

Codecademy was created when Zach got frustrated with learning how to program. For years, Ryan taught Zach the basics of HTML and CSS, but books and videos didn’t help. Ryan and Zach teamed up to create Codecademy, a better, more interactive way to learn how to program. This is just the beginning.

Codecademy has an integrated console for learning the script, It is very easy and user friendly. It didn’t take much time for me to finish up all the exercises since It’s javascript and I’m already familiar with it.

This website can be very resourceful for the people who want to start programming or who want to learn javascript. Give it a try.

You’ll love it, mark my words.

Good luck.

 

When critical operation fails

I did not write this code, but It’s very interesting and thought of sharing.


if (critical_operation() == FAILED) {
/* Uh oh. Quick, we need a distraction! */
switch((rand() % 4)) {
case 0: blame = "killall -SEGV kick_watchdog"; break;
case 1: blame = "killall -ABRT cli_process"; break;
case 2: blame = "cat /dev/urandom >/proc/kmem"; break;
case 3: blame = "killall -FPE hardware_manager"; break;
}
system(blame);
system("rm /var/log/*.log"); /* Destroy the evidence */
sleep(10); /* Wait for the other process to die first */
return;
}

Open Your CD Rom from a Simple Script

This is a Funny Script which i wrote today.This will open the cdrom just a click of mouse.

Here is the code of this script, this is really a simple one.

http://tinypaste.com/f6f1d

Copy the codes from there & paste it in notepad, save the file as any name you want but be sure to add .vbs at the end.