Skip to content

Instantly share code, notes, and snippets.

View fooforge's full-sized avatar
🌴
On vacation

Mike Stojan fooforge

🌴
On vacation
View GitHub Profile
@fooforge
fooforge / commands.log
Last active October 4, 2019 12:34
Contao Release Statistics (Tag, Tarball downloads, Zip downloads)
|2.1.6-github| Mikes-MacBook-Pro in ~/Downloads
○ → curl -v https://api.github.com/repos/contao/core/releases > contao_rel_stats
|2.1.6-github| Mikes-MacBook-Pro in ~/Downloads
○ → grep -w 'tag_name\|download_count' contao_rel_stats

Mike Adolphs

Contact details

Speaker bio

Mike Adolphs is an Operations expert. Previously automating infrastructure for nugg.ad and XING, he's now with GitHub making people's life a little easier. For the past 1 1/2 years he's been working on technical support for the GitHub Enterprise product - his first support-orientied role ever since - allowing him to deep dive into other people's code on a daily basis and levelling up his social skills.

@fooforge
fooforge / 99-central.conf
Created May 5, 2013 21:20
This is a logserver sample config for rsyslog that enables you to separate the GitHub Enterprise VM's log files by $programname. (/etc/rsyslog.conf, /etc/rsyslog.d/99-central.conf)
$template DYNexceptions, "/var/log/hosts/%HOSTNAME%/exceptions.log"
$template DYNgit_auth, "/var/log/hosts/%HOSTNAME%/github_gitauth.log"
$template DYNgit_http, "/var/log/hosts/%HOSTNAME%/github_git-http-server.log"
$template DYNmemcached, "/var/log/hosts/%HOSTNAME%/github_memcached.log"
$template DYNnodeload, "/var/log/hosts/%HOSTNAME%/github_nodeload.log"
$template DYNredis, "/var/log/hosts/%HOSTNAME%/redis.log"
$template DYNresque, "/var/log/hosts/%HOSTNAME%/github_resque.log"
$template DYNsolr, "/var/log/hosts/%HOSTNAME%/solr.log"
$template DYNsolr_build_indexes, "/var/log/hosts/%HOSTNAME%/solr_indexes.log"
$template DYNunicorn, "/var/log/hosts/%HOSTNAME%/github_unicorn.log"
@fooforge
fooforge / gamertag.rb
Created January 1, 2013 22:00
Hash returned by the gamertag gem.
=> #<Gamertag::Profile:0x7f98b0b5fdd8
@profile = {
"avatarbody" => "http://avatar.xboxlive.com/avatar/fooforge/avatar-body.png",
"avatarbodyssl" => "https://avatar-ssl.xboxlive.com/avatar/fooforge/avatar-body.png",
"avatarlarge" => "http://avatar.xboxlive.com/avatar/fooforge/avatarpic-l.png",
"avatarlargessl" => "https://avatar-ssl.xboxlive.com/avatar/fooforge/avatarpic-l.png",
"avatarsmall" => "http://avatar.xboxlive.com/avatar/fooforge/avatarpic-s.png",
"avatarsmallssl" => "https://avatar-ssl.xboxlive.com/avatar/fooforge/avatarpic-s.png",
"avatartile" => "http://avatar.xboxlive.com/avatar/fooforge/avatarpic-l.png",
"avatartilessl" => "https://avatar-ssl.xboxlive.com/avatar/fooforge/avatarpic-l.png",
@fooforge
fooforge / gist:3373243
Created August 16, 2012 20:13
Mac OS X Setup

This document exists purely to keep track of customizations and software soon to be taken care of by chef.

Software

Cmd-Line

@fooforge
fooforge / Zenburn.itermcolors
Created August 16, 2012 20:10
iterm2 - Zenburn theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.30196079611778259</real>
<key>Green Component</key>
<real>0.30196079611778259</real>
@fooforge
fooforge / symbol_to_string.sh
Created July 30, 2012 12:21 — forked from atomic-penguin/symbol_to_string.sh
Foodcritic FC001 fixer script.
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: `basename $0` <cookbook directory>"
elif [ "$#" -eq 1 ]; then
find $1 -name "*[.md|.rb]" \! -name "*.erb" | xargs perl -p -e 's!\[:([a-z0-9_]+)\]![\x27$1\x27]!gi' -i
fi
@fooforge
fooforge / run-chef.sh
Created June 29, 2012 09:03 — forked from ashb/run-chef.sh
Make the chef-client (v0.10+) daemon process wake and run, and print what its doing to stdout
#!/bin/bash
#
# Author:: Ash Berlin ([email protected])
# Copyright:: Copyright (c) 2011 DigiResults Ltd.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#