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
[].reduce.call(document.querySelectorAll('[style]'),function(c,e){return c+'.'+[].join.call(t.classList,'.')+' {\n\t'+e.getAttribute('style').replace(/;\s+/g,';\n\t')+'\n}\n\n'; },'');

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:

@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";
@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 / Instructions.md
Last active December 28, 2018 15:50 — forked from fdebijl/Instructions.md
Blocked Tweet Hider
@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 / 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;
};
#!/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
#!/usr/bin/env python3
import sys
from pprint import pprint
class Serial:
def __init__(self, *args):
self.list = list(*args)
def extend(self, *args):
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