Skip to content

Instantly share code, notes, and snippets.

View kcollasarundell's full-sized avatar
:shipit:
What year is it O.O

Kevin Collas-Arundell kcollasarundell

:shipit:
What year is it O.O
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kcollasarundell on github.
  • I am kca (https://keybase.io/kca) on keybase.
  • I have a public key whose fingerprint is F947 B5C6 6134 9BCD FD51 6711 7A77 20DD 1C11 48E2

To claim this, I am signing this object:

@kcollasarundell
kcollasarundell / pwhash
Created February 6, 2014 02:09
Password hashing tool for those of us suffering redhat systems
#!/usr/bin/python
import random
import crypt
import sys
ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
rounds = 25412
{
"metadata": {
"name": "fraus"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@kcollasarundell
kcollasarundell / gist:8448941
Last active January 3, 2016 10:19
The quality of melbournes Myki system.
~ [ dig myki.com.au. @ns2.ntsprod.com. any
; <<>> DiG 9.9.3-rpz2+rl.13214.22-P2-Ubuntu-1:9.9.3.dfsg.P2-4ubuntu1.1 <<>> myki.com.au. @ns2.ntsprod.com. any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24696
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 6
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
#!upstart
# An example upstart script for running the ghost blog as a daemon with
# logging and process management via upstart
# You will need to set the environment variables noted below to conform to
# your use case, and should change the description.
description "GHOST blog"
@kcollasarundell
kcollasarundell / killing-floor.conf
Last active January 1, 2016 03:59
quick rewrite of a kiling floor init script to upstart
description "Starting a quick and dirty killingfloor server with upstart"
#put this file into /etc/init/
#Start the service when the host has network and filesystems
start on (local-filesystems and net-device-up and runlevel [2345])
stop on runlevel [016]
#the magic restart
respawn
@kcollasarundell
kcollasarundell / moop
Last active December 25, 2015 13:49
explaination of ; vs , in puppet for 3JTAAG918
So 3JT asked about the use of ; in https://forge.puppetlabs.com/nodes/php/0.6.1
it all comes down to making multiple resource declarations in a single block vs multiple blocks
With multiple declarations ; indicates the end of a resource
This
class {
'php::cli':
ensure => $php_version;
'php::apache':
@kcollasarundell
kcollasarundell / .gitconfig
Last active December 24, 2015 01:19
versioncontrol your gitconfig but the gitlocal should be a host\env specific allowing you to differentiate between work commits and personal without losing the gitconfigalso get the following:Gitgutter for vim and sublimegit-up gem
[include]
path = .gitlocal
[alias]
lol = log --graph --decorate --pretty --oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
hlog = log --pretty=format:'The author of %h was %an, %ar%nThe title was >>%s<<%n'
unstage = reset HEAD --
tree = log --graph --oneline --pretty=oneline --all
treeall = log --oneline --decorate --all --decorate --graph
lg = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' --abbrev-commit --date=relative
@kcollasarundell
kcollasarundell / pre-commit
Last active December 19, 2015 08:18
stop commits: a simple pre-commit hook to prevent commits to the central production repo
#!/bin/bash
USER=`whoami`
DATE=`date --iso-8601=minute`
REPONAME=
PREFIX="$REPONAME_files_attempt"
PATCHFILE="${PREFIX}-${DATE}.patch"
REPODIR="/opt/$REPONAME"
MAINREPO="SOURCEGOESHERE"
@kcollasarundell
kcollasarundell / conf.yml
Created July 3, 2013 08:09
ansible for squid
this