This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use Vim settings, rather than Vi Settings | |
set nocompatible | |
"************************************************ | |
"" Vim-Plug | |
"************************************************ | |
let nvimplug_exists=expand('~/.config/nvim/autoload/plug.vim') | |
if !filereadable(nvimplug_exists) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Audiobookbay nologin magnetlink | |
// @namespace //*.audiobookbay.*/* | |
// @match http://audiobookbay.nl/* | |
// @version 0.1 | |
// @require //ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== | |
//Avoid conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad.Except | |
import Control.Monad.Identity | |
data MyError = InvalidNumber deriving Show | |
data MySuccess = CorrectNumber | NotACorrectNumber deriving Show | |
runMyMonad = runIdentity . runExceptT | |
type MyMonad = ExceptT MyError Identity MySuccess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl --extract-audio --audio-format mp3 -o '%(title)s.%(ext)s' <URL> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Key | |
openssl genrsa -out <domain-name>.key 2048 | |
# Cert | |
openssl req -new -x509 -key <domain-name>.key -out <domain-name>.cert -days 3650 -subj /CN=<domain-name> | |
# https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WebServer/examples/HelloServerBearSSL/HelloServerBearSSL.ino |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, abstractmethod | |
class Applicative(ABC): | |
@abstractmethod | |
def fmap(self, f): | |
raise Exception('Not implemented!') | |
class Functor(ABC): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
class Maybe | |
data Just(n) from Maybe | |
data Nothing() from Maybe | |
@addpattern(fmap) | |
def fmap(f, Nothing()) = Nothing() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Papers | |
## BulletProof Original Paper | |
https://eprint.iacr.org/2017/1066.pdf | |
# Things Intentionally Left Out | |
## Fiat Shamir | |
https://en.wikipedia.org/wiki/Feige%E2%80%93Fiat%E2%80%93Shamir_identification_scheme | |
http://cryptowiki.net/index.php?title=Fiat_-_Shamir_protocol | |
## Pederson Commitments | |
https://crypto.stackexchange.com/questions/9704/why-is-the-pedersen-commitment-computationally-binding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -a NODE_GLOBALS=(`find ~/.nvm/versions/node -maxdepth 3 -type l -wholename '*/bin/*' | xargs -n1 basename | sort | uniq`) | |
NODE_GLOBALS+=("node") | |
NODE_GLOBALS+=("nvm") | |
load_nvm () { | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
} |