View xfb.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# This is a demonstration script for Facebook Chat | |
# using the X-FACEBOOK-PLATFORM SASL mechanism. | |
# It requires pyfacebook and pyxmpp to be installed. | |
# This client only works for desktop applications (configured in the | |
# developer app), and uses the old-style auth.getSession mechanism to get a | |
# Facebook session. For newer-style or web apps, only the | |
# `get_facebook_client` function should have to change. |
View ubuntu.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package to install, to get an open terminal in Right-Click context menu. | |
sudo apt-get install nautilus-open-terminal | |
# To move window controls in your Ubuntu from left to right… | |
gconftool-2 --type string --set /apps/metacity/general/button_layout "menu:minimize,maximize,close" | |
# To switch back | |
gconftool-2 --type string --set /apps/metacity/general/button_layout "close,maximize,minimize:menu" | |
# Repeat last command with sudo | |
sudo !! |
View gitpatch.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To visualize branches: | |
git branch | |
#To create a new branch: | |
git branch testbranch | |
#To change to created branch: | |
git checkout testbranch | |
#Track new files: |
View anchorstyle.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The CSS styling for the class 'decolor' */ | |
a.decolor{ | |
text-decoration: none; | |
color: #000; | |
} |
View wordpress.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download WordPress | |
cd /tmp | |
wget http://wordpress.org/latest.tar.gz | |
# Extract your WordPress archieve into your server directory | |
tar zxvf latest.tar.gz | |
mv wordpress/ /var/www | |
# Create MySQL Database for WordPress | |
mysql -u root -p |
View timed-download.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import urllib2 | |
import time | |
from datetime import datetime | |
# The following parameters can be changed to suite the requirements of user |
View aws.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import urllib2 | |
import time | |
from datetime import datetime | |
from BeautifulSoup import BeautifulSoup | |
# The following parameters can be changed to suite the requirements of user | |
# url = "http://www.imd.gov.in/section/nhac/aws/aws00.htm" |
View awsdata.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Base Url: | |
http://www.imdaws.com/WeatherAWSData.aspx? | |
&FromDate=17/11/2011 | |
&ToDate=17/11/2011 | |
&State=20 |
View Python.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.py[co] | |
# Packages | |
*.egg | |
*.egg-info | |
dist | |
build | |
eggs | |
parts | |
bin |
View .vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" Vim, not Vi. | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
filetype off | |
"" General Settings | |
" Enable syntax highlighting. | |
syntax on | |
" Line endings should be Unix-style unless the file is from someone else. |
OlderNewer