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
#!/usr/bin/env python3 | |
from requests import get | |
import sys | |
from json import dumps | |
from os import listdir,remove,rmdir | |
from shutil import rmtree | |
REGISTRY_URL = "http://127.0.0.1:5000/v2/" | |
REGISTRY_DATA_PATH = "/data/registry/" |
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
#!/bin/bash -ex | |
URL="http://example.com/open/directory/" | |
WGETCMD="wget -nv -e robots=off --recursive -nc -np --recursive --level inf --limit-rate=1m $URL" | |
PARALLELS=7 | |
time ( seq $PARALLELS | parallel -j$PARALLELS -n1 bash -c "\"sleep \$(shuf -i 1-30 -n 1) ; $WGETCMD --append-output=logs/wget-{}.log\"" ) |
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
print("lol") |
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
print("deez nuts LOL") |
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
// ==UserScript== | |
// @name mirccloud.hueg.user.js | |
// @namespace https://github.com/erm/mirccloud | |
// @description Hueg colorful text for IRCCloud | |
// @downloadURL https://raw.githubusercontent.com/erm/mirccloud/master/mirccloud.hueg.user.js | |
// @version 0.1 | |
// @match https://www.irccloud.com/* | |
// @match https://irccloud.mozilla.com/* | |
// @noframes | |
// @grant none |
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
// ==UserScript== | |
// @name mirccloud.meme.user.js | |
// @namespace https://github.com/dpedu/mirccloud | |
// @description Meme Text for IRCCloud | |
// @downloadURL https://raw.githubusercontent.com/dpedu/mirccloud/master/mirccloud.meme.user.js | |
// @version 0.1 | |
// @match https://www.irccloud.com/* | |
// @noframes | |
// @grant none | |
// ==/UserScript== |
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
class S3WriteProxy(object): | |
def __init__(self, storage, key): | |
""" | |
A file-like class that accepts writes (until the writer closes me) and accepts reads (until closed) | |
""" | |
self.storage = storage | |
self.key = key | |
self.q = Queue(maxsize=16) # 16 # number of 4 byte buffers (OS enforced ... ) | |
self.leftovers = None | |
self.eof = False |