Skip to content

Instantly share code, notes, and snippets.

View rigelk's full-sized avatar

Rigel Kent rigelk

View GitHub Profile
@rigelk
rigelk / chrooted.sh
Created May 2, 2018 23:13 — forked from andsens/chrooted.sh
Configure server for chrooted sftp users and create those users
#!/bin/bash
# source this file in /root/.bashrc or /root/.zshrc
# Sets up the server for chrooted users
configure_chrooted() {
grep ^chrooted: /etc/group
if [[ $? == 0 ]]; then
printf "The chrooted group already exists, aborting...\n"
exit 1

MPV, youtube-dl and web browsers

Play YouTube videos (or audio) with 2 clicks?

3_CTHRSQ.png

Video

cp /usr/share/applications/mpv.desktop ~/.local/share/applications/mpvv.desktop

@rigelk
rigelk / PairingLibs.md
Created December 7, 2017 16:23 — forked from artjomb/PairingLibs.md
List of Pairing Libraries

Pairings can be used for all kinds of advanced cryptographic schemes such as Encryption (Identity-based, Attribute-based, Predicate-based, etc.), Signatures, Zero-Knowledge Proofs, etc. It is in no particular order.

Provides multiple types of Elliptic Curve groups with appropriate pairings on top of them. Code repository resides here.

License: LGPL
Language: C
Thesis: On the Implementation of Pairing-Based Cryptography by Ben Lynn (2007)

/*
* am335x_evm.h
*
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
@rigelk
rigelk / harbour.sh
Last active August 29, 2015 14:12 — forked from bkcsoft/docker-build-n-run.sh
un script pour lancer un build docker suivi d’un run de l’image ainsi créée, tous deux pleinement paramétrés.
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $(basename $0) [build-args [-- run-args [-- cmd-args] ] ]"
echo " NOTE: the -rm-flag is hardcoded for build!"
exit 1
fi
BUILD_ARG=()
RUN_ARG=()
@rigelk
rigelk / Makefile
Last active August 29, 2015 14:07 — forked from rbonvall/Makefile
TEXFILES = $(wildcard *.tex)
PDFFILES = $(TEXFILES:.tex=.pdf)
all: pdf
pdf: $(PDFFILES)
%.pdf: %.tex
@rubber --pdf $<
clean: