Skip to content

Instantly share code, notes, and snippets.

View gist:3c795c15da16b39a1dbf
#!/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
View -
debian71-tmpl: &debian71-tmpl
template: true
arch: linux_amd64
provider: ec2
settings:
ami: ami-28008940
securitygroups: mci
keyname: mci
user: admin
key: mci
View validate-host.sh
#!/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 / bigredbuttonosx
Last active May 24, 2018
How to use the Dream Cheeky Big Red Button on a Mac in OS X
View bigredbuttonosx
# Alternative to homebrew - install Mono directly via http://download.mono-project.com/archive/3.12.1/macos-10-x86/MonoFramework-MDK-3.12.1.macos10.xamarin.x86.pkg
# Install homebrew -
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install mono
brew install mono
# Download windows executable
open https://www.dropbox.com/s/3xmsr8cw02dfkl3/DreamCheekyBTN.zip
# Unzip
unzip DreamCheekyBTN.zip
# Create script
View gist:db429426fdbf85252761
#!/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 ]]
@ehershey
ehershey / gist:ac1e9d9d246a5cb7de0c
Last active Sep 14, 2015
Amazon Linux and Ubuntu and Red Hat Enterprise Linux
View gist:ac1e9d9d246a5cb7de0c
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.
@ehershey
ehershey / terminal-transcript.txt
Last active Mar 19, 2016
Trying to download podcast episode on the command line after getting errors in itunes
View terminal-transcript.txt
[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
View todo.md
View todo 20160516.md
  • Morning
    • email i
    • Shell tarball CR
    • Sam CR
    • Check schedule for week
    • Push chef change
    • Standup
    • Writing ticket
    • Excel to Dan
  • Afternoon
View todo 2016051602.md
  • tonight
    • Shell tarball CR (20)
    • Sam CR (20)
    • Check schedule for week (2)
    • Build Team Status (20)
    • Check week running schedule (2)
  • tomorrow
    • Buy aftershave
    • Call eye place
    • Call Hair Place