Skip to content

Instantly share code, notes, and snippets.

View jeffjrare's full-sized avatar

JeffJRare jeffjrare

  • Canada
View GitHub Profile
@jeffjrare
jeffjrare / .gitignore
Last active October 8, 2015 12:18
SugarCRM .gitignore
# Ignore the cache directory completely.
# This will break the current behaviour. Which was often leading to
# the misuse of the repository as backup replacement.
# For development the cache directory can be safely ignored and
# therefore it is ignored.
/cache/
# Custom configuration should also be ignored.
/config.php
@jeffjrare
jeffjrare / array_output.html
Created February 21, 2014 17:24
Array test
Apc: 0.0036849975585938 seconds
Spl: 0.00083422660827637 seconds
Std: 0.00088095664978027 seconds
@jeffjrare
jeffjrare / .gitconfig
Last active May 18, 2017 15:31
Excerpt of my day-to-day job ~/.gitconfig
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
@jeffjrare
jeffjrare / redis
Created October 17, 2013 15:58
Centos 6 init.d for redis-server
#!/bin/sh
#
# redis init file for starting up the redis daemon
#
# chkconfig: - 20 80
# description: Starts and stops the redis daemon.
# Source function library.
. /etc/rc.d/init.d/functions
@jeffjrare
jeffjrare / .gitconfig
Created November 30, 2012 14:22
Jeff' .gitconfig
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
@jeffjrare
jeffjrare / 0-readme.md
Created November 23, 2012 16:59 — forked from burke/0-readme.md
ruby-1.9.3-p194 cumulative performance patch.

Patched ruby 1.9.3-p194 for 30% faster rails boot

Overview

This script installs a patched version of ruby 1.9.3-p194 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Many thanks to funny-falcon for the performance patches.

@jeffjrare
jeffjrare / Benchmarking.php
Created June 19, 2012 13:29
WIP: Simple denormalized event real time logging
<?php
require_once("../../secret_includes/connect.php");
$s=0;
$e=0;
$startTime = microtime(true);
Dp_Stats_Realtime::LoadSample();
for($i=32800;$i<=34000;$i++){
@jeffjrare
jeffjrare / prepare-commit-msg
Created May 23, 2012 18:36 — forked from ngarneau/prepare-commit-msg
Checks if your commit / branch name as a specific pattern
#!/usr/bin/env ruby
# Get the commit type.
# We only want this hook to take effect on message commit.
commit_type = ARGV[1]
if commit_type != "message"
exit 0
end
# The pattern we are looking
@jeffjrare
jeffjrare / .gitconfig
Created March 28, 2012 14:40
.gitconfig aliases
[color]
ui = true
[apply]
whitespace = nowarn
[alias]
st = status
cam = commit -a -m
ci = commit