Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am loansindi on github.
  • I am derekbever (https://keybase.io/derekbever) on keybase.
  • I have a public key whose fingerprint is 7236 BDEC 8CBF F7C0 9C31 C041 3200 AA09 9D32 CB07

To claim this, I am signing this object:

package main
func main() {
for {
go function()
}
}
func function() {
go function()

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@loansindi
loansindi / batt.sh
Created June 14, 2014 20:47
Terminal battery level monitor
#!/bin/bash/
while true;
do
clear
acpi | gawk '{print $4};' | figlet
sleep 60
done
f = open("words.txt")
o = open("output.txt", "w")
x = f.read()
y = x.split("\n")
j = "cantaloupe"
c = 1
for OUTPUT in $(ls)
do
mv $OUTPUT $(date +%s)
done
@loansindi
loansindi / gist:b22b6029b25059187bf9
Last active August 29, 2015 14:02
Battery monitor using awk
while true;
do
clear
acpi | gawk '{print $4};' | figlet
sleep 60
done