Skip to content

Instantly share code, notes, and snippets.

View sndwch's full-sized avatar
🚽
does anyone even read these

Jeff Parker sndwch

🚽
does anyone even read these
  • Kickass Cloud Engineering, Inc.
  • St. Paul, MN
View GitHub Profile
@sndwch
sndwch / handle_env.py
Last active December 4, 2017 15:55
Jenkins shell build step environment variable task substitution for ECS, for use with Promptworks aws-secrets
import sys, json
from subprocess import check_output
try:
environment = sys.argv[1]
except:
exit("Missing environment")
try:
filename = sys.argv[2]
@sndwch
sndwch / gist:cb1033dc032eb0fceda2
Last active November 1, 2015 19:51
Apache/PHP setup for per-developer Environments.
LogLevel debug
<VirtualHost *:80>
ServerAdmin [email protected]
ServerAlias dev.yourserver.com *.dev.yourserver.com
ServerName dev.yourserver.com
RewriteEngine on
RewriteCond %\{HTTP_HOST\} !^www.* [NC]
RewriteCond %\{HTTP_HOST\} ^dev\\.yourserver\\.com(.*)
RewriteRule ^(.*) /var/www/dev/public_html/$1 [L]
@sndwch
sndwch / .bashrc
Last active August 29, 2015 14:24
.bashrc
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\033[1;33m\]'
c_path='\[\e[0;33m\]'
c_git_clean='\[\e[0;36m\]'
c_git_dirty='\[\e[0;35m\]'
else
c_reset=
c_user=
@sndwch
sndwch / JSON.mqh
Last active June 7, 2024 01:38
For MetaTrader 4. Creates JSON objects from MQL types
#property copyright "erdeszt"
#property version "1.00"
#property library
#include <Object.mqh>
#include <Arrays/ArrayObj.mqh>
#include <Arrays/ArrayString.mqh>
#include <mqlcommon/Erdeszt/Map.mqh>
#include <mqlcommon/Erdeszt/SmartPtr.mqh>
#include <mqlcommon/Erdeszt/Utils.mqh>
@sndwch
sndwch / Dockerfile
Last active August 29, 2015 14:06
Hacker's Elixir. Builds Erlang R17.1 w/ Elixir, installs build-essential, git, make, sets up vim with Vundle and installs Vundle plugins
FROM phusion/baseimage:0.9.13
ENV HOME /root
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
CMD ["/sbin/my_init"]
RUN apt-get update && apt-get install -y wget vim build-essential unzip git make
RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
RUN dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update && apt-get install -y erlang
RUN rm erlang-solutions_1.0_all.deb
RUN locale-gen en_US.UTF-8
@sndwch
sndwch / .vimrc
Last active February 13, 2016 17:01
my .vimrc
set nocompatible " be iMproved, required
set number
filetype off " required
set laststatus=2
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set smartindent