I hereby claim:
- I am tubaman on github.
- I am tubaman (https://keybase.io/tubaman) on keybase.
- I have a public key whose fingerprint is B193 15E6 30FE AEDD AA72 4D30 CF0B C389 E6B1 AEC7
To claim this, I am signing this object:
#!/usr/bin/env python | |
"""Disco worker that automatically finds and sends to the nodes all the modules and packages that are used""" | |
import os | |
import sys | |
import shutil | |
import tempfile | |
import zipfile | |
import modulefinder | |
from inspect import getsourcefile, getmodule |
I hereby claim:
To claim this, I am signing this object:
"""ledger journal parser | |
We use this to parse the ledger file because we want to preserve the | |
exact format of the file including spaces, etc. It maps the parsed | |
transaction to the origin lines of the file. | |
""" | |
import ledger | |
#!/usr/bin/env python | |
import logging | |
import sys | |
import csv | |
import pint | |
ureg = pint.UnitRegistry() | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) |
#!/bin/bash | |
# Connect from one linux desktop to another using SSH over VNC | |
# | |
# The script works best if you have ssh public key authentication setup with | |
# an agent so you don't have to type your ssh password 1000 times. | |
# | |
# Usage: vncssh remote_servername | |
# | |
# What does this do? | |
# 1. Calculate the right scale factor so the remote desktop resolution will |
#!/bin/bash | |
set -o noglob | |
function addfiles { | |
NAME="$1" | |
find $EXCLUDE -name "$NAME" >> cscope.files | |
} | |
function autoignore { |
"""Python module to get password data from password-store.org(pass) | |
ex: | |
from pwstore import pwstore | |
password, data = pwstore("example.org") | |
username = data['Username'] | |
""" | |
import re |
#!/bin/bash | |
# Wait for a process(es) to finish by pid | |
# https://stackoverflow.com/a/41613532 | |
for pid in $@; do | |
tail --sleep-interval=0.250 --pid=$pid -f /dev/null | |
done |
#!/bin/bash | |
# How to try to kill a process | |
# http://porkmail.org/era/unix/award.html#uuk9letter | |
# Be as nice as possible before shooting it in the head | |
# uses waitpid: https://gist.github.com/tubaman/00b792221bd75fbbca61184da3d414ce | |
options=$(getopt -o v --long verbose -- $@) | |
[ $? -eq 0 ] || { | |
exit 1 | |
} |