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 sys | |
import csv | |
import time | |
def send_results(scoreboard): | |
import praw | |
message = """ | |
Hi %s, |
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 | |
USER=`head -n 1 userdata.file` | |
PASS=`tail -n 1 userdata.file` | |
DEVICE=`/sbin/ifconfig | grep -o "tun[0-9]"` | |
LOCAL_IP=`/sbin/ifconfig $DEVICE | grep -Po "(?<=addr.)[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"` | |
curl -s -d "user=$USER&pass=$PASS&client_id=$(cat pia_client_id)&local_ip=$LOCAL_IP" https://www.privateinternetaccess.com/vpninfo/port_forward_assignment | grep -Po "[0-9]*" |
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 re | |
import praw | |
from HTMLParser import HTMLParser | |
def get_awards(user, passwd, subreddit, num=3): | |
awards = {} | |
r = praw.Reddit(user_agent="super_quick_awards_script.py 0.1a by /u/schrobby") | |
r.login(user, passwd) | |
print("Logged in as " + user) |
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
""" | |
A quick and dirty script to show some flair statistics. | |
Currently it only shows how many users have flair, and how many use | |
each css class or flair text. | |
Usage: | |
1) run flair-stats.py | |
2) enter username and password when asked | |
3) enter subreddit name (eg: starcraft) |
NewerOlder