Skip to content

Instantly share code, notes, and snippets.

View rcreasey's full-sized avatar
🎯
Focusing

Ryan C. Creasey rcreasey

🎯
Focusing
View GitHub Profile
@jtimberman
jtimberman / network_addr.rb
Created June 22, 2011 16:53
Ohai plugin to provide semantically nice attributes for network interfaces
#
# Author:: Joshua Timberman (<joshua@opscode.com>)
# Copyright:: Copyright (c) 2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@baopham
baopham / Monaco for Powerline.otf
Last active April 16, 2023 03:57
Patched font Monaco for OSX Vim-Powerline
#!/bin/bash
vulcan_ip=$1
host_name=$2
endpoint_ip_port=$3
if [[ -n "$1" && -n "$2" && -n "$3" ]]
then
# add host
docker run mailgun/vulcand /opt/vulcan/vulcanctl host add --name $host_name --vulcan=http://$vulcan_ip:8182
#!/bin/sh
BOOT2DOCKER_CERTS_DIR=/var/lib/boot2docker/certs
CERTS_DIR=/etc/ssl/certs
CAFILE=${CERTS_DIR}/ca-certificates.crt
for cert in $(/bin/ls -1 ${BOOT2DOCKER_CERTS_DIR}); do
SRC_CERT_FILE=${BOOT2DOCKER_CERTS_DIR}/${cert}
CERT_FILE=${CERTS_DIR}/${cert}
HASH_FILE=${CERTS_DIR}/$(/usr/local/bin/openssl x509 -noout -hash -in ${SRC_CERT_FILE} 2>/dev/null)
#!/bin/bash
brew_command=/usr/local/bin/brew
brew_cask_command="$brew_command cask"
echo '#!/bin/bash'
echo ''
echo 'trap ctrl_c INT'
echo 'function ctrl_c() {'
echo 'echo "** Trapped CTRL-C"'
@sourcec0de
sourcec0de / docker-compose-coreos.sh
Created November 30, 2015 19:39
Install docker compose on coreos
sudo su -
mkdir -p /opt/bin
curl -L https://github.com/docker/compose/releases/download/1.5.1/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
@marineam
marineam / gist:11f0e7d9e4a55cb599fe
Created February 16, 2016 19:54
squish openstack image
$ qemu-img convert -O raw coreos_production_openstack_image.img coreos_production_openstack_image.bin
$ sudo losetup --show --find --partscan coreos_production_openstack_image.bin
/dev/loop0
$ sudo losetup --show --find --partscan coreos_production_image.bin
/dev/loop1
$ sudo dd if=/dev/loop0p6 of=/dev/loop1p6 bs=1M
128+0 records in