Skip to content

Instantly share code, notes, and snippets.

@mkuron
mkuron / .gitignore
Last active December 25, 2015 20:49
Monkey-patching MathLM on Mac OS X so it does not crash when clients with 32-character (or longer) hostnames request a Mathematica license
*.o
*.dylib
@mkuron
mkuron / qemu.sh
Created March 23, 2014 15:37
QEMU Debian Netinst
#!/bin/bash
cd $(dirname $0)
arch=powerpc
ram=256
dist=jessie
mirror='http://ftp.de.debian.org/debian'
disk=debian-$dist-$arch.qcow2
@mkuron
mkuron / Makefile
Last active March 21, 2021 21:39
Flash Player Update Script for Mac OS X
install:
cp de.kuron-germany.flash-update.plist /Library/LaunchDaemons/
mkdir -p /usr/local/bin
cp flash_check.sh /usr/local/bin/
launchctl load /Library/LaunchDaemons/de.kuron-germany.flash-update.plist
@mkuron
mkuron / .gitignore
Last active May 23, 2016 08:19
CUDA + MPI
cuda_mpi
@mkuron
mkuron / gist:46c64a35deb41341f3c5
Created January 28, 2015 09:19
Mac App Store .pkg file grabber
#!/bin/bash
appstorefolder=$TMPDIR/../C/com.apple.appstore
while true; do
packages=$(find $appstorefolder -type f -name "*.pkg")
for package in $packages
do
pkgname=$(basename "$package")
if [ -f "$HOME/Downloads/$pkgname" ]; then
continue
fi
@mkuron
mkuron / boost.patch
Last active August 29, 2015 14:20
Porting Boost to the NEC SX-ACE vector computer
diff -Nru -x bin.v2 -x build -x '._*' -x '*.log' -x bin -x project-config.jam boost_1_58_0/boost/chrono/detail/inlined/posix/chrono.hpp boost-sxace/boost/chrono/detail/inlined/posix/chrono.hpp
--- boost_1_58_0/boost/chrono/detail/inlined/posix/chrono.hpp 2015-03-16 19:40:45.000000000 +0100
+++ boost-sxace/boost/chrono/detail/inlined/posix/chrono.hpp 2015-05-12 09:38:50.830684772 +0200
@@ -12,6 +12,18 @@
#include <time.h> // for clock_gettime
+#ifdef _SX
+#include <second.h>
+#define CLOCK_REALTIME 0
@mkuron
mkuron / .gitignore
Last active September 7, 2020 07:14
Migrate JIRA to osTicket
Zend
*.pem
*.pub
@mkuron
mkuron / .gitignore
Created June 16, 2016 15:56
midi module extracted from pygame
*.so