Skip to content

Instantly share code, notes, and snippets.

View jhazelwo-charter's full-sized avatar

John Hazelwood jhazelwo-charter

  • Charter
  • Denver, CO
View GitHub Profile
@jhazelwo-charter
jhazelwo-charter / night-before-opsmas.txt
Created December 22, 2017 20:42 — forked from anonymous/night-before-opsmas.txt
Twas the night before Opsmas..
'Twas the night before Christmas, when all through the racks
Not a server was alerting, not even Compaqs.
The backups were written to tapes with care
In hopes that later the data would be there.
The machines were nestled all snug in their sleds
Whilst visions of vengeance danced in their heads;
And oncall in his three-wolf and I in my rack.
Had just settled down for some syn and some ack.
@jhazelwo-charter
jhazelwo-charter / daemon.json
Created December 7, 2017 16:48
Docker daemon.json
{
"authorization-plugins": [],
"data-root": "",
"dns": [],
"dns-opts": [],
"dns-search": [],
"exec-opts": [],
"exec-root": "",
"experimental": false,
"storage-driver": "",

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud, open source and business](https://blogs.the451group.com/opensource/2010/03/03/devops-mixing-dev-ops-agile-cloud-open-source-and-busi

@jhazelwo-charter
jhazelwo-charter / container.sh
Created November 1, 2017 14:28
Docker script to aid with building and running containers
#!/bin/sh
#
# Default Example
contname="" # contname="spaceship"
image_name="" # image_name="zbeeblebrox/${contname}:1.0"
nodename="" # nodename="--hostname=${contname}"
runname="" # runname="--name=${contname}"
run_rm="" # run_rm="--detach"
build_rm="" # build_rm="--force-rm=true"
port="" # port="-p `hostname -i`:80:80 -p `hostname -i`:443:443"
@jhazelwo-charter
jhazelwo-charter / nginx.conf
Created October 3, 2017 14:54
NGINX FreeIPA authentication
worker_processes 4;
pid /app/run/nginx.pid;
error_log /app/log/error.log;
events {
worker_connections 768;
}
http {
#!/bin/sh
# idle cpu as dots
vmstat -n 1 | while read line; do
length=`echo $line|awk '{print $15}'|egrep "^[0-9]+$"`
test -n "$length" && {
echo -n $length
for e in `seq 1 $length `; do echo -n .; done;
echo '';
} || true
done
@jhazelwo-charter
jhazelwo-charter / GGit.ps1
Created March 31, 2017 16:38
A 1-button git add, commit and push Powershell script using the Windows GitHub client.
$env:Path += ";C:\Users\me\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd"
. C:\Users\me\AppData\Local\GitHub\PoshGit_73b8bf9c588df6d17c193e270da0ed4cf890d868\GitUtils.ps1
Start-SshAgent -Quiet
Add-SshKey C:\Users\me\.ssh\github_rsa
cd C:\Users\me\Art\docs\
git add -A .
git commit -m 'auto'
git push -u origin master
@jhazelwo-charter
jhazelwo-charter / default.key
Last active March 22, 2017 16:11
SecureCRT 6.7.5 Keymaps
N VK_BACK "\010"
N VK_PRIOR SB_PAGE_UP
N VK_NEXT SB_PAGE_DOWN
N VK_END SB_END
N VK_LEFT VT_CURSOR_LEFT
N VK_UP VT_CURSOR_UP
N VK_RIGHT VT_CURSOR_RIGHT
N VK_DOWN VT_CURSOR_DOWN
N VK_DELETE "\177"
N VK_F1 VT_PF1
#!/bin/sh
please() {
ls /file/not/found
}
thanks() {
echo "file was found"
}