Skip to content

Instantly share code, notes, and snippets.

View terefang's full-sized avatar

Alfred Reibenschuh terefang

View GitHub Profile
@terefang
terefang / GiliamDeCarpentierUtils.java
Last active March 8, 2024 12:47
GiliamDeCarpentierUtils.java
package com.github.terefang.randy.noise;
// Copyright (c) 2011, Giliam de Carpentier. All rights reserved.
// See http://www.decarpentier.nl/scape-procedural-basics/ for more info
//
// This file is licensed under the FreeBSD license:
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
@terefang
terefang / busybox-1.34.1-non-pam.config
Created January 3, 2022 14:22
busybox-1.34.1-non-pam.config
# Fri Nov 5 10:17:44 2021
# -- terefang
# -- busybox-1.34.1-non-pam.config
#
CONFIG_HAVE_DOT_CONFIG=y
#
# Settings
#
CONFIG_DESKTOP=y
package netty4.example;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.AbstractByteBuf;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
@terefang
terefang / pw_strength_check.js
Created August 5, 2021 11:39
javascript strength pw check
/* pw strong > 3096 */
function check_password_safety(_pwtocheck)
{
var _bits = 0;
var _len = _pwtocheck.length;
for(var _i=0; _i<_pwtocheck.length; _i++)
{
https://github.com/terefang/shellutils/blob/master/CERTIFICATE_HOWTO.md
Windows: ftp://ftp.gnutls.org/gcrypt/gnutls/w32
csr.tmpl
-----
# X.509 Certificate options
# The common name of the certificate owner.
#C = <two-letter-country-code>
country = <two-letter-country-code>
/**
* Noise function from Ken Perlin. Additional routines are provided to emulate
* standard Renderman calls. This code was adapted mainly from the mrclasses
* package by Gonzalo Garramuno (http://sourceforge.net/projects/mrclasses/).
*
* @link http://mrl.nyu.edu/~perlin/noise/
*/
public final class PerlinScalar {
private static final double[] G1 = { -1, 1 };
@terefang
terefang / anydice-roll-2dx-high-minus-low.txt
Last active November 10, 2020 03:47
anydice roll 2dX H - L
function: rolldigits ROLL:s {
if 1@ROLL < 2@ROLL { result: 2@ROLL - 1@ROLL }
if 1@ROLL >= 2@ROLL { result: 1@ROLL - 2@ROLL }
}
output [rolldigits 2d10]