Skip to content

Instantly share code, notes, and snippets.

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

Oleg Shparber trollixx

🚎
Trolling...
View GitHub Profile
@mnafees
mnafees / FontAwesomeUtilityGenerator.cpp
Last active May 16, 2019 18:07
Font Awesome for Qt apps
// Qt
#include <QCoreApplication>
#include <QStringList>
#include <QFile>
#include <QHash>
#include <QTextStream>
#include <QtDebug>
int main( int argc, char *argv[] )
{
@nwpappas
nwpappas / angularScrollSpy.js
Created February 24, 2014 19:07
An AngularJS directive implementation of Twitter Bootstrap's ScrollSpy, ported and updated from https://gist.github.com/alxhill/6886760.
app.directive('scrollSpy', function ($window) {
return {
restrict: 'A',
controller: function ($scope) {
$scope.spies = [];
this.addSpy = function (spyObj) {
$scope.spies.push(spyObj);
};
},
link: function (scope, elem, attrs) {
@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: