This file contains hidden or 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
from lxml import html | |
import requests | |
from inspect import getmembers | |
from collections import OrderedDict | |
from prettytable import PrettyTable | |
matches = {'kills': 1, 'deaths': 2, 'wools': 3, 'cores': 4, 'monuments': 5, 'kd': 6, 'kk': 7, 'time': 8} | |
This file contains hidden or 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
twitter_api_key="XXXX" | |
twitter_api_secret="XXXX" | |
twitter_access_key="XXXX" | |
twitter_access_secret="XXXX" |
This file contains hidden or 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/bash | |
MONGO_DATABASE="your_db_name" | |
APP_NAME="your_app_name" | |
MONGO_HOST="127.0.0.1" | |
MONGO_PORT="27017" | |
TIMESTAMP=`date +%F-%H%M` | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
BACKUPS_DIR="/home/username/backups/$APP_NAME" |
This file contains hidden or 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
def addContacts(): | |
import Skype4Py | |
skype = Skype4Py.Skype() | |
skype.Attach() | |
client = Skype4Py.client.Client(skype) | |
for chat in skype.Chats: | |
if len(chat.Members) > 50: | |
print chat.Name | |
for user in chat.Members: |
This file contains hidden or 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/perl -w | |
use strict; | |
use warnings; | |
# Copied from /usr/share/perl5/Debconf/Gettext.pm | |
use strict; | |
BEGIN { | |
eval 'use Locale::gettext'; | |
if ($@) { |
This file contains hidden or 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
<div id="calendar-placeholder"></div> | |
<script id="calendar-widget" type="text/x-handlebars-template"> | |
<div class="widget calendar"> | |
<div class="calendar-header"> | |
<div class="back-arrow"><<</div> | |
<div class="current-date"></div> | |
<div class="forward-arrow">>></div> | |
</div> |
This file contains hidden or 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
dlopen("/usr/lib/libclassdumpdyld.dylib",RTLD_NOW); | |
dumpBundle=@encode(id(id))(dlsym(RTLD_DEFAULT,"dumpBundle")); | |
dumpBundle([NSBundle mainBundle]); | |
dumpBundle([NSBundle bundleWithIdentifier:@"com.apple.UIKit"]); |
This file contains hidden or 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 xml.etree.ElementTree as et | |
import xml.etree.cElementTree as et | |
import lxml.etree as et | |
import os as os | |
e = et.parse('com.burbn.instagram.dat').getroot() | |
items = list(e[0])[1] | |
descriptors = {} | |
for child in items: | |
clazz_name = None |
This file contains hidden or 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/bash | |
sudo apt-get update | |
sudo apt-get install -y alien wget | |
mkdir downloads | |
cd downloads | |
# official oracle instant client http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html |
This file contains hidden or 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
// store/auth.js | |
// reusable aliases for mutations | |
export const AUTH_MUTATIONS = { | |
SET_USER: 'SET_USER', | |
SET_PAYLOAD: 'SET_PAYLOAD', | |
LOGOUT: 'LOGOUT', | |
} | |
export const state = () => ({ |
OlderNewer