Skip to content

Instantly share code, notes, and snippets.

View louissimps's full-sized avatar

Louie Simpson louissimps

View GitHub Profile
npm config set scripts-prepend-node-path auto
# Python generates bytes for csv this will remove the stupid b' before everything
with io.open(FILE_NAME, encoding='utf-8') as f:
reader = csv.DictReader( f, fieldnames = ("ID","Control Description","Low","Moderate","High"))
for row in reader:
for s in row:
row[s] = row[s][2:-1]
#kill all running containers
docker kill $(docker ps -q)
#stop all running containers
docker stop $(docker ps -q)
@louissimps
louissimps / gist:ea1c8d62492899e2a616
Last active August 29, 2015 14:27 — forked from blalor/gist:c325d500818361e28daf
redhat init script for consul
#!/bin/bash
#
# consul Manage the consul agent
#
# chkconfig: 2345 95 95
# description: Consul is a tool for service discovery and configuration
# processname: consul
# config: /etc/consul.conf
# pidfile: /var/run/consul.pid
@louissimps
louissimps / xbuild-cert-install
Created April 22, 2015 13:37
This command installs the needed certs so xbuild can properly connect to Nuget repositories
mozroots --import --machine --sync
@louissimps
louissimps / boxstarter-dev-init
Last active August 29, 2015 14:13
My default dev setup
# A simple BoxStarter script for use with http://boxstarter.org/WebLauncher
# Updates a Windows machine and installs a range of developer tools
# Show more info for files in Explorer
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
# Allow running PowerShell scripts
Update-ExecutionPolicy Unrestricted

Keybase proof

I hereby claim:

  • I am louissimps on github.
  • I am mulletonthego (https://keybase.io/mulletonthego) on keybase.
  • I have a public key whose fingerprint is D16D A932 0CD0 2974 A0A3 0D48 74CB 69C1 25C2 2FCE

To claim this, I am signing this object: