Skip to content

Instantly share code, notes, and snippets.

View menangen's full-sized avatar
🏠
Working from home

Andru Menangen menangen

🏠
Working from home
  • Russia
View GitHub Profile
@ianoxley
ianoxley / base58.py
Created March 11, 2011 14:00
base58 encoding in Python
""" base58 encoding / decoding functions """
import unittest
alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'
base_count = len(alphabet)
def encode(num):
""" Returns num in a base58-encoded string """
encode = ''
@richieforeman
richieforeman / makeauthority.sh
Created July 23, 2012 21:38
Issue Your Own Self-Signed S/MIME Certs with OpenSSL
# Run this once
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@Jxck
Jxck / README.md
Created December 16, 2012 09:16
libuv TCP server/client sample

how to compile

$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices server.c -o server
$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices client.c -o client
@bodokaiser
bodokaiser / libuv_tcp_echo_server.c
Last active May 30, 2021 10:10
Simple TCP echo server implemented with libuv.
#include <uv.h>
#include <stdio.h>
#include <stdlib.h>
/**
* Our tcp server object.
*/
uv_tcp_t server;
/**
@diego898
diego898 / rd.md
Last active October 13, 2020 21:18
Enable Concurrent Remote Desktop Users in Windows 8.1 x64

thanks to @neurodyne and this link for updated instructions

This works with the following versions of termsrv.dll

x64 - termsrv.dll - 6.3.9600.17095

Find Replace
39813C0600000F849E310500 B80001000089813806000090
090085C07F078BD8 090085C090908BD8
@marcuslilja
marcuslilja / clean-osx-install.md
Last active April 20, 2026 21:44
Clean Install – macOS Mojave (10.14)

macOS Tahoe (26)

Clean install from latest install.

Applications

A simple list of regular applications and plugins.

Regular downloads

@GigsD4X
GigsD4X / HSVtoRGB.lua
Created January 20, 2014 02:31
Returns the RGB equivalent of the given HSV data, or vice-versa. Adapted from http://www.cs.rit.edu/~ncs/color/t_convert.html
function HSVToRGB( hue, saturation, value )
-- Returns the RGB equivalent of the given HSV-defined color
-- (adapted from some code found around the web)
-- If it's achromatic, just return the value
if saturation == 0 then
return value;
end;
-- Get the hue sector
@bg5sbk
bg5sbk / tcp_bench.go
Last active November 22, 2023 18:31
tcp benchmark for echo servers
package main
import (
"flag"
"fmt"
"log"
"net"
"sync"
"sync/atomic"
"time"
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active May 5, 2026 12:05
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);