Skip to content

Instantly share code, notes, and snippets.

View Quintus's full-sized avatar

Marvin Gülker Quintus

View GitHub Profile
@Quintus
Quintus / PKGBUILD
Created October 10, 2015 12:05
Build files for SILLY on MSYS2
# Maintainer: Your Name <youremail@domain.com>
#
# SILLY PKGBUILD based on the PKGBUILD in the ArchLinux repositories.
_realname=SILLY
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=0.1.0
pkgrel=6
pkgdesc="Simple Image Loading LibrarY, a part of the CEGUI project"
arch=('any')
@Quintus
Quintus / PKGBUILD
Created October 10, 2015 08:27
MSYS2 PKGBUILD for CEGUI
# Maintainer: Your Name <youremail@domain.com>
_realname=CEGUI
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=0.7.9
pkgrel=1
epoch=
pkgdesc="Crazy Eddies GUI library"
arch=("any")
url="http://www.cegui.org.uk"
license=('MIT')
@Quintus
Quintus / PKGBUILD
Created October 10, 2015 08:17
MSYS2 PKGBUILD for SDL_mixer (SDL1, not SDL2)
# Maintainer: Your Name <youremail@domain.com>
_realname=SDL_mixer
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=1.2.12
pkgrel=1
epoch=
pkgdesc="A simple multi-channel audio mixer"
arch=("any")
url="http://www.libsdl.org/SDL_mixer/release-1.2.html"
license=('MIT')
@Quintus
Quintus / lmtp.rb
Last active August 29, 2015 14:21
A mini LMTP server for testing purposes.
# -*- coding: utf-8 -*-
#
# Super-simple LMTP server.
#
# Copyright © 2015 Marvin Gülker
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@Quintus
Quintus / openjur2tex.rb
Created April 24, 2015 20:01
Schnell gehacktes Skript zur Konvertierung von openJUR-JSON-Dokumenten in ein für LuaLaTeX verständliches, ZWEISPALTIGES TeX-Dokument.
# coding: utf-8
require "json"
require "optionparser"
require "open-uri"
VERSION = "0.0.1"
ESCAPES = {
/&/ => "\\textampersand{}",
/%/ => "\\textpercent{}",
General:
* NEVER use make’s -j option. It will crash (especially under 32-bit
Windows) without any meaningful error messages. This is a known bug
in MinGW’s MSYS-make (without any solution in sight).
* "~" is your MSYS home directory, usually C:\MinGW\msys\1.0\home\yourname.
---
Main MinGW installation:
@Quintus
Quintus / ruby-class-mixin-graph.rb
Last active August 29, 2015 14:01
Ruby Class + Mixin graph
# -*- coding: utf-8 -*-
#
# Copyright (c) 2014 Marvin Gülker
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
@Quintus
Quintus / ruby-class-graph.rb
Created May 25, 2014 15:36
Create a Graphviz dot graph from all Ruby classes loaded
tree = {}
ObjectSpace.each_object(Class).each do |klass|
# All the Errno:: classes make the graph extremely large,
# so just collect them under a single name.
if klass.name.start_with?("Errno::")
ary = ["Errno::*"]
else
ary = [klass.name]
end
@Quintus
Quintus / lsldap.rb
Last active August 29, 2015 13:56
Nice tree outputter for LDAP
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require "optparse"
require "base64"
require "pp"
########################################
# Option handling
@Quintus
Quintus / smcbulding.sh
Last active December 30, 2015 14:39
Fully automated build script to crosscompile SMC from Linux to Windows.
#!/bin/bash
########################################
# Main variables
MXE_URL="git://github.com/Quintus/mxe.git"
SMC_URL="git://github.com/Quintus/SMC.git"
MXE_BRANCH="smc-building"
SMC_BRANCH="mruby"