I hereby claim:
- I am alecgoebel on github.
- I am agoebel (https://keybase.io/agoebel) on keybase.
- I have a public key whose fingerprint is C87E E1CA E4CC F114 6E35 D9D0 0DD5 482C C714 8C4D
To claim this, I am signing this object:
| # Prevent exiting out of the root shell while still allowing it most shells to exit with C-d | |
| setopt ignoreeof | |
| ctrl-d () { | |
| if (( $SHLVL > 1 )); then | |
| exit; | |
| else | |
| zle -M "zsh: use 'exit' to exit" | |
| return 1 |
| #!/bin/bash | |
| # A script to scrape a cloudformation for route53 resources and test them | |
| CAT=`which cat` | |
| DIFF=`which diff` | |
| DIG=`which dig` | |
| NAMESERVER1="" | |
| NAMESERVER2="" | |
| TEMPLATE="" | |
| OUTPUT=0 | |
| TMPOUT1="/tmp/$(basename $0)-${RANDOM}" |
| module PPAP where | |
| -- Objects are either a unit of something (Thing) or some combination (Union) | |
| data Object = Thing String | |
| | Union Object Object | |
| instance Show Object where | |
| show (Thing name) = name | |
| show (Union a b) = show a ++ "-" ++ show b |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| for f in *; do | |
| echo $f | |
| pv $f | md5sum - | sed "s/-$/$f/" >> checksum.md5 | |
| done |
| set autochdir | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " Plugins | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'PProvost/vim-ps1' |
| S3_BUCKET = YOUR_BUCKET | |
| S3_PREFIX = YOUR_PATH | |
| all: build | |
| upload: reverse_cat.zip reverse_cat_cf_template.json | |
| aws s3 cp reverse_cat.zip s3://$(S3_BUCKET)/$(S3_PREFIX)/reverse_cat.zip | |
| aws s3 cp reverse_cat.zip s3://$(S3_BUCKET)/$(S3_PREFIX)/reverse_cat_cf_template.json | |
| build: reverse_cat.zip |
github_hook_cf.py to generate the cloudformation template (requires troposphere).| module Natural where | |
| data Natural = Zero | Inc Natural | |
| instance Eq Natural where | |
| (==) Zero Zero = True | |
| (==) (Inc a) (Inc b) = a == b | |
| (==) a b = False | |
| instance Ord Natural where |
| #!/usr/bin/ruby | |
| $threshold = 20 | |
| /Discharging, (\d+)/.match(`acpi`) do |v| | |
| print "\a" if v[1].to_i < $threshold | |
| end |