Skip to content

Instantly share code, notes, and snippets.

@jbgo
jbgo / keybase.md
Created June 1, 2021 18:09
keybase.md

Keybase proof

I hereby claim:

  • I am jbgo on github.
  • I am jbgo (https://keybase.io/jbgo) on keybase.
  • I have a public key ASCOGmjHuFYxXyNbS9vmTZZ5vYFKGbbbB49N_sFmxb_WCQo

To claim this, I am signing this object:

@jbgo
jbgo / test-results.txt
Created July 21, 2017 17:03
test results
[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 March 8, 2017 21:18
Minimal Habitat plan for Ruby
# 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 September 2, 2016 16:41
My vagrant setup for python flask apps
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 June 4, 2016 19:25
Iteration 3 Playbook - Stupid DevOps Tricks: Executable IT docs with Ansible
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 June 4, 2016 19:11
Iteration 2 Playbook - Stupid DevOps Tricks: Executable IT docs with Ansible
---
- 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 June 4, 2016 19:48
Iteration 1 Playbook - Stupid DevOps Tricks: Executable IT docs with Ansible
---
- 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
@jbgo
jbgo / bulk.json
Created December 21, 2015 15:43
elasticsearch issue sample data
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 October 28, 2015 17:27
Text editor shootout for KE LnL

Installation

brew install neovim

Then add the following to your ~/.bashrc

alias vi=neovim
alias vim=neovim