Skip to content

Instantly share code, notes, and snippets.

"use strict";
// Script by Valentino Giudice.
// Public domain under the Unlicense: https://unlicense.org/
// Source of click identifiers list: https://github.com/mpchadwick/tracking-query-params-registry
// Public domain under the Unlicense: https://unlicense.org/
const blacklist = [
"fbclid",
@Aspie96
Aspie96 / On unethical licensing.md
Last active July 12, 2020 00:00
Unethical VCR

On unethical licensing

This post was originally posted in GitHub/@vrc/vrc#792#issuecomment-657129783.

Because GitHub/@krainboltgreene decided to flag it as out of topic, I figured it's better to publish it somewhere else, in the hope that it can be useful to others.

Because of this issue, even though it was corrected (but krainboltgreene still won't admit there was ever a problem), I discurage anybody from ever using VRC as there might be other problems, given the absolutely lack of understanding shown by those who changed the license.

My comment

@Aspie96
Aspie96 / rsa.py
Created May 12, 2018 15:33
RSA Python implementation
# RSA Algorithm from Valentino Giudice
# This is just a toy exmaple. It's not ment for security purposes.
from random import randint
def mcd(a, b):
if a < b:
a, b = b, a
x1 = 0
x2 = 1
@Aspie96
Aspie96 / dh.py
Created May 12, 2018 15:31
Diffie–Hellman key exchange
# Diffie-Hellman key exchange by Valentino Giudice
# This is just a toy exmaple. It's not ment for security purposes.
from random import randint
def get_prime(bits):
def miller_rabin(m, a):
d = 1
for j in range(bits - 1, -1, -1):
x = d
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef int (*Comparer)(void*, void*);
typedef int (*Generator)(void*);
int test1(Comparer comparer, void *obj1, void *obj2) {
int res1, res2;
/*
Copyright (c) 2017 Valentino Giudice
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: