Skip to content

Instantly share code, notes, and snippets.

View themurph's full-sized avatar

Chris Murphy themurph

View GitHub Profile
#!/usr/bin/python
"""
Simple script to output Markdown text from git log
@Copyright 2017 Anselmos (github.com/Anselmos)
"""
import subprocess
import argparse
SCRIPT_AFTER = "$(date +%Y-%m-%d) 00:00"
@themurph
themurph / jameswhite_infra-manifesto.txt
Created March 13, 2019 08:40
James White Infra Manifesto
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
@themurph
themurph / gist:ad7965ae52026540e876568040043302
Created October 17, 2016 14:42
Snippet to convert VirtualBox disk to GCE, can't remember source of the script, will add attribution if i can find it.
VboxManage clonehd -format RAW ~/VirtualBox\ VMs/gce-demo/gce-demo.gcoq ~/disk.raw
gtar -cSzf gce-demo.tar.gz disk.raw
gsuitl cp gce-demo.tar.gz gs://virtualbox-gce-demo/gce-demo.tar.gz
gcloud compute images create gce-demo --source-uri gs://virtualbox-gce-demo/gce-demo.tar.gz
gcloud compute instances create gce-demo --image gce-demo --machine-type n1-standard-1 --zone us-central1-b
---
- name: Determine if Atomic
stat: path=/run/ostree-booted
register: s
changed_when: false
- name: Init the is_atomic fact
set_fact:
is_atomic: false
@themurph
themurph / gcdns_test.yml
Created October 5, 2016 01:19 — forked from walbert947/gcdns_test.yml
Ansible gcdns module test playbook
---
- name: 'Test the Google Cloud DNS module'
hosts: localhost
gather_facts: no
connection: local
vars:
#- test_zone: 'testing.example.com.' # <--- MUST include trailing dot
#- test_zone_id: 'testing-example-com'
#- gcp_project_id: 'test-project'

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: