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
<?php | |
// A script to check if a given port is open on the connecting host. | |
// IP ranges included are for cloudflare, replace with an array containing your proxy server IP ranges | |
// https://b303.me/portopen.php?port=80 | |
header("Content-Type: application/json"); | |
header("Access-Control-Allow-Origin: *"); | |
function cidr_match($ip, $ranges) { | |
$out = array(); | |
foreach ($ranges as $range) { | |
list ($subnet, $bits) = explode('/', $range); |
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 plexapi.server import PlexServer | |
import sys | |
plex = PlexServer("http://172.16.17.10:32400") | |
now_playing = plex.query("/status/sessions") | |
if not now_playing: | |
print("Nobody's watching anything") | |
sys.exit(0) | |
sessions = [] | |
def hms(mil): | |
s,mil = divmod(int(mil), 1000) |
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 | |
from __future__ import print_function | |
import sys | |
try: | |
import requests | |
from bs4 import BeautifulSoup as Soup | |
from Crypto.PublicKey import RSA | |
from Crypto.Cipher import PKCS1_v1_5 | |
import yaml |
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
cubelabels = "fblrud" | |
levels = ["l"+i for i in range(1,8)] | |
skipped = 0 | |
for s in cubelabels: | |
for l in levels: | |
for v in range(1,999): | |
for h in range(1,999): | |
req = requests.get("http://europe.tiles.fanpic.co/749-2017-cnn/mres_{s}/{l}/{v}/{l}_{s}_{v}_{h}.jpg".format(s=s,l=l,v=v,h=h), stream=True) | |
if req.status_code == 200: | |
with open("{l}_{s}_{v}_{h}.jpg".format(s=s,l=l,v=v,h=h), "wb") as f: |
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 pokeAll(){ | |
buttons = document.getElementsByClassName("_42ft _4jy0 _4jy3 _4jy1 selected _51sy"); | |
for (var i = 0; i < buttons.length; i++) { | |
if (buttons[i].innerText == "Poke Back") { | |
buttons[i].click() | |
} | |
} | |
setTimeout(pokeAll, 1000) | |
} | |
pokeAll() |
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 python3 | |
import irc3 | |
import websockets | |
import asyncio | |
import json | |
@irc3.plugin | |
class DCIRC: | |
requires = ["irc3.plugins.command"] |
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
<html> | |
<head> | |
<script> | |
// Comic Viewer by blha303 https://github.com/blha303 | |
// BSD license | |
// Please leave this header here | |
// Below settings are for a folder of images named 'concerned000.jpg'-'concerned205.jpg' | |
prefix = "concerned" // Filename prefix | |
suffix = ".jpg" // Filename suffix or extension |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>GuitarTabGenerator</title> | |
</head> | |
<body> | |
<form id="form"> | |
<input type="text" id="tabs" style="width:70%" value="G F# Ab C"> | |
<input type="submit"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>UkeTabGenerator</title> | |
</head> | |
<body> | |
<form id="form"> | |
<input type="text" id="tabs" style="width:70%" value="E♭|F7|B♭7|G♭" autofocus> | |
<input type="submit"> |
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 __future__ import print_function | |
import sys,random | |
# http://stackoverflow.com/a/31505798 | |
import re | |
caps = "([A-Z])" | |
prefixes = "(Mr|St|Mrs|Ms|Dr)[.]" | |
suffixes = "(Inc|Ltd|Jr|Sr|Co)" | |
starters = "(Mr|Mrs|Ms|Dr|He\s|She\s|It\s|They\s|Their\s|Our\s|We\s|But\s|However\s|That\s|This\s|Wherever)" | |
acronyms = "([A-Z][.][A-Z][.](?:[A-Z][.])?)" |