Skip to content

Instantly share code, notes, and snippets.

View trollixx's full-sized avatar
🚎
Trolling...

Oleg Shparber trollixx

🚎
Trolling...
View GitHub Profile
@kovrov
kovrov / Pincho.js
Last active December 22, 2015 14:59
Pincho the pinchinator for flickable.
var scale
var flickable
var target
@unixod
unixod / settings.cpp
Created August 10, 2012 15:59
Settings class with "magic" enums (QSettings wrapper)
#include "settings.h"
#include <QSettings>
#include <QMetaEnum>
#include <QRegExp>
#include <QStringList>
Settings::Settings(){
const QMetaObject &mo = staticMetaObject;
int idx = mo.indexOfEnumerator("Key");
keys = mo.enumerator(idx);
@trustin
trustin / fontfix.patch
Last active November 30, 2015 15:47
OpenJDK 7 font rendering patch for Linux (cd openjdk/jdk; patch -p1 < fontfix.patch)
diff -r 19cc3b567644 make/sun/font/Makefile
--- a/make/sun/font/Makefile Wed Jan 22 12:34:24 2014 -0800
+++ b/make/sun/font/Makefile Fri Jan 24 21:41:23 2014 +0900
@@ -138,7 +138,7 @@
ifeq ($(USING_SYSTEM_FT_LIB), false)
FREETYPE_LIB = $(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX).6
endif
- OTHER_LDLIBS += -L$(FREETYPE_LIB_PATH) -lfreetype
+ OTHER_LDLIBS += -L$(FREETYPE_LIB_PATH) -lfreetype -lfontconfig
endif

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: