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
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D |
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/time -l sh -c "find -type f -not -path '\./\.git/*' -not -path '\./node_modules/*' -exec sh -c \"git --no-pager blame --line-porcelain '{}' | sed -n 's/^author //p'\" 2>/dev/null \; | sort | uniq -c | sort -rn" |
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/sh | |
set -eu | |
for target in "$@"; do | |
original=$target.original | |
if mv "$target" "$original"; then | |
if ! ffmpeg -hide_banner \ | |
-i "$original" \ | |
-map_metadata -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 python3 | |
import argparse | |
import http.client | |
import json | |
import os | |
import string | |
import sys | |
from datetime import datetime | |
from itertools import islice, product |
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/awk -f | |
# Converts words into consonant-vowel patterns | |
# Combine output with `sort | uniq -c | sort -rg` to list most to least common | |
{ | |
split(tolower($1), chars, "") | |
for (i in chars) { | |
char = chars[i] |
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 | |
import argparse | |
import itertools | |
import os | |
import sys | |
def positive_int(string): | |
"""Return a positive int from the argument string or raise an ArgumentTypeError""" |
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 | |
import argparse | |
import http.client | |
import itertools | |
import json | |
import os | |
import sys | |
import textwrap | |
from datetime import datetime |
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 | |
import argparse | |
import random | |
import sys | |
def eprint(*args, **kwargs): | |
"""Like print but for stderr""" | |
print(*args, file=sys.stderr, **kwargs) |
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 | |
import argparse | |
import random | |
import sys | |
def eprint(*args, **kwargs): | |
"""Like print but for stderr""" | |
print(*args, file=sys.stderr, **kwargs) |
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
function debug<V, M>(value: V, message?: M): V { | |
if (message === undefined) { | |
console.debug(value); | |
} else { | |
console.debug(message, value); | |
} | |
return value; | |
} |
OlderNewer