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 python | |
import timeit | |
import sys | |
try: | |
count = int(sys.argv[1]) | |
except: | |
count = 1 |
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 bash | |
# | |
# Breaking commit: https://github.com/ansible/ansible/commit/460794d697ee8fa4a959e76442bd9a2e777d6251 | |
# Last working commit: https://github.com/ansible/ansible/commit/237b9cb05669f22099cc6c47de44c5f6321869c3 | |
# | |
# It appears that the kv_regex.match() hangs ansible during larger file copies. | |
# | |
FSIZE=60000 | |
HOST="localhost" | |
ANSIBLE_ARGS="-i '$HOST,' -v -D test.yml" |
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 python | |
""""Client for paste.pm""" | |
import sys | |
PY3 = sys.version > '3' | |
if PY3: | |
from urllib.parse import urlencode | |
from urllib.request import Request, urlopen | |
else: |
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 python | |
import argparse | |
import urllib | |
import os | |
import tarfile | |
import subprocess | |
import logging | |
logging.basicConfig(format='%(asctime)s: %(message)s', level=logging.DEBUG) |
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
:%s/WITH/LABELS/g | |
:%s/SUMMARY \(.*\)/ANNOTATIONS {\r summary = \1,/g | |
:%s/DESCRIPTION \(.*\)/ description = \1\r \}/g |
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 bash | |
# This just replaces the text between a couple of hopefully invisible | |
# markdown comments, like so: `[//]: #` (text within backticks) | |
set -euo pipefail | |
main_output="$(cargo run -- --help)" | |
output="$(printf "### main\n\`\`\`\n%s\n\`\`\`" "$main_output")\n" | |
output+="### subcommands\n" |
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
local ffi = require "ffi" | |
local ngx = ngx | |
local ngx_update_time = ngx.update_time | |
local ngx_say = ngx.say | |
local tonumber = tonumber | |
ffi.cdef[[ | |
typedef long time_t; |
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
[Background] | |
Color=39,40,34 | |
[BackgroundIntense] | |
Color=39,40,34 | |
[Color0] | |
Color=0,0,0 | |
[Color0Intense] |
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 Netflix Skip Intro | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically skip intros with Netflix. | |
// @author goobyndolan | |
// @match https://www.netflix.com/* | |
// @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
import json | |
from dns.resolver import Resolver | |
dns_resolver = Resolver() | |
def _parse_netblock_includes(txt): | |
includes = set() | |
ip4_blocks = set() |
OlderNewer