Skip to content

Instantly share code, notes, and snippets.

View dirkkelly's full-sized avatar

Dirk Kelly dirkkelly

View GitHub Profile
@dirkkelly
dirkkelly / squid.conf
Last active August 29, 2015 14:14 — forked from mushfiq/squid.conf
# ----------------------------------------------------------------------
# WARNING - do not edit this template unless you know what you are doing
# ----------------------------------------------------------------------
# the parent cache
# disk and memory cache settings
cache_dir ufs /usr/local/squid/var/cache 500 16 256 #set your cache path with size
@dirkkelly
dirkkelly / config.ru
Last active September 24, 2015 01:34
Rack::Rewrite CSV Redirect Map Parsing For Drupal
use Rack::Rewrite do
CSV.read("redirects.csv", headers: true).each do |row|
# Lol, yes we had redirects of source to destination, yay Drupal!
if row["source"] != row["destination"]
r301 row["source"], row["destination"]
end
end
end

Keybase proof

I hereby claim:

  • I am dirkkelly on github.
  • I am dirkkelly (https://keybase.io/dirkkelly) on keybase.
  • I have a public key ASAsjW05W8vRsHoT90mCuCiiZnSqggBBWIws18UzrhWlawo

To claim this, I am signing this object:

@dirkkelly
dirkkelly / Simcast_Plugin.php
Last active June 24, 2019 17:35
Wordpress Simcast 2.0 API Support
<?php
include_once('Simcast_LifeCycle.php');
class Simcast_Plugin extends Simcast_LifeCycle {
/**
* See: http://plugin.michael-simpson.com/?page_id=31
* @return array of option meta data.
*/