Skip to content

Instantly share code, notes, and snippets.

View tabacco's full-sized avatar

Doug Tabacco tabacco

View GitHub Profile
@tabacco
tabacco / keybase.md
Created February 5, 2016 05:43
keybase.md

Keybase proof

I hereby claim:

  • I am tabacco on github.
  • I am tabacco (https://keybase.io/tabacco) on keybase.
  • I have a public key whose fingerprint is 555E 0451 5061 F452 84F6 9568 BCE7 A971 FD2E CF20

To claim this, I am signing this object:

@tabacco
tabacco / minify-modtime.patch
Created April 25, 2013 18:30
Makes W3 Total Cache include each minified file's modtime in the filename, so that changes to css/js cause a new URL to be generated, allowing origin-pull CDN setups to work properly without manual invalidation.
--- a/w3-total-cache/lib/W3/Minify.php
+++ b/w3-total-cache/lib/W3/Minify.php
@@ -956,9 +956,10 @@ class W3_Minify {
$replace = $this->_minify_path_replacements();
$replaced = false;
foreach ($optimized as $file) {
+ $mtime = filemtime(w3_get_document_root() . '/' . $file . '.' . $type);
foreach($replace as $key => $path) {
if (strpos($file, $path) === 0) {
- $input[] = str_replace($path, $key, $file);
java.lang.StackOverflowError
at net.minecraft.server.ChunkPosition.equals(SourceFile:13)
at java.util.HashMap.get(HashMap.java:322)
at net.minecraft.server.Chunk.d(Chunk.java:404)
at net.minecraft.server.World.getTileEntity(World.java:1523)
at net.minecraft.server.BlockPistonMoving.b(SourceFile:153)
at net.minecraft.server.BlockPistonMoving.e(SourceFile:94)
at net.minecraft.server.BlockPistonMoving.a(SourceFile:136)
at net.minecraft.server.BlockPistonMoving.e(SourceFile:104)
at net.minecraft.server.BlockPistonMoving.a(SourceFile:136)
@tabacco
tabacco / gist:956506
Created May 5, 2011 03:52
Westcoaster feed tag
<link rel="alternate" type="application/atom+xml" title="Westcoaster News" href="http://www.westcoaster.net/community/feed.php?f=38" />