Skip to content

Instantly share code, notes, and snippets.

View jamescarr's full-sized avatar
🎯
Focusing

James Carr jamescarr

🎯
Focusing
View GitHub Profile
sub_filter 'Hello' 'Goodbye';
sub_filter_once on;
function npm_path(){
export PATH="$(npm bin):$PATH"
}
- name: check service-1 is running
uri:
url: "http://localhost:3000/healthcheck"
return_content: yes
register: service_response_1
- name: check service-2 is running
uri:
url: "http://localhost:3001/healthcheck"
return_content: yes
function aws-instances-describe() {
zparseopts -D -E -A opts -- o: t: s:
output=${opts[-o]:-"table"}
tag_name=${opts[-t]:-"Name"}
state=${opts[-s]:-"running"}
name=${1}
query=(
"Reservations[].Instances[]"
".{"
roles:
- role: geerlingguy.homebrew
- role: jamescarr.dotfiles
zsh_theme: bureau
oh_my_zsh_plugins:
- git
- osx
---
zsh_theme: robbyrussell
oh_my_zsh_plugins:
- git
---
- name: Install ZSH
homebrew:
name: zsh
state: latest
- name: Change current user shell
user:
name: "{{ ansible_ssh_user }}"
shell: /bin/zsh
$ tree roles
roles
└── jamescarr.dotfiles
└── tasks
└── main.yaml
$ tree roles ‹ruby-2.2.1›
roles
└── jamescarr.dotfiles
└── tasks
└── main.yaml
- name: Set Screensaver
osx_defaults:
domain: com.apple.screensaver
host: currentHost
key: showClock
type: int
value: 1