Skip to content

Instantly share code, notes, and snippets.

@trieut
trieut / keybase.md
Created April 3, 2015 02:41
keybase github verification

Keybase proof

I hereby claim:

  • I am trieut on github.
  • I am trieut (https://keybase.io/trieut) on keybase.
  • I have a public key whose fingerprint is 87B6 0B3C 0336 B222 B272 8C1B 6E5D 192D 883B 5B90

To claim this, I am signing this object:

@trieut
trieut / babun.prompt
Created September 30, 2014 20:20
A nice bash prompt from the Babun (babun.github.io) project. Works well w/ bash on OS X and Linux too.
PS1="\[\033[00;34m\]{ \[\033[01;34m\]\W \[\033[00;34m\]}\[\033[01;32m\] \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" ) \[\033[01;31m\]» \[\033[00m\]"
@trieut
trieut / hex-color-functions.sh
Last active December 17, 2015 07:19
functions to calculate inverse hex colors (for html/css hacking)
#!/bin/bash
trimHash() {
x=$1
echo ${x:0:6}
}
hexToInt() {
let y=0x$1
echo $y