Skip to content

Instantly share code, notes, and snippets.

@ehershey
ehershey / todo.md
Last active May 15, 2016 03:26
todo.md
@ehershey
ehershey / terminal-transcript.txt
Last active March 19, 2016 18:38
Trying to download podcast episode on the command line after getting errors in itunes
[ernie@eahimac2 ~]$ curl --head https://files.manager-tools.com/files/private/podcast/mp3/manager-tools-2015-07-12.mp3
HTTP/1.0 403 Forbidden
Date: Sat, 19 Mar 2016 18:20:04 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Connection: close
Content-Type: text/html
[ernie@eahimac2 ~]$ curl --head https://files.manager-tools.com/files/private/podcast/mp3/manager-tools-2015-07-12.mp3
HTTP/1.1 200 OK
@ehershey
ehershey / gist:ac1e9d9d246a5cb7de0c
Last active September 14, 2015 16:21
Amazon Linux and Ubuntu and Red Hat Enterprise Linux
I've been launching and launching to test
varied instances, sizes, OS
to rule out dud instances
and regional differences
I'll try it outside us-west.
mike o used an old vpc
but new ones broke also for me
this all was this morning
with AMI's boring
I guess I'll go home now, thanks.
#!/bin/bash
# Simple ld wrapper that ignores --build-id parameters
LD=/usr/bin/ld
options=() # the buffer array for the parameters
eoo=0 # end of options reached
while [[ $1 ]]
#!/bin/bash
set -o verbose
set -o errexit
if [ "$OS" = "Windows_NT" ]; then
# Windows-only
#
echo "Checking for IPV6 support"
ipconfig | grep -i ipv6
@ehershey
ehershey / -
Created December 1, 2014 17:01
debian71-tmpl: &debian71-tmpl
template: true
arch: linux_amd64
provider: ec2
settings:
ami: ami-28008940
securitygroups: mci
keyname: mci
user: admin
key: mci
#!/bin/bash
#
# Init file for AWS Authorized Keyfile
#
# chkconfig: 2345 11 25
# description: AWS Authorized Keyfile
case $1 in
start)
touch /var/lock/subsys/awssshkey