Skip to content

Instantly share code, notes, and snippets.

View 1davidmichael's full-sized avatar

David Michael 1davidmichael

View GitHub Profile
#!/bin/sh
SEARCH=$1
for vault in $(grep -Rl ANSIBLE_VAULT .); do
ansible-vault decrypt --output=- $vault | grep ${SEARCH} | sed -e "s~^~${vault}: ~"
done
@1davidmichael
1davidmichael / virtualenv.sh
Last active January 17, 2017 22:34
Install custom ansible version in a virtualenv
#!/bin/bash
mkdir -p ansible_virtualenv
cd ansible_virtualenv
virtualenv .
source ./bin/activate
git clone https://github.com/meredith-digops/ansible.git && cd ansible
git checkout meredith
git submodule update --init --recursive
pip install .
#!/usr/bin/env python
import datetime
import Queue
from threading import Thread
from subprocess import call
start_date = datetime.date(2015,10,10)
end_date = datetime.date.today()
delta = end_date - start_date

Keybase proof

I hereby claim:

  • I am r0b0ticus on github.
  • I am davidmichael (https://keybase.io/davidmichael) on keybase.
  • I have a public key ASAIQ3L1qZ2pxi5lrGong4IYEwTRNMdPGfYtyOY-WIFg0wo

To claim this, I am signing this object:

if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
call plug#begin('~/.vim/bundle')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
@1davidmichael
1davidmichael / PKGBUILD
Created December 23, 2015 20:13
plex-media-server 0.9.14.6.1620-e0b7243
# Maintainer: Maxime Gauduin <[email protected]>
# Contributor: Rob Sletten <[email protected]>
# Contributor: Tom Moore <[email protected]>
# Contributor: monty <[email protected]>
# Contributor: Jon Wiersma <[email protected]>
# Contributor: Arthur <[email protected]>
# Contributor: Praekon <[email protected]>
pkgname=plex-media-server
pkgver=0.9.14.6.1620
# Maintainer: Black_Codec <[email protected]>
pkgname=guacamole-client
pkgver=0.9.2
pkgrel=1
pkgdesc="Java and Maven components of Guacamole"
arch=('any')
url="http://guacamole.sourceforge.net/"
license=('GPL3')
# Maintainer: Black_Codec <[email protected]>
pkgname=guacamole-server
pkgver=0.9.2
pkgrel=1
pkgdesc="Guacamole proxy daemon"
arch=('i686' 'x86_64')
url="http://guacamole.sourceforge.net/"
license=('GPL3')