Skip to content

Instantly share code, notes, and snippets.

View tecoholic's full-sized avatar

Arunmozhi tecoholic

View GitHub Profile
@tecoholic
tecoholic / lpthw-scrapper.py
Created January 21, 2012 07:25
Scrap Learn Python The Hard Way for local usage
import urllib2
import os
import sys
from BeautifulSoup import BeautifulSoup as bs
# Meta Variables
__filename__ = "lpthw-scrapper.py"
__version__ = 0.2
__desc__ = "A scrapper program to automatically download the html pages of\
@tecoholic
tecoholic / osm2geo.js
Created November 27, 2011 04:57
OSM2GEO - A JS Converter to convert OSM to GeoJSON
/**************************************************************************
* OSM2GEO - OSM to GeoJSON converter
* OSM to GeoJSON converter takes in a .osm XML file as input and produces
* corresponding GeoJSON object.
*
* AUTHOR: P.Arunmozhi <aruntheguy@gmail.com>
* DATE : 26 / Nov / 2011
* LICENSE : WTFPL - Do What The Fuck You Want To Public License
* LICENSE URL: http://sam.zoy.org/wtfpl/
*
@tecoholic
tecoholic / .vimrc
Last active April 19, 2016 04:11
My Vim Setup
"" 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.
@tecoholic
tecoholic / Python.gitignore
Created November 22, 2011 20:16
General gitignores for pyhton projects
*.py[co]
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
@tecoholic
tecoholic / awsdata.txt
Created November 18, 2011 13:51
imdaws site unofficial GET request documentation (API)
Base Url:
http://www.imdaws.com/WeatherAWSData.aspx?
&FromDate=17/11/2011
&ToDate=17/11/2011
&State=20
@tecoholic
tecoholic / aws.py
Created September 29, 2011 09:39
A automated downloader and html2csv converter for AWS data
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"
@tecoholic
tecoholic / timed-download.py
Created September 26, 2011 16:46
This Python Script downloads a file from internet at set intervals. Useful for data/log file downloads
#!/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
@tecoholic
tecoholic / wordpress.sh
Created August 5, 2011 02:43
Setting up Wordpress locally for development in Ubuntu
# 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
@tecoholic
tecoholic / anchorstyle.css
Created July 18, 2011 06:14
Styling and Script to disable links in a HTML page
/* The CSS styling for the class 'decolor' */
a.decolor{
text-decoration: none;
color: #000;
}
@tecoholic
tecoholic / gitpatch.sh
Created June 7, 2011 05:43
Creating Patches in GIT
#To visualize branches:
git branch
#To create a new branch:
git branch testbranch
#To change to created branch:
git checkout testbranch
#Track new files: