Skip to content

Instantly share code, notes, and snippets.

@schierlm
schierlm / NOTICE.md
Last active August 29, 2015 14:12
bootsect.sh --- create bootsector for bootable USB for Windows 7 install/recovery from Linux

Notice:

As of ms-sys 2.4.1, it can create suitable FAT32 PE boot records with the -e option, which makes this script obsolete.

For older versions of ms-sys, the script can of course still be used.

@schierlm
schierlm / keybase.md
Last active August 29, 2015 14:15
keybase.md

Keybase proof

I hereby claim:

  • I am schierlm on github.
  • I am mihi (https://keybase.io/mihi) on keybase.
  • I have a public key whose fingerprint is 9776 9E80 B1A9 1F3C F05E 5D95 5347 C3C0 A194 E9AD

To claim this, I am signing this object:

package utils;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@schierlm
schierlm / Main.java
Created March 31, 2016 18:55
Short sample using geotools for Java to determine timezone of Busingen (using http://efele.net/maps/tz/world/)
package tzshapeparser;
import java.io.*;
import java.util.*;
import org.geotools.data.*;
import org.geotools.data.simple.SimpleFeatureSource;
import org.geotools.feature.*;
import org.geotools.geometry.jts.*;
import org.opengis.feature.simple.*;
@schierlm
schierlm / README.md
Last active January 14, 2017 20:23
Musipedia MIDI search for Chrome (using Web MIDI API)
@schierlm
schierlm / 0-README.md
Last active March 3, 2018 18:18
Liturgischer Kalender - Heatmap
@schierlm
schierlm / 1.java
Created May 2, 2018 18:28
Name Generator
random("Steigenberger ", "Novotel ", "Hilton ", "Best Western ", "Accor ", "Maritim ", "Wyndham ", "Marriott ", "") +
"Hotel " +
random("zum ", "am ", "vom ", "im ", "beim ", "unterm "; "überm ") +
random("goldenen ", "silbernen ", "schnellen ", "flinken ", "schlauen ", "listigen ", "brüllenden ", "röhrenden ", "großen ", "feurigen ") +
random("Löwen", "Hirsch", "Eber", "Widder", "Fuchs", "Tiger", "Stier", "Bullen", "Hahn", "Erpel");
@schierlm
schierlm / IOTA-Dice.md
Created August 26, 2017 17:41
Generating a IOTA seed using a dice

Generating a IOTA seed using a dice

If you do not trust seed generators and do not believe your random keyboard smashing is random enough, you can use a dice to generate a random, perfectly distributed IOTA seed.

Just follow the instructions below and write down the seed while you are throwing your dice.

Note that this can be tedious, as between 162 and 243 dice rolls are required to generate the whole seed.

@schierlm
schierlm / README.md
Last active July 27, 2018 08:24
VBoxGopHack - custom EFI GOP modes for VirtualBox

PLEASE DO NOT USE THIS ANY MORE. VirtualBox 5.2 supports custom EFI resolutions out of the box.

@schierlm
schierlm / pom.xml
Created December 21, 2017 12:35
Maven freezes (infinite-loop) when building fat jar from BouncyCastle
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>bug</groupId>
<artifactId>bug</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.58</version>