Skip to content

Instantly share code, notes, and snippets.

@bd808
bd808 / unicorn.txt
Created July 10, 2017 16:32
ASCII Unicorn
\_
`)`-,~
/< <\
@bd808
bd808 / keybase.md
Created September 30, 2014 04:03
keybase verification

Keybase proof

I hereby claim:

  • I am bd808 on github.
  • I am bd808 (https://keybase.io/bd808) on keybase.
  • I have a public key whose fingerprint is 7DFA 4AEF AC15 8BFC 151D 2DD8 C139 E10F D9F2 0FC1

To claim this, I am signing this object:

@bd808
bd808 / apc_stats.php
Last active August 29, 2015 14:03
Dump APC data for monitoring
<?php
/**
* @section LICENSE
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@bd808
bd808 / fix-scap-symlinks-on-tin.sh
Created May 28, 2014 19:23
Fixes needed for the scap symlinks on tin
@bd808
bd808 / logo.txt
Last active August 29, 2015 13:56
Logo doodle for scap deployment script
___ ____
⎛ ⎛,----
\ //==--'
_//| .·//==--' ____________________________
_OO≣=-⎫ ︶ ᴹw ⎞_§ ______ ___⎞ ___⎞,/__ ⎞/ __ ⎞
(∞)◀▶ ⎠ ⎛ ⎟ ______(__ ⎞/ /__ / /_/ / /_/ /
¨--¨|| |-⎝ / _______\___/ \___/ \__^_/ .__/
««_/ «_/ jgs/bd808 /_/
@bd808
bd808 / mediawiki-vagrant-scap.patch
Last active August 29, 2015 13:56
Hacks to test scap in a vm
From 82f70da7e02551e458df7114747802e835a66c5e Mon Sep 17 00:00:00 2001
From: Bryan Davis <bd808@wikimedia.org>
Date: Thu, 13 Feb 2014 13:52:59 -0700
Subject: [PATCH] Hacks to test scap in a vm
A big bag of hacks wrapped in nails and glass, but works for me!
* dsh group files
* lint.php
* mw-deployment-vars.sh
@bd808
bd808 / 05-logging.php
Last active August 29, 2015 13:56
MWLogger configuration of monolog in use in my MW-Vagrant instance
<?php
/**
* Settings for monolog logging system
*/
$wgMWLoggerDefaultSpi = 'MWLoggerMonologSpi';
$wgMWLoggerMonologSpiConfig = array(
'loggers' => array(
'@default' => array(
@bd808
bd808 / fatalmonitor.json
Last active January 4, 2016 07:19
Kibana dashboards for logstash @ WMF
{
"title": "fatalmonitor",
"services": {
"query": {
"idQueue": [
1
],
"list": {
"2": {
"id": 2,
{
"title": "Fatals : last hour",
"services": {
"query": {
"idQueue": [
1
],
"list": {
"2": {
"id": 2,
@bd808
bd808 / gist:5266407
Created March 28, 2013 20:13
Mac/PythonLauncher/Makefile.in patch
diff --git a/Mac/PythonLauncher/Makefile.in b/Mac/PythonLauncher/Makefile.in
index a6962f6..fb11650 100644
--- a/Mac/PythonLauncher/Makefile.in
+++ b/Mac/PythonLauncher/Makefile.in
@@ -54,7 +54,7 @@ Python\ Launcher.app: Info.plist \
--resource=$(srcdir)/factorySettings.plist \
--plist Info.plist \
build
- find "Python Launcher.app" -name '.svn' -print0 | xargs -0 rm -r
+ find "Python Launcher.app" -name '.svn' -print0 | xargs -0 rm -rf