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
#!/bin/env python2.6 | |
import os | |
import sys | |
from scapy.all import * | |
def is_root(): | |
return os.getuid() == 0 | |
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
class ImagePlayer(QWidget): | |
def __init__(self, filename, title, parent=None): | |
QWidget.__init__(self, parent) | |
# Load the file into a QMovie | |
self.movie = QMovie(filename, QByteArray(), self) | |
size = self.movie.scaledSize() | |
self.setGeometry(200, 200, size.width(), size.height()) | |
self.setWindowTitle(title) |
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 Completely Block Facebook | |
# Add these entries below to your hosts file | |
# | |
# Your hosts file Location: | |
# Linux, Unix and Mac OS X -> /etc/hosts | |
# Windows XP, Vista, Windows 7, 8.0, 8.1, 10 -> C:\WINDOWS\system32\drivers\etc\hosts | |
# Windows 2000 -> C:\WINNT\system32\drivers\etc\hosts | |
# Windows 98/ME -> C:\WINDOWS\hosts | |
# |
This file has been truncated, but you can view the full file.
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
` | |
~/ | |
~ | |
×™× | |
___ | |
__ | |
_ |
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 r2pipe | |
import sys | |
import base64 | |
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
# python startup file | |
import readline | |
import rlcompleter | |
import atexit | |
import os | |
# tab completion | |
readline.parse_and_bind('tab: complete') | |
# history file | |
histfile = os.path.join(os.environ['HOME'], '.pythonhistory') | |
try: |
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 python2.7 | |
from BeautifulSoup import BeautifulSoup | |
from textwrap import TextWrapper | |
import requests | |
import collections | |
import sys | |
import re | |
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/python | |
import simplejson | |
import urllib | |
import sys | |
import time | |
import pylab | |
import matplotlib.pyplot as plt | |
def getRatios(subreddit): |
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 python2.6 | |
import urllib | |
from xml.dom import minidom | |
from optparse import OptionParser | |
import subprocess | |
import re | |
from HTMLParser import HTMLParser | |
import random |
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 python2.6 | |
import urllib | |
from xml.dom import minidom | |
from optparse import OptionParser | |
import subprocess | |
import re | |
from HTMLParser import HTMLParser | |
import random |
NewerOlder