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 fb | |
import carddav | |
import vobject | |
import requests | |
import Levenshtein | |
import sys | |
""" | |
Installs dependences required for lxml: | |
apt-get install libxml2-dev libxslt1-dev python-dev |
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
# -*- coding: utf-8 -*- | |
import time | |
import json | |
import urllib2 | |
import random | |
import subprocess | |
import datetime | |
from BeautifulSoup import BeautifulSoup |
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
# -*- coding: utf-8 -*- | |
import sqlite3 | |
conn = sqlite3.connect('sv.db') | |
c = conn.cursor() | |
sql = """SELECT | |
`uid`, | |
(SELECT value FROM `playerpdata` WHERE `infoid` = (`uid` || '[PS_Points]')) as points, | |
(SELECT value FROM `playerpdata` WHERE `infoid` = (`uid` || '[PS_Items]')) as items |
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
""" | |
Requires ecdsa | |
pip install ecdsa | |
""" | |
from binascii import unhexlify | |
from hashlib import sha256 | |
from ecdsa.keys import SigningKey | |
from ecdsa.curves import NIST256p |