I hereby claim:
- I am jbruggem on github.
- I am jbruggem (https://keybase.io/jbruggem) on keybase.
- I have a public key whose fingerprint is 88DF BDF7 A546 4AFD DF94 6DFB D4BE 7779 B8B1 CD34
To claim this, I am signing this object:
import os | |
import time | |
import socket | |
from threading import Timer | |
SOCKET_PATH="/var/run/appname_health/socket" | |
state = 0 | |
def main(): |
grep -q docker /proc/self/cgroup || { echo "not in docker"; exit 1; } |
I hereby claim:
To claim this, I am signing this object:
function forceFail(name){ return function(){ | |
console.trace('force failed: ', name); | |
process.exit(1); | |
}} |
#!/bin/bash | |
username="$1" | |
password="$2" | |
for dbName in `mysql --skip-column-names -u $username -p$password -e 'show databases;'`; do | |
echo "db: $dbName" | |
mkdir -p "dump/$dbName/" | |
for tableName in `mysql --skip-column-names -u $username -p$password $dbName -e 'show tables;'`; do | |
echo "table: $tableName" |
# this should go to ~/.config/fish/functions/fish_prompt.fish | |
# Set the default prompt command. Make sure that every terminal escape | |
# string has a newline before and after, so that fish will know how | |
# long it is. | |
function fish_prompt --description "Write out the prompt" | |
# Just calculate these once, to save a few cycles when displaying the prompt | |
if not set -q __fish_prompt_hostname | |
set -g __fish_prompt_hostname (hostname|cut -d . -f 1) |