Skip to content

Instantly share code, notes, and snippets.

View chriscowley's full-sized avatar

Chris Cowley chriscowley

View GitHub Profile
@chriscowley
chriscowley / custom.css
Last active October 31, 2025 19:16
hugo-esv-include
/* === Custom Styles for ESV Bible Verses (Ananke Theme) === */
/* General blockquote appearance */
.esv-blockquote {
border-left: 4px solid #ccc; /* subtle left bar */
padding-left: 1rem; /* space after border */
margin: 1.5rem 0; /* top/bottom spacing */
font-style: italic; /* scripture look */
color: #222; /* near-black text for readability */
background-color: #f9f9f9; /* faint background */
terraform plan -out bootstrap.plan
2019/10/10 18:13:11 [INFO] Terraform version: 0.12.10
2019/10/10 18:13:11 [INFO] Go runtime version: go1.12.9
2019/10/10 18:13:11 [INFO] CLI args: []string{"/home/ccowley/.local/bin/terraform", "plan", "-out", "bootstrap.plan"}
2019/10/10 18:13:11 [DEBUG] Attempting to open CLI config file: /home/ccowley/.terraformrc
2019/10/10 18:13:11 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/10/10 18:13:11 [INFO] CLI command args: []string{"plan", "-out", "bootstrap.plan"}
2019/10/10 18:13:11 [DEBUG] checking for provider in "/home/ccowley/.local/bin"
2019/10/10 18:13:11 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2019/10/10 18:13:11 [DEBUG] found provider "terraform-provider-google-beta_v2.17.0_x4"
@chriscowley
chriscowley / abstruce_build.log
Created January 15, 2018 09:18
abstruse_builder fails
docker build -t abstruse_builder .
Sending build context to Docker daemon 2.56kB
Step 1/9 : FROM ubuntu:17.10
---> 275d79972a86
Step 2/9 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> 6daf8e4eeb89
Step 3/9 : ENV DISPLAY :99
---> Running in a213e63d80e0
---> f44ec2bc39bc
@chriscowley
chriscowley / gist:7de1a886d95912b5abb80807a21e306f
Created June 27, 2017 07:30
gitlab-rake db:migrate:status
database: gitlabhq_production
Status Migration ID Migration Name
--------------------------------------------------
up 20121220064453 Init schema
up 20130102143055 Rename owner to creator for project
up 20130110172407 Add public to project
up 20130123114545 Add issues tracker to project
up 20130125090214 Add user permissions
up 20130131070232 Remove private flag from project
[chris@v2vhost ~]$ export LIBGUESTFS_BACKEND=direct
[chris@v2vhost ~]$ sudo virt-p2v-make-disk -v -o p2v.img
command line: virt-builder fedora-24 -v -x --output p2v.img --update --install pcre,libxml2,gtk3,/usr/bin/ssh,/usr/bin/qemu-nbd,curl,ethtool,util-linux,xterm,less,vim-minimal,hwdata,pciutils,hdparm,smartmontools,iscsi-initiator-utils,/usr/bin/xinit,/usr/bin/Xorg,xorg-x11-drivers,xorg-x11-fonts-Type1,dejavu-sans-fonts,dejavu-sans-mono-fonts,mesa-dri-drivers,metacity,NetworkManager,nm-connection-editor,network-manager-applet,dbus-x11,net-tools,@hardware-support --root-password password:p2v --upload /usr/share/virt-p2v/issue:/etc/issue --upload /usr/share/virt-p2v/issue:/etc/issue.net --mkdir /usr/bin --upload /tmp/tmp.1vBRSqAx6i/virt-p2v:/usr/bin/virt-p2v --chmod 0755:/usr/bin/virt-p2v --upload /usr/share/virt-p2v/launch-virt-p2v:/usr/bin/ --chmod 0755:/usr/bin/launch-virt-p2v --upload /usr/share/virt-p2v/p2v.service:/etc/systemd/system/ --mkdir /etc/systemd/system/default.target.wants --link /usr/lib/sy
To whom it may concern
Thanks to the awesome DevopsWeekly newsletter, I saw that Close.io are hiring an infrastructure/DevOps Engineer. I recently decided to search for a new challenge, and decided to put myself forward.
First a little background: I am a former sound engineer that moved in to IT when I started a family. I basically swapped my hobby (Linux/Dev) with my job. That was a while ago, but is still a good talking point (yes, I worked with many famous people).
After a brief stint in sales, I moved into UNIX development with a large US-based defense contracter. That involved a lot of scripting (shell), Oracle, C and Ada. From there I moved into broadcast world. I was the Linux/Storage/Network Engineer on a small (4-5 people) internal IT team.
I was there for ~4 years where like to think I achieved many things:
@chriscowley
chriscowley / distribute-keys.sh
Last active April 21, 2016 13:59
Generate certificates for use in a Swarm cluster
#!/bin/sh
INFILE=$1
CACERT="${HOME}/.docker/ca.pem"
show_help() {
echo -e "Usage:"
echo " ./distribute-keys.sh nodes.in"
echo -e "\nnodes.in is a list nodes and IPs to create certificates for."
@chriscowley
chriscowley / cinder-heat2.yaml
Created May 15, 2015 09:50
Create cinder volume and an instance, format and mount the volume
jenkins:
type: OS::Nova::Server
properties:
image: { get_param: ImageID }
flavor: m1.tiny
networks:
- network: { get_param: NetID }
user_data_format: RAW
user_data:
str_replace:
@chriscowley
chriscowley / cinder-heat1.yaml
Created May 15, 2015 09:48
Create cinder volume and an instance
heat_template_version: 2014-10-16
description: A simple server to run Jenkins
parameters:
imageid:
type: string
default: Centos-7-x64
description: Image use to boot a server
resources:
@chriscowley
chriscowley / cinder-nova.yaml
Last active August 29, 2015 14:21
heat cinder -> instance attach
instance_vol_att:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid: { get_resource: instance }
volume_id: { get_resource: instance_vol_data }
mountpoint: /dev/vdb