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) |
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
#!/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 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
FFmpegSource2("minah.avi", vtrack=-1, atrack=-2, cache=True, cachefile="", fpsnum=-1, fpsden=1, threads=-1, timecodes="", seekmode=1, overwrite=False, width=-1, height=-1, resizer="BICUBIC", colorspace="", rffmode=0, adjustdelay=-1, utf8=False, varprefix="") | |
Trim(79120, 79200) | |
ConvertToRGB24() | |
Animate(0, 80, "crop", 870,350,150,320, 770,350,150,320) | |
ConvertToYV12() | |
super = MSuper(pel=2) | |
backward_vec = MAnalyse(super, overlap=4, isb = true, search=3) | |
forward_vec = MAnalyse(super, overlap=4, isb = false, search=3) | |
MFlowFps(super, backward_vec, forward_vec, num=2*FramerateNumerator(last), den=FramerateDenominator(last)) |
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
(function() { | |
var size = 'YOUR SHOE SIZE HERE'; | |
var subdomain = 'shop.', | |
path = '/cart/%ID%:%QUANTITY%'; | |
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState == 4 && xhr.status == 200) { | |
var parsed = JSON.parse(xhr.responseText); |
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
const CODE = ` | |
const origFetch = window.fetch; | |
window.fetch = (url, init, ...args) => { | |
try { | |
if (typeof url === "string") { | |
if (url.includes("/access_token")) { | |
url = url.replace("player_type=site", "player_type=embed"); | |
} else if ( | |
url.includes("/gql") && | |
init && |
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
########## | |
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset | |
# Author: Disassembler <[email protected]> | |
# Version: v3.10, 2020-07-15 | |
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
########## | |
### Require administrator privileges ### | |
RequireAdmin |
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
@echo off | |
net session >nul 2>&1 | |
if %errorLevel% neq 0 ( | |
echo ERROR: Run again with admin privileges. | |
exit 1 | |
) | |
netsh interface ipv4 set subinterface "NordLynx" mtu=1300 store=persistent |
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/env python | |
# Make sure to run w3w.py <words_file> first to generate a JSON file. | |
from flatten_dict import flatten | |
import json | |
import csv | |
def strip_first_key(nested_dict): | |
out = [] |
OlderNewer