Skip to content

Instantly share code, notes, and snippets.

View wxmac 10.9.2 homebrew issues
INSTALL
tom@Thomass-MacBook-Pro ~ $ HOMEBREW_MAKE_JOBS=1 brew install -v wxmac 2>&1
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/wxmac-3.0.0.mavericks.bottle.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/wxmac-3.0.0.mavericks.bottle.1.tar.gz
==> Verifying wxmac-3.0.0.mavericks.bottle.1.tar.gz checksum
==> Pouring wxmac-3.0.0.mavericks.bottle.1.tar.gz
tar xf /Library/Caches/Homebrew/wxmac-3.0.0.mavericks.bottle.1.tar.gz
==> Finishing up
ln -s ../Cellar/wxmac/3.0.0/bin/wxrc-3.0 wxrc-3.0
@tclancy
tclancy / kace.php
Created May 16, 2014
Deobfuscated Wordpress hacking script (kace.php)
View kace.php
<?php
$ {
"GLOBALS"
}
["urgtxxu"]="password";
$ {
"GLOBALS"
}
["tmwmkkbdjy"]="data";
$ {
@tclancy
tclancy / Nginx Performance Logging Hack
Created May 29, 2014
Nginx configuration to log datetime, bytes sent and total request time for cowboy performance monitoring on local server. Also ignores a bunch of static file types to keep the logs clean.
View Nginx Performance Logging Hack
map $request $loggable {
~*\.css|\.js|\.png|\.woff 0;
default 1;
}
log_format slim '[$time_local] - $body_bytes_sent - $request_time - "$request" $status';
include bcore/local-nginx-default;
include mime.types;
default_type application/octet-stream;
access_log /path/to/access.log slim if=$loggable;
View keybase.md

Keybase proof

I hereby claim:

  • I am tclancy on github.
  • I am tclancy (https://keybase.io/tclancy) on keybase.
  • I have a public key whose fingerprint is 50FE 784B 7C24 7C5E 1749 A7E7 7C36 C1A4 7C96 4142

To claim this, I am signing this object:

@tclancy
tclancy / jmeter.bat
Created Sep 10, 2014
Working jmeter.bat file for Windows that works regardless of where it's called from and doesn't throw an 'execution error: "Files was unexpected at this time."' due to the space in "Program Files"
View jmeter.bat
@echo off
setlocal EnableDelayedExpansion
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements. See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem the License. You may obtain a copy of the License at
rem
@tclancy
tclancy / utils.py
Created Dec 12, 2014
helper function to create Django choices
View utils.py
def doubles(iterable):
"""Helper function that return a decoupled iterator"""
return zip(iterable, iterable)
@tclancy
tclancy / test_utilities.py
Created Mar 26, 2015
Mongoengine Test Case Parent for Django
View test_utilities.py
from mongoengine.connection import connect, disconnect
from django.test import TestCase
from django.conf import settings
class MongoTestCase(TestCase):
"""
TestCase class that clear the collection between the tests
"""
View Solr Traceback.xml
<response>
<lst name="responseHeader">
<int name="status">500</int>
<int name="QTime">10</int>
</lst>
<lst name="error">
<str name="msg">Exception writing document id student.student.5x to the index; possible analysis error.</str>
<str name="trace">org.apache.solr.common.SolrException: Exception writing document id student.student.5x to the index;
possible analysis error. at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:164)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.jav a:69)
@tclancy
tclancy / text-enhance-death.js
Created Oct 9, 2012
Kill Text-Enhance Links on a Page (requires jQuery)
View text-enhance-death.js
function killTextEnhance()
{
$("a[title]").each(function (i, element) {
if (element.title.toLowerCase().indexOf("text-enhance") > -1)
{
$(this).contents().unwrap();
}
});
}
@tclancy
tclancy / Firefox Font Adjustment
Created Dec 21, 2012
How to try to bring Firefox inline when using custom fonts.
View Firefox Font Adjustment
body {
font: normal 75% Xyz, Arial, Helvetica, sans-serif;
}
@-moz-document url-prefix() {
body {
font: 70% Xyz, Arial, Helvetica, sans-serif;
}
}