One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<?php | |
$audit = file_get_contents('audit.txt'); | |
$audit = split("\n", $audit); | |
$data = Array(); | |
for ($i=0; $i!=count($audit); $i++) { | |
$line = $audit[$i]; | |
$datatype = substr($line, 0, 1); | |
switch ($datatype) { | |
case '-': | |
$day = substr($line, 3, 10); |
#! /bin/sh | |
# | |
# whatthecommit - Random commit message generator | |
# | |
# Show random commit message from http://whatthecommit.com/. | |
# | |
# Seungwon Jeong <seungwon0@gmail.com> | |
# | |
# Copyright 2011 by Seungwon Jeong |
#!/usr/bin/env python3 | |
import logging | |
import sys | |
import time | |
import praw | |
def configure_logging(): | |
logger = logging.getLogger("praw") |
--[[ | |
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. | |
Example: | |
ProFi = require 'ProFi' | |
ProFi:start() | |
some_function() | |
another_function() | |
coroutine.resume( some_coroutine ) | |
ProFi:stop() |
#!/bin/sh | |
# | |
# branch -> remove /path/to/branch | |
tag=$( git symbolic-ref HEAD \ | |
| awk -F'/' '{print $NF}' \ | |
| sed 's/^[Cc][Rr][Bb]-\([0-9]\+\)/CRB-\1/' \ | |
) | |
[ -n "$tag" ] && echo "$tag" >> $1 |
#!/bin/bash | |
function list { | |
for branch in `git branch --remote | awk '{print $1}'`; do | |
last=`git log $branch | grep Author | head -1 | awk '{print $NF}'` | |
echo $last $branch | |
done | |
} | |
list | sort |
pico-8 cartridge // http://www.pico-8.com | |
version 4 | |
__lua__ | |
player = {} | |
player.x = 5 | |
player.y = 5 | |
player.sprite = 0 | |
player.speed = 2 | |
function move() |
Pattern file: /etc/logstash/patterns/nginx
Logstash shipper: /etc/logstash/conf.d/shipper.conf
Nginx http log module: http://nginx.org/en/docs/http/ngx_http_log_module.html