Skip to content

Instantly share code, notes, and snippets.

@iphoting
iphoting / keybase.md
Created October 29, 2014 12:39
keybase.md

Keybase proof

I hereby claim:

  • I am iphoting on github.
  • I am iphoting (https://keybase.io/iphoting) on keybase.
  • I have a public key whose fingerprint is 6A7E AB1E A822 E621 4DEC 11C4 F355 0635 71D7 1151

To claim this, I am signing this object:

@iphoting
iphoting / gist:c5095851b9bb432f9af1
Created March 31, 2015 09:23
Excel: Sequential Serial Numbers Formula
=IFERROR(IF(NOT(AND(ISBLANK(INDIRECT(ADDRESS(ROW(), COLUMN()+1))), ISBLANK(INDIRECT(ADDRESS(ROW(), COLUMN()+2))))),INDIRECT(ADDRESS(ROW()-1, COLUMN()))+1,""),1)
@iphoting
iphoting / Gemfile
Last active October 3, 2015 09:58
Octopress config.ru
source "http://rubygems.org"
group :development do
gem 'rake'
gem 'rack'
gem 'jekyll'
gem 'rdiscount'
gem 'pygments.rb'
gem 'RedCloth'
gem 'haml', '>= 3.1'
@iphoting
iphoting / gitweb.conf
Created April 30, 2012 09:13
Gitolite v3 Tweaks
use lib "/home/gitolite/.gitolite-dist/src/lib";
use Gitolite::Easy;
# HOME of the gitolite user
my $gl_home = $ENV{HOME} = "/home/gitolite";
my $gl_hosting_user = "gitolite";
my $gl_host = $cgi->server_name || "localhost";
# Your server hostname and port (if not 80 for http or 443 for https).
# Replace http for https if necessary.
@iphoting
iphoting / .autobench.conf
Created May 9, 2012 09:10
Autobench Config
# Autobench Configuration File
# host1, host2
# The hostnames of the servers under test
# Eg. host1 = iis.test.com
# host2 = apache.test.com
host1 = testhost1
host2 = testhost2
@iphoting
iphoting / build-php.sh
Created May 10, 2012 04:06
Precompile Heroku PHP Binaries
#!/bin/bash
# use AMI ami-04c9306d
# run this script as root.
## EDIT
export S3_BUCKET="heroku-buildpack-php-tyler"
export LIBMCRYPT_VERSION="2.5.8"
export PHP_VERSION="5.4.1"
export APC_VERSION="3.1.10"
export PHPREDIS_VERSION="2.2.1"
@iphoting
iphoting / get-input-encoder.php
Created May 18, 2012 07:43
RESTful PHP Mail Interface
#!/usr/bin/env php
<?php
$ss = 'changeit';
$rand = mt_rand();
$input = array(
"shared" => sha1($ss . $rand),
"salt" => $rand,
"to" => 'test@test.com',
"subject" => "This is a test subject.",
@iphoting
iphoting / newrelic-license.sh
Last active October 5, 2015 06:58
New Relic licensing Script
#!/usr/bin/env bash
if [ -f /app/local/NEWRELIC_VERSION ]; then
sed -i "s|REPLACE_WITH_REAL_KEY|${NEW_RELIC_LICENSE_KEY}|g" /app/vendor/php/etc.d/*newrelic*.ini
else
sed -i "s|REPLACE_WITH_REAL_KEY|${NEW_RELIC_LICENSE_KEY}|g" /app/local/etc/newrelic.cfg
fi
@iphoting
iphoting / zzz_pow.conf
Created June 12, 2012 16:05 — forked from soupmatt/zzz_pow.conf
Apache reverse proxy config for pow
<VirtualHost *:80>
ServerName pow
ServerAlias *.dev *.xip.io
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
@iphoting
iphoting / chef-server.json
Created July 20, 2012 09:08
Chef-Server Bootstrap JSON
{
"chef_server": {
"server_url": "http://chef-server:4000",
"webui_enabled": true,
"init_style": "init"
},
"run_list": [ "recipe[chef-server::rubygems-install]" ]
}