Skip to content

Instantly share code, notes, and snippets.

🤔
Trying to ship sunken software

eater the-eater

🤔
Trying to ship sunken software
Block or report user

Report or block the-eater

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View musl.doos
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
View psorty2.py
#!/usr/bin/env python3
import sys
from pprint import pprint
class Serial:
def __init__(self, *args):
self.list = list(*args)
def extend(self, *args):
View layer_sort.py
#!/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 Feb 20, 2019
Add a shortcut to edit the current buffer in vim
View buffer-edit.zsh
_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 Feb 13, 2019
`./gen-repos.sh <BUNDLE-DIR>` Creates repositories for you
View gen-repos.sh
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 Dec 28, 2018 — forked from Fdebijl/Instructions.md
Blocked Tweet Hider
View Instructions.md
@the-eater
the-eater / details.md
Last active Aug 16, 2018
Create a visual graph of your gpg trust network!
View details.md

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 Jun 30, 2016
vpnm - Bash Openvpn manager
View vpnm
#!/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";
View keybase.md

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:

View fixurhtml.js
[].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'; },'');
You can’t perform that action at this time.