Skip to content

Instantly share code, notes, and snippets.

Erik Steigler esteigler

Block or report user

Report or block esteigler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c7672275e029cf797f6718b4335ea4dd
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;
@esteigler
esteigler / fix_amazon.md
Last active Jan 27, 2016
How to make Amazon Music work on OS X Yosemite
View fix_amazon.md

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)
View gist:9902236
#!/bin/bash
#
# Author: Aleksey Korzun
# Made Awesome By: Erik
email='alert@domain.com'
default_max=240
echo "=========================================================================="
echo " Replicator Man v1.0.0 "
View keybase.md

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:

View mypipe-<pid>
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 / gist:3136772
Created Jul 18, 2012 — forked from anonymous/gist:3136741
Sort out your SSH Agent sockets
View gist:3136772
function agentstatus {
echo -n "Agent status: ";
if ssh-add -l &>/dev/null; then
echo "WORKING"
return 0
else
echo "BROKEN";
return 1
fi
}
View gist:2581200
Compression:
xz:
real 18m43.520s
user 18m37.840s
sys 0m4.020s
gzip:
real 1m52.749s
user 1m42.180s
sys 0m3.260s
View gist:1359068
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
View gist:1323445
require "fog"
require "nokogiri"
def name
@name ||= new_resource.name + "."
end
def value
@value ||= new_resource.value
end
You can’t perform that action at this time.