Skip to content

Instantly share code, notes, and snippets.

View the-eater's full-sized avatar
🤔
Trying to ship sunken software

eater the-eater

🤔
Trying to ship sunken software
View GitHub Profile
eater@adora: ~/shit $ youtube-dl -F 'https://www.youtube.com/watch?v=yKTt-c3Y0Ow' | grep '1080\|720' | sort -k4
247 webm 1280x720 720p 1659k , vp9, 30fps, video only, 531.42MiB
22 mp4 1280x720 720p 1771k , avc1.64001F, mp4a.40.2@192k (44100Hz) (best)
136 mp4 1280x720 720p 4240k , avc1.4d401f, 30fps, video only, 668.39MiB
398 mp4 1280x720 720p60 1390k , av01.0.08M.08, 60fps, video only, 454.00MiB
298 mp4 1280x720 720p60 1575k , avc1.4d4020, 60fps, video only, 281.84MiB
302 webm 1280x720 720p60 2726k , vp9, 60fps, video only, 848.86MiB
248 webm 1920x1080 1080p 2853k , vp9, 30fps, video only, 962.02MiB
137 mp4 1920x1080 1080p 6793k , avc1.640028, 30fps, video only, 1.12GiB
399 mp4 1920x1080 1080p60 2440k , av01.0.09M.08, 60fps, video only, 787.40MiB
pkgname = musl
license = MIT
maintainer = eater <=@eater.me>
short-desc = Musl C library
homepage = http://www.musl-libc.org/
files.source = `http://www.musl-libc.org/releases/musl-${version}.tar.gz`
build-style = gnu-configure
configure-args = --prefix=/usr --disable-gcc-wrapper
#!/usr/bin/env python3
import sys
from pprint import pprint
class Serial:
def __init__(self, *args):
self.list = list(*args)
def extend(self, *args):
#!/usr/bin/env python3
import sys
def add_layer(last_layer, fulfilled, dependencies, parents):
layer = set()
for item in last_layer:
if item not in parents:
# Current item is a stub
continue
@the-eater
the-eater / buffer-edit.zsh
Created February 20, 2019 16:33
Add a shortcut to edit the current buffer in vim
_buffer_edit_() {
# Create tmp file
local tf="$(mktemp /tmp/zshXXXXXXXX)";
# Place current buffer in tmp file
echo $BUFFER > $tf;
# Open tmp file in vim, and if exits with 0, set buffer to tmp file
vim $tf && BUFFER="$(cat $tf)";
# Remove tmp file
rm $tf;
};
@the-eater
the-eater / gen-repos.sh
Created February 13, 2019 11:05
`./gen-repos.sh <BUNDLE-DIR>` Creates repositories for you
DIR="${1}";
if [ -z "$DIR" ] || [ ! -d "$DIR/Entity" ]; then
echo "Given argument is or empty, or is not a valid Bundle directory";
exit 1;
fi
REPO_DIR="$DIR/Repository";
CONFIG="$DIR/Resources/config/repositories.yml";
@the-eater
the-eater / Instructions.md
Last active December 28, 2018 15:50 — forked from fdebijl/Instructions.md
Blocked Tweet Hider
@the-eater
the-eater / details.md
Last active August 16, 2018 16:24
Create a visual graph of your gpg trust network!

The following script creates a dot graph from your trust network (who signed who).

Run the following to generate

gpg --list-sigs --with-colons | awk -Egpg2dot.awk > gpg.dot

Then you can render the graph to png or svg

@the-eater
the-eater / vpnm
Created June 30, 2016 15:46
vpnm - Bash Openvpn manager
#!/usr/bin/env bash
set -e;
VPNM_CONF="${VPNM_CONF:-$HOME/.vpnm}";
VPNM_SUDO="${VPNM_SUDO:-sudo}";
VPNM_GPG="${VPNM_GPG:-gpp2}";
VPNM_CREDS="${VPNM_CREDS:-keyring}";
main() {
local action="$1";

Keybase proof

I hereby claim:

  • I am the-eater on github.
  • I am eater (https://keybase.io/eater) on keybase.
  • I have a public key ASAR9THfWLoAQeMNnd2Jq22Wf6Jsg-iONl4hUVDlTOf6FAo

To claim this, I am signing this object: