Skip to content

Instantly share code, notes, and snippets.

View arinal's full-sized avatar

Dicky Arinal arinal

  • Disney+
  • Greater Manchester Area
View GitHub Profile
@arinal
arinal / LightID.java
Last active September 3, 2023 16:56
Super lightweight ID generator
import java.security.SecureRandom;
@Deprecated
public class LightID implements Cloneable {
private static SecureRandom Random = new SecureRandom();
private long id;
public LightID() {
id = Random.nextLong();
@arinal
arinal / gentags.sh
Created July 22, 2015 18:23
Generating TAGS file.
gcc -M $* | sed -e 's/[\\ ]/\n/g' | sed -e '/^$/d' -e '/\.o:[ \t]*$/d' | xargs etags -a