I hereby claim:
- I am thann on github.
- I am thann (https://keybase.io/thann) on keybase.
- I have a public key ASDVh7eIfiuupN1mSj4i-yJrUfL8K4FBkVpC04DjVPWamwo
To claim this, I am signing this object:
tr, #main { | |
background-color: #a7a7a7 !important; | |
} | |
a.issue_number_link { | |
color: black !important; | |
} | |
.task_properties, | |
.task_properties a { | |
color: #555; | |
} |
#!/bin/sh | |
# Calculates Beats per Minute and confidence. | |
# Trigger function on ctrl+c | |
trap ctrl_c_handler INT | |
function ctrl_c_handler() { | |
echo -e "\n -> $index beats in $(echo "scale=2; $delta_sum /1"| bc) seconds. " | |
exit 0 | |
} |
#!/bin/sh | |
# | |
# Prepend the Jira ticket from the branch name to the commit message | |
# Do nothing when amending or fixing | |
if [ -n "$2" ]; then exit 0; fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
TICKET_NAME=$(echo $BRANCH_NAME | grep -Eo "^\w{2}[-_][0-9]+" | awk '{print toupper($0)}') |
# Verify an email with DKIM | |
# Usage: ev https://wikileaks.org/podesta-emails/emailid/5205 | |
address=$1 | |
if [ -z $address ] ; then | |
echo "must pass address!"; | |
exit 1 | |
fi |
#!/bin/env bash | |
# Purse Api Client | |
# Usage: | |
# domain api.purse.io # sets domain, defaults to local. | |
# login [username] # logs in as user. | |
# <url> [options] # call out to curl with token. | |
# | |
PURSE_CLIENT_TOKEN_FILE="$HOME/.purse_client_token"; |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
#grep_id() { | |
# xinput --list | grep $@ | sed "s/.*id=\([0-9]\+\).*/\1/" | |
#} | |
# disable touchscreen | |
xinput --disable "FTSC1000:00 2808:5116" | |
# disable touchpad while typing | |
xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Disable While Typing Enabled" 1 |
#!/usr/bin/env node | |
// Takes in html and returns a parsed object! | |
class HTMLParser { | |
constructor(html, initialValues, extras) { | |
// Stores values during parsing | |
const values = initialValues || {}; | |
// Memoize all functions | |
for (const prop of EveryPropIn( this )) { |
#!/bin/env python | |
import re | |
import sys | |
import time | |
import requests | |
import lxml.html | |
from functools import reduce | |
from subprocess import Popen, PIPE | |
if '-l' in sys.argv: |