Skip to content

Instantly share code, notes, and snippets.

View TLoD-Snake's full-sized avatar
💭
Save nature - kill people!

TLoD,Snake TLoD-Snake

💭
Save nature - kill people!
View GitHub Profile
$ eselect fontconfig list
Available fontconfig .conf files (* is enabled):
[1] 10-autohint.conf *
[2] 10-no-sub-pixel.conf
[3] 10-scale-bitmap-fonts.conf
[4] 10-sub-pixel-bgr.conf
[5] 10-sub-pixel-rgb.conf
[6] 10-sub-pixel-vbgr.conf
[7] 10-sub-pixel-vrgb.conf
[8] 10-unhinted.conf
@TLoD-Snake
TLoD-Snake / gist:3bacb17460468f5933e4
Created June 20, 2014 14:39
Uploads size calculator
<script language="JavaScript" type="text/javascript">
$(function(){
var limit = 2 * 1024 * 1024; // bytes
$('form').submit(function () {
var uploadSize = 0;
$('input[type=file]').each(function(){
var file = this.files[0];
if (file) {
uploadSize += file.size || file.fileSize;
}
@TLoD-Snake
TLoD-Snake / gist:b86621b6a8805ecffe1b
Created June 5, 2014 12:36
Gradle tests debugging
test {
// Tests can hang without increasing memory, JDK 1.7 requires option -XX:UseSplitVerifier
jvmArgs("-XX:MaxPermSize=256m", "-XX:-UseSplitVerifier","-Xmx512m", "-Duser.language=en", "-Duser.region=CA", "-Duser.timezone=America/Denver", "-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9009")
}