I hereby claim:
- I am dschep on github.
- I am dschep (https://keybase.io/dschep) on keybase.
- I have a public key ASAOASCVweS-lajGgb690KEptFPhZSdZuPmTrBs5BkcTQgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
exec awk '{printf "\r%lu", NR}' |
#!/bin/bash | |
# | |
# Are you tired of making sure your scripts work on a Mac? Source this (or | |
# copy it!) in your script and use $sed and always be sure it's GNU sed. If | |
# the GNU tools required aren't installed, it suggest the user install them via | |
# brew and exits | |
# | |
# Default tools: sed & grep | |
# Override via GNU_TOOLS env variable, ex: | |
# GNU_TOOLS=sed . gnu-mac.sh |
#!/bin/sh | |
# Work around for boot2docker/boot2docker#1085 | |
# Extracted from boot2docker/boot2docker#1086 | |
mkdir -p /hosthome | |
mount | grep -q /hosthome || mount -t vboxsf hosthome /hosthome \ | |
-o defaults,uid=$(id -u docker),gid=$(id -g docker) | |
ls -1 /hosthome | while read d | |
do |
source ~/.screenrc | |
screen vim | |
split -v | |
focus right | |
screen | |
split | |
focus down |
#!/usr/bin/env python | |
from unittest import TestCase | |
def truthyish(value): | |
""" | |
same as standard python truthyness except that strings are different. | |
True, t, yes, y and 1 (case insensitive) are considered truthy. | |
""" |
from subprocess import check_output | |
version_parts = (check_output(['git', 'describe', '--dirty=+dirty']) | |
.decode() | |
.rstrip('\n') | |
.lstrip('v') | |
.split('-')) | |
if len(version_parts) == 1: | |
version, = version_parts | |
else: |
#!/usr/bin/env python3 | |
import json | |
import time | |
import requests | |
from ntfy.backends.default import notify | |
USER = 'YOUR USERNAME' |
function docker() { | |
if [ "$1" == 'compose' ] ; then | |
docker-compose "${@:2}" | |
else | |
env docker "${@:1}" | |
fi | |
} |
#!/bin/bash | |
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode | |
echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_opt_cmd |