Skip to content

Instantly share code, notes, and snippets.

Jamie Wilkinson jamiew

Block or report user

Report or block jamiew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jamiew
jamiew / logstash.conf
Created Oct 12, 2017 — forked from radu-gheorghe/logstash.conf
logstash grok filter for Elasticsearch logs
View logstash.conf
filter {
if [type] == "elasticsearch" {
grok {
match => [ "message", "\[%{TIMESTAMP_ISO8601:timestamp}\]\[%{DATA:severity}%{SPACE}\]\[%{DATA:source}%{SPACE}\]%{SPACE}(?<message>(.|\r|\n)*)" ]
overwrite => [ "message" ]
}
if "_grokparsefailure" not in [tags] {
grok { # regular logs
match => [
@jamiew
jamiew / heroku_unicorn_logger_fix.rb
Created Mar 28, 2012
Fix Heroku cedar app logging with Rails 3.1 and Unicorn
View heroku_unicorn_logger_fix.rb
# config/environments/production.rb
# We're on Heroku, just output straight to STDOUT
# This is required because we're using Unicorn: https://github.com/ryanb/cancan/issues/511#issuecomment-3643266
config.logger = Logger.new(STDOUT)
config.logger.level = Logger.const_get(ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'INFO')
View keybase.md

Keybase proof

I hereby claim:

  • I am jamiew on github.
  • I am jamiew (https://keybase.io/jamiew) on keybase.
  • I have a public key whose fingerprint is FB50 DFCC 1678 3295 E29E C5F3 F187 2D25 BA0E DE60

To claim this, I am signing this object:

@jamiew
jamiew / _mediacenter_setup.sh
Last active May 26, 2016
Checkout and launch SABnzbd+, CouchPotato and SickBeard on startup. Put the launchagent plist files in ~/Library/LaunchAgents
View _mediacenter_setup.sh
# you'll need homebrew too
cd Sites
git clone git://github.com/midgetspy/Sick-Beard.git sickbeard
# Probably need this:
# sudo easy_install cheetah
#
# test:
# python sickbeard/SickBeard.py
View jdubs gitconfig
[user]
name = Jamie Wilkinson
email = jamie@jamiedubs.com
[github]
user = jamiew
token = <REDACTED>
[apply]
whitespace = nowarn
[branch]
autosetuprebase = always
View hubot-karma.coffee
# Description:
# It's all about the points. jamie++
#
# Commands:
# @username++ - Add a karma point for said user
# hubot leaderboard - Show karma points for all users. Also understands "scoreboard"
#
module.exports = (robot) ->
robot.brain.data.karma ?= {}
@jamiew
jamiew / gist:6945483
Last active Dec 25, 2015
my cookieclicker game
View gist:6945483
MS4wMzc1fHwxMzc5MzU3Nzg4MzU1fDExMTExMXwxODU3MTYyODA2ODEwNS45Nzc7NTExOTg3ODkwMTQ0NTAuMDU7NjM0MDs0MDs0ODY2MzQxMDkzMzQuNjY5OzQyMzstMTstMTswOzA7Mjs0ODQ2ODswOy0xfDEzNCwxNzMsMjk4NzAxNzY5MDcsMDsxNTAsMTYyLDU4MDU1NDU2MTU4NCwwOzk4LDEwMywzNTYyNTY5MjAsMDs4NSw4Niw4NDg3NTA0NjQsMDs3OCw3OSwyNzQ0NzgzODYxLDA7NzAsNzAsNTc2NzMzODU4OCwwOzYzLDYzLDE3MjAzMjI1OTY0LDA7NzcsNzcsMzcyMzIwNzI3MDg1LDA7NDgsNDgsMTgwNjIyMzcwNTMxMiwwOzQwLDQwLDEwMzQ2NzEzOTE1MDg3LDA7fDQ1MDM1OTk2MjczNzA0OTU7NDUwMzE4NzMxMDUxMDA3OTs0NTAzNTk5NjI3MzcwNDcxOzM5NDA2NTI0OTMwNTY1MTE7NTYzNDk5NzE1NTcwNTkxfDM4Njk3MjkxNjA2OTE3MTE7MjI1MjA5NzUwMjIyMjA0MzsyMw%3D%3D%21END%21
@jamiew
jamiew / .bashrc
Created Aug 5, 2013
Uninstalling rvm in favor of rbenv + some rvm-flavored plugins
View .bashrc
# 1. Edit ~/.bashrc and remove any rvm-loading code.
# 2. Then Add:
# Load rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export RBENV_ROOT=~/.rbenv
# Then:
# 3. Uninstall rvm
# 4. Restart shell/terminal
@jamiew
jamiew / deploy_site.php
Created Apr 23, 2013
GitHub webhook -> php script to update local git checkout Simplest possible continuous deployment for the http://gold.fffff.at static HTML website
View deploy_site.php
<html>
<body>
<pre>
Running...
<?php
$out = `cd /home/fffffat/gold.fffff.at && git fetch origin && git reset --hard origin/master`;
print $out;
@jamiew
jamiew / bash_aliases.sh
Created Apr 15, 2013
ec2-related bash aliases
View bash_aliases.sh
export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)"
export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)"
export EC2_HOME="/usr/local/Library/LinkedKegs/ec2-api-tools/jars"
export EC2_REGION="us-east-1"
export EC2_URL="https://${EC2_REGION}.ec2.amazonaws.com/"
alias instances="ec2-describe-instances | grep INSTANCE | awk '{ print \$2,\$4,\$6 }'"
alias launch_ubuntu_instance='ec2-run-instances ami-7c2da54c -t t1.micro' # http://cloud-images.ubuntu.com/releases/precise/release/
export VHX_EC2_AMI="ami-9ef96af7" # vhx transcoder2 us-east-1
You can’t perform that action at this time.