Skip to content

Instantly share code, notes, and snippets.

Jordan Bach jbgo

View GitHub Profile
View test-results.txt
[nadroj:/opt/ansible/test/runner (fix_ec2_group_rules)⚡] ➔ ./ansible-test integration ec2_group
Running ec2_group integration test role
[WARNING]: The `junit_xml` python module is not installed. Disabling the `junit` callback plugin.
PLAY [amazon] ***********************************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************************
ok: [localhost]
@jbgo
jbgo / plan.sh
Created Mar 8, 2017
Minimal Habitat plan for Ruby
View plan.sh
# This file is the heart of your application's habitat.
# See full docs at https://www.habitat.sh/docs/reference/plan-syntax/
# Required.
# Sets the name of the package. This will be used in along with `pkg_origin`,
# and `pkg_version` to define the fully-qualified package name, which determines
# where the package is installed to on disk, how it is referred to in package
# metadata, and so on.
pkg_name=ruby
@jbgo
jbgo / Makefile
Created Sep 2, 2016
My vagrant setup for python flask apps
View Makefile
SHELL = /bin/bash
WORKDIR = /vagrant
PSQL = sudo -u postgres psql
DBNAME = changeme
DBUSER = changeme_user
DBPASS = secret
db/console:
$(PSQL) $(DBNAME)
@jbgo
jbgo / it-docs.yml
Last active Jun 4, 2016
Iteration 3 Playbook - Stupid DevOps Tricks: Executable IT docs with Ansible
View it-docs.yml
tasks:
- name: Verify that the NFS imagesshare is mounted
mount: >
name=/images
src=nfs.example.com:/srv/images
state=mounted
fstype=ext4
@jbgo
jbgo / it-docs.yml
Created Jun 4, 2016
Iteration 2 Playbook - Stupid DevOps Tricks: Executable IT docs with Ansible
View it-docs.yml
---
- name: Install a new client (https://confluence.example.com/foo/bar/biz-baz)
hosts: app.example.com
gather_facts: false
tasks:
- name: Verify that the NFS images share is mounted
shell: "df -h | grep nfs.example.com:/srv/images"
register: nfs_check
changed_when: false
@jbgo
jbgo / it-docs.yml
Last active Jun 4, 2016
Iteration 1 Playbook - Stupid DevOps Tricks: Executable IT docs with Ansible
View it-docs.yml
---
- name: Install a new client (https://confluence.example.com/foo/bar/biz-baz)
hosts: app.example.com
gather_facts: false
tasks:
- name: Verify that the images NFS share is mounted
shell: "df -h | grep nfs.example.com:/srv/images"
register: nfs_check
ignore_errors: yes
View trello-card-links.user.js
@jbgo
jbgo / bulk.json
Created Dec 21, 2015
elasticsearch issue sample data
View bulk.json
POST rolodex/people/_bulk
{"index":{}}
{"first_name":"elit","last_name":"orci"}
{"index":{}}
{"first_name":"diam","last_name":"habitant"}
{"index":{}}
{"first_name":"quis","last_name":"scelerisque"}
{"index":{}}
{"first_name":"ligula","last_name":"Nunc"}
{"index":{}}
@jbgo
jbgo / text-editor-shootout.md
Created Oct 28, 2015
Text editor shootout for KE LnL
View text-editor-shootout.md

Installation

brew install neovim

Then add the following to your ~/.bashrc

alias vi=neovim
alias vim=neovim
@jbgo
jbgo / Gemfile
Last active Oct 19, 2015
Examples for Better TDD in PHP with Rake and Guard https://opensolitude.com/2015/10/18/phpunit-tests-rake-guard.html
View Gemfile
source "https://rubygems.org"
gem "guard-rake"
You can’t perform that action at this time.