Skip to content

Instantly share code, notes, and snippets.

View chacken's full-sized avatar

Chris Hacken chacken

View GitHub Profile
@njh
njh / juniper-srx.conf
Created July 29, 2017 22:01
Juniper SRX configuration for DHCP client (WAN side) and DHCP Server (LAN side)
## Last commit: 2017-07-29 17:20:42 GMT by root
version 12.1X46-D66.1;
system {
host-name cable-router;
domain-name example.com;
time-zone Europe/London;
root-authentication {
encrypted-password "xxx";
}
name-server {
@chrismdp
chrismdp / bootstrap_chef.bash
Created June 15, 2011 07:12 — forked from michaelvobrien/bootstrap_chef.bash
Bootstrap Chef Solo on Ubuntu
#!/usr/bin/env bash
# call like this on the target server:
# NODENAME='foo' CHEF_ENV='production' RUNLIST='["role[foo]","recipe[bar]"]' CHEFREPO='git@example.com:repo.git' bash <( curl -L https://raw.github.com/gist/1026628 )
# You will need to ensure that the ssh key is already set up on the server.
set -e
export CHEF_DIR="${HOME}/chef"
sudo rm -rf $CHEF_DIR
mkdir -p "$CHEF_DIR"
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE