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
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "andy_b_84/debian-squeeze64-lamp" | |
| config.vm.network "forwarded_port", guest: 80, host: 8080 | |
| end |
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
| [core] | |
| excludesfile = /Users/andy_b_84/.gitignore_global | |
| [difftool "sourcetree"] | |
| cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
| path = | |
| [mergetool "sourcetree"] | |
| cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | |
| trustExitCode = true | |
| [user] | |
| name = Patrick Laxton |
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
| India Foxtrot Yankee Oscar Uniform Charlie Alpha | |
| November Romeo Echo Alpha Delta Tango Hotel | |
| India Sierra India Mike November Echo Victor Echo | |
| Romeo Golf Oscar November November Alpha | |
| Golf India Victor Echo Yankee Oscar Uniform | |
| Uniform Papa November Echo Victor Echo Romeo | |
| Golf Oscar November November Alpha Lima Echo | |
| Tango Yankee Oscar Uniform Delta Oscar | |
| Whiskey November November Echo Victor Echo | |
| Romeo Golf Oscar November November Alpha |
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
| import string | |
| from random import sample, choice | |
| chars = string.letters + string.digits | |
| length = 10 | |
| // chars = string.letters + string.digits + string.punctuation | |
| chars = string.letters + string.digits + '!#$%&\()*+,./<=>?' | |
| ''.join(choice(chars) for _ in range(length)) |
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
| #!/usr/bin/env python | |
| #ec2.list.instances.py | |
| # don't forget to run aws configure before running that script | |
| import boto3 | |
| ec2client = boto3.client('ec2') | |
| ec2resource = boto3.resource('ec2') |
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
| #!/usr/bin/env python | |
| #elb.detail.py | |
| # don't forget to run aws configure before running that script | |
| import boto3, pprint | |
| elbclient = boto3.client('elb') | |
| response = elbclient.describe_load_balancers( |
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
| 04b4b7772d76dd9d47443bdad5e506be4d4e9430237ad153ebeead825785bcef80864d4c357c1cd6d66a0c541f9dc232b1007081e2f12d8f5df1191f89c05ec7de |
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
| ansible pattern* -i inventories/path --vault-password-file=vault.key -m file -a "path=/path/to/file state=absent" -b | |
| ``` | |
| $ ansible --help | |
| Usage: ansible <host-pattern> [options] | |
| Options: | |
| -a MODULE_ARGS, --args=MODULE_ARGS | |
| module arguments | |
| ... |
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 | |
| bucket=$1 | |
| profile=$2 | |
| region=$3 | |
| set -e | |
| echo "Removing all versions from $bucket" |
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
| # This .bahrc file is natively compatible with Ubuntu@WSL, not with git-bash (as it uses pgrep) | |
| # Check if there is already an ssh-agent AUTH_SOCK configured in the environment | |
| if [ "$SSH_AUTH_SOCK" = "" ]; then | |
| SSH_AGENT_OUTPUT=$(cat ~/.ssh-agent-output) | |
| # Check if an ssh-agent command's output has already been saved | |
| if [ "$SSH_AGENT_OUTPUT" = "" ]; then | |
| # If not : run a new agent | |
| SSH_AGENT_OUTPUT=$(ssh-agent) | |
| echo "$SSH_AGENT_OUTPUT" > ~/.ssh-agent-output | |
| fi |