Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am esteigler on github.
  • I am es (https://keybase.io/es) on keybase.
  • I have a public key whose fingerprint is 42CB 92C2 76BC 2D0F 0A48 062C 6717 5C4D FD90 1EF1

To claim this, I am signing this object:

#!/bin/bash
#
# Author: Aleksey Korzun
# Made Awesome By: Erik
email='alert@domain.com'
default_max=240
echo "=========================================================================="
echo " Replicator Man v1.0.0 "
@esteigler
esteigler / gist:1323445
Created October 28, 2011 20:25
my updates
require "fog"
require "nokogiri"
def name
@name ||= new_resource.name + "."
end
def value
@value ||= new_resource.value
end
@esteigler
esteigler / gist:1359068
Created November 11, 2011 20:04
screenrc
startup_message off
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
## detach on hangup
autodetach on
bindkey ^[[1;3D prev
bindkey ^[[1;3C next
Compression:
xz:
real 18m43.520s
user 18m37.840s
sys 0m4.020s
gzip:
real 1m52.749s
user 1m42.180s
sys 0m3.260s
@esteigler
esteigler / gist:3136772
Created July 18, 2012 15:11 — forked from anonymous/gist:3136741
Sort out your SSH Agent sockets
function agentstatus {
echo -n "Agent status: ";
if ssh-add -l &>/dev/null; then
echo "WORKING"
return 0
else
echo "BROKEN";
return 1
fi
}
if [ ! $1 ]; then
echo "need port number"
exit 1
fi
mkfifo mypipe-$$
nc -kl $1 0<mypipe-$$ | /home/jae/cs3157-pub/bin/mdb-lookup-cs3157 1>mypipe-$$
rm mypipe-$$
@esteigler
esteigler / fix_amazon.md
Last active January 27, 2016 18:19
How to make Amazon Music work on OS X Yosemite

How to make Amazon Music work on OS X Yosemite (10.10)

The Amazon Music installer improperly sets the permissions for it's data directory on install.

The fix is simple, just change the ownership to the current user.

Steps:

  1. Install Amazon Music
  2. Open terminal (cmd-space, type in terminal)
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name pleasedontcall.us www.pleasedontcall.us;