Skip to content

Instantly share code, notes, and snippets.

@kayahr
kayahr / GPLv3.md
Created June 7, 2012 08:38
GNU General Public License v3 in markdown format

GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

@kayahr
kayahr / LGPLv3.md
Last active December 16, 2015 04:38
GNU Lesser General Public License v3 in markdown format

GNU LESSER GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

@kayahr
kayahr / java.nsi
Created January 21, 2012 16:38
Nullsoft Installer Script for Java applications
!include "MUI.nsh"
!define NAME "MyApp"
!define JAR "myapp.jar"
!define VERSION "1.0.0-SNAPSHOT"
!define PUBLISHER "Its Me"
!define WEBSITE "http://my.home/"
!define JRE_VERSION "1.6"
!define JRE_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=58134"
@kayahr
kayahr / ttc2ttf.py
Created April 24, 2012 13:33
Python script to convert a true type font collection into separate ttf files. Copy from http://pastebin.com/QXcAtP24
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer”
#I thought porting it to Python could be both a challenge and useful
from sys import argv, exit, getsizeof
from struct import pack_into, unpack_from
def ceil4(n):