I hereby claim:
- I am nickpeirson on github.
- I am nickpeirson (https://keybase.io/nickpeirson) on keybase.
- I have a public key whose fingerprint is C9B6 8FF1 EBEA FF4E 8CBF 93D6 3CFF 7B07 1724 D6B1
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
//hide column | |
var colWidths = {}; | |
var headDims = {}; | |
$('#ghx-column-headers li').toggle( | |
function() { | |
heading = $(this); | |
var columnId = heading.data('id'); | |
headDims[columnId] = { | |
'width': heading.width(), | |
'height': heading.height() |
<?php | |
namespace CG\Di\Definition\RuntimeDefinition; | |
use CG\Di\Definition\RuntimeDefinition; | |
use Zend\Di\Definition\IntrospectionStrategy; | |
use Zend\Cache\Storage\StorageInterface; | |
use Zend\Cache\Storage\Adapter\Memory; | |
class Cache extends RuntimeDefinition | |
{ |
<?php | |
function _log($msg) { | |
file_put_contents('/tmp/log', $msg.PHP_EOL, FILE_APPEND); | |
} | |
function getStatus(&$widths, $filter = '') { | |
$filter = strtolower($filter); | |
_log('Getting status'); | |
$gearmanStatus = explode("\n",`gearadmin --status`); | |
$statusLines = []; | |
foreach ($gearmanStatus as $job) { |
#!/bin/bash | |
INSTANCE="$1" | |
if [ "x$INSTANCE" = "x" ]; then | |
echo "Please specify an instance" | |
exit 1 | |
fi | |
INSTANCE=$(knife ec2 server list | awk "/$INSTANCE/{ print \$1 }") | |
if [ "x$INSTANCE" = "x" ]; then | |
echo 'Instance not found' | |
exit 2 |
Start with a fresh Ubuntu Server installation.
NOTE: In the commands and files below, be sure to replace <yourusername>
with your username and <yourgroupname>
with your group name (probably the same as your username). Also, replace <yourhostname>
with your server's hostname.
. /etc/lsb-release
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu ${DISTRIB_CODENAME} main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt update
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Hangup/> | |
</Response> |
{ | |
"elasticsearch" : { | |
"title" : "Elasticsearch log4j2 pattern format", | |
"description" : "Log4j2 pattern format used bu Elasticsearch", | |
"regex" : { | |
"basic" : { | |
"pattern" : "^\\[(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2},\\d{3})\\]\\[(?<level>[^\\] ]+) *\\]\\[(?<component>[^\\]]+)\\] (?<body>(.*))\\n?(?<stacktrace>.*\\n(\\tat.*\\n?)*)?$" | |
} | |
}, | |
"level-field" : "level", |
#!/bin/bash | |
################################################################## | |
# Script: Zombie Slayer | |
# Author: Mitch Milner | |
# Date: 03/13/2013 ---> A good day to slay zombies | |
# | |
# Requirements: yum install gdb / apt-get install gdb | |
# permissions to attach to the parent process | |
# | |
# This script works by using a debugger to |
{ | |
"monolog": { | |
"title": "Monolog log file", | |
"description": "Monolog log format", | |
"url": "https://github.com/Seldaek/monolog", | |
"regex": { | |
"default": { | |
"pattern": "\\[(?P<timestamp>.*)\\] (?P<logger>\\w+).(?P<level>\\w+): (?P<message>.+) (?P<context>[\\[\\{].*[\\]\\}]) (?P<extra>[\\[\\{].*[\\]\\}])$" | |
} | |
}, |