This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROFILE=aws-profile | |
environment=$1 | |
if [ $# -ne 1 ]; then | |
echo script needs environment as first arg | |
echo usage: $0 environment | |
exit 1 | |
fi | |
echo using environment $environment | |
first_instance=$(eb list -v | grep Environments: -A 100|grep -v Environments:|grep $environment|cut -d\' -f2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Keen Policy Test | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- Label: | |
default: Stack Variables | |
Parameters: | |
- Environment | |
- Label: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: "2010-09-09" | |
Description: S3 Queue Notifications Test | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- Label: | |
default: Stack Variables | |
Parameters: | |
- Environment | |
- Label: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
last-tag = !sh -c 'git describe --tags `git rev-list --tags --max-count=1`' | |
stable = !sh -c 'git describe --tags `git rev-list --tags=releases/ --max-count=1`' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Faces of Dave Customization | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxCxegedabagacGx | |
alias ls="gls -lh --color -h --group-directories-first" | |
alias externalip="dig +short myip.opendns.com @resolver1.opendns.com" | |
alias please=sudo | |
PROMPT="$emoji[rocket] $PROMPT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make shelling out in Vim pick up RVM settings | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yajl' | |
def get_memory_usage | |
`ps -o rss= -p #{Process.pid}`.to_i / 1024 | |
end | |
before = get_memory_usage | |
parsed_lines = [] | |
File.open("public/sample.json", 'r') do |f| | |
f.each_line do |line| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
if [ -f ~/.git-prompt.sh ]; then | |
source ~/.git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=true | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Id User Host db Command Time State Info | |
1 root localhost:58150 NULL Query 1131598 NULL show processlist | |
2 root localhost:58151 NULL Sleep 7 NULL | |
1452 root localhost NULL Query 1 User sleep select sleep(3) | |
1453 root localhost NULL Query 1 User sleep select sleep(3) | |
1454 root localhost NULL Query 1 User sleep select sleep(3) | |
1455 root localhost NULL Query 1 User sleep select sleep(3) | |
1456 root localhost NULL Query 1 User sleep select sleep(3) | |
1457 root localhost NULL Query 1 User sleep select sleep(3) | |
1458 root localhost NULL Query 1 User sleep select sleep(3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /lib/fix_me.rb | |
module FixMe | |
def self.status | |
'broken' | |
end | |
end | |
# /config/environments/development.rb | |
module FixMe | |
def self.status |
NewerOlder