Skip to content

Instantly share code, notes, and snippets.

View gauravssnl's full-sized avatar
😸
use code::latest ;

GAURAV gauravssnl

😸
use code::latest ;
View GitHub Profile
@gauravssnl
gauravssnl / README.md
Created December 14, 2016 18:19 — forked from pklaus/README.md
A Tool to easily backup Wordpress posts to your local filesystem.

Backup Your Wordpress Blog Using Python

A Tool to easily backup Wordpress posts to your local filesystem.

I use this together with local-blog to host a local copy of my own blog on my laptop (for use on the road etc.).

Usage

#!/usr/bin/env python
# -*- coding: utf-8 -*-
## OpenVPN Status File Parser by Greg Armer
## <http://code.geek.sh/2009/07/simple-openvpn-server-statistics/>
STATUS = "/etc/openvpn/openvpn.status"
status_file = open(STATUS, 'r')
stats = status_file.readlines()
@gauravssnl
gauravssnl / form.py
Created December 14, 2016 21:38 — forked from pklaus/form.py
Advanced example for an PyS60 application that makes use of appuifw.app.set_tabs().
#!/usr/bin/env python
# -*- encoding: UTF8 -*-
# Advanced example for an PyS60 application that makes use of appuifw.Form().
# originally found on <http://www.mobilenin.com/pys60/info_tabs_forms.htm>
# changed and adopted for the N95 by Philipp Klaus <philipp.l.klaus AT web-dot-de>
# Copyright (c) 2006 Jurgen Scheible
# This script creates a form
@gauravssnl
gauravssnl / FacebookAutoCommenter.py
Created December 14, 2016 21:40 — forked from riyadparvez/FacebookAutoCommenter.py
This python script auto comment thanks on facebook wall posts
# Thanking everyone who wished me on my birthday
import requests
import json
from time import strftime
AFTER = #convert your time to iso 8601 time
TOKEN = ' <insert token here> '
def get_posts():
@gauravssnl
gauravssnl / PyS60_3rdFP1_accelerometer.py
Created December 14, 2016 21:41 — forked from pklaus/PyS60_3rdFP1_accelerometer.py
PyS60 Accelerometer for 3rd edition (FP1 and FP2+)
#!/usr/bin/env python
# -*- encoding: UTF8 -*-
# originally from Andreas Jakl, 2009 on <http://www.symbianresources.com/tutorials/general/python/Python.pdf>
# modified 2010 by Philipp Klaus <philipp.l.klaus AT web-dot-de>
import appuifw,e32,sensor
def get_sensor_data(status):
@gauravssnl
gauravssnl / babelfish.py
Created December 14, 2016 21:44 — forked from pklaus/babelfish.py
Babelfish Translator for Symbian Phones (using PyS60).
#!/usr/bin/env python
# -*- encoding: UTF8 -*-
# originally from whitetiger on <http://snippets.dzone.com/posts/show/3047>
# modified 2010 by Philipp Klaus <philipp.l.klaus AT web-dot-de>
import urllib
####################################################################################### <BabelFish>
class BabelFish(object):
@gauravssnl
gauravssnl / StatusIcon.py
Created December 14, 2016 21:47 — forked from pklaus/StatusIcon.py
StatusIcon – A Simple Tray Icon Application Using PyGTK
#!/usr/bin/env python
# found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000>
# simple example of a tray icon application using PyGTK
import gtk
def message(data=None):
"Function to display messages to the user."
""" Output Sample:
1 A
1 2 B
1 2 3 C
1 2 3 4 D
1 2 3 4 5 E
1 2 3 4 5 6 F
1 2 3 4 5 6 7 G
1 2 3 4 5 6 7 8 H
1 2 3 4 5 6 7 8 9 I
@gauravssnl
gauravssnl / OCS-Pynject.py
Created June 3, 2017 06:55 — forked from adenvt/OCS-Pynject.py
Inject berbasis Python, *Bonus: Payload ISAT
#!/usr/bin/env python
"""
------------------------------------------------------------
Title : OCS Pyn-ject
Author : CyberJutsu
Versi : 127.0.0.1
This Project based of Pinhole Project by Simon Foster
------------------------------------------------------------
"""
import marshal, imp
if imp.get_magic() != '\x03\xf3\r\n':
raise ImportError('wrong Python version; need Python ')
__code = marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s\x80\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x02\x00Z\x03\x00d\x03\x00Z\x04\x00d\x04\x00Z\x05\x00d\x05\x00Z\x06\x00d\x06\x00Z\x07\x00d\x07\x00Z\x08\x00d\x08\x00Z\t\x00d\t\x00Z\n\x00d\n\x00\x84\x00\x00Z\x0b\x00d\x0b\x00\x84\x00\x00Z\x0c\x00e\r\x00d\x0c\x00k\x02\x00r|\x00e\x0c\x00\x83\x00\x00\x01n\x00\x00d\x01\x00S(\r\x00\x00\x00i\xff\xff\xff\xffNs\x04\x00\x00\x00\x1b[0ms\x05\x00\x00\x00\x1b[31ms\x07\x00\x00\x00\x1b[1;32ms\x05\x00\x00\x00\x1b[33ms\x05\x00\x00\x00\x1b[34ms\x05\x00\x00\x00\x1b[35ms\x05\x00\x00\x00\x1b[36ms\x05\x00\x00\x00\x1b[37mc\x01\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00C\x00\x00\x00sG\x00\x00\x00x@\x00|\x00\x00d\x01\x00\x17D]4\x00}\x01\x00t\x00\x00j\x01\x00j\x02\x00|\x01\x00\x83\x01\x00\x01t\x00\x00j\x01\x00