Skip to content

Instantly share code, notes, and snippets.

View jrbing's full-sized avatar

JR Bing jrbing

View GitHub Profile
@jrbing
jrbing / ansible_jq_example.sh
Created October 16, 2017 20:58
Examples of using the Ansible setup module with jq
# List all keys
ansible -m setup hostname | sed '1 s/^.*$/{/' | jq '.ansible_facts | keys'
# Get the contents of a specific key
ansible -m setup hostname | sed '1 s/^.*$/{/' | jq '.ansible_facts.ansible_default_ipv4'

Keybase proof

I hereby claim:

  • I am jrbing on github.
  • I am jrbing (https://keybase.io/jrbing) on keybase.
  • I have a public key whose fingerprint is 5FEA 4CEE 491C 4D23 B9B0 AB38 10BD 932E EFDD CE56

To claim this, I am signing this object:

@jrbing
jrbing / .ycm_extra_conf.py
Last active September 7, 2015 23:18 — forked from ajford/.ycm_extra_conf.py
PlatformIO/YouCompleteMe Integration
"""
YouCompleteMe extra configuration for Platformio based
projects.
Based on the `.ycm_extra_conf.py` by @ladislas in his Bare-Arduino-Project.
Anthony Ford <github.com/ajford>
"""
import os