Skip to content

Instantly share code, notes, and snippets.

@schierlm
schierlm / SUBSETS.txt
Last active August 31, 2020 19:53
Text document containing all characters of the Multilingual European Subsets of Unicode and some other common Unicode subsets (and a small Java program to verify the file has not been garbled)
Common Unicode Subsets
======================
ASCII
~~~~~
Not exactly known as a Unicode subset; the Unicode character set starts with
ASCII, though; therefore, ASCII is the smallest widely-used subset of
Unicode.
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 / 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:

@schierlm
schierlm / Sword_Versification.md
Created March 8, 2015 15:47
Determine SWORD Versification of a Bible

#Determine SWORD Versification of a Bible, in 3 simple steps (with a maximum of 5 substeps)

(by looking at most at 3 of 5 different books (Tobit, 2 Corinthians, 3 John, Esther, Prayer of Azariah)

[Found by a hillclimbing optimization algorithm; therefore I cannot guarantee that the number of steps are really minimal. But I doubt it matters in practice.]

##Step 1: Look at book Tobit

  • not present: Go to step 2c. [after 1 substep]
  • has 14 chapters: Look at chapter 4.
  • Chapter 4 has 22 Verses: Use Luther [found after 2 substeps]
@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 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 / README.md
Last active January 14, 2017 20:23
Musipedia MIDI search for Chrome (using Web MIDI API)
@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 / 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>