Skip to content

Instantly share code, notes, and snippets.

View rigelk's full-sized avatar

Rigel Kent rigelk

View GitHub Profile
@rigelk
rigelk / design-pr-template.md
Last active February 21, 2018 03:30
A template for design PRs

A few sentences describing the overall goals of the pull request’s commits.

Design Changes

Related Items

List related task, documentation, pull requests, etc.

Steps to Test or Reproduce

@rigelk
rigelk / peertube.conf
Last active April 30, 2024 13:40
a now OUTDATED httpd/Apache vhost to run PeerTube | note that only Nginx is supported by the PeerTube team, and with this or any other Apache configuration, you will likely get NO SUPPORT.
# requires WebSocket support with `a2enmod proxy_wstunnel`
# check https://ssl-config.mozilla.org/#server=apache&version=2.4.41&config=modern&openssl=1.1.1d&hsts=false&ocsp=false&guideline=5.6 for hardening security
<VirtualHost *:80 [::]:80>
ServerName peertube.example.com
ServerAdmin webmaster@example.com
Protocols h2c http/1.1
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/

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)

@rigelk
rigelk / foo.py
Last active May 8, 2017 17:27
websocket client with events for an 2.7 only python experiment
from ws4py.client.geventclient import WebSocketClient
from event_dispatching import EventEmitter
from app.setup_event_loop import start_event_loop
from app.setup_app_logging import setup_logging
from gevent.event import Event
import gevent
import signal
import copy
import sys
From 7de920fa11c2d2d9667968bd3478eaefd563741f Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rault <par@rigelk.eu>
Date: Fri, 13 Jan 2017 17:01:49 +0100
Subject: [PATCH] improved doc/HelpfulTools.md on profiling Tor
---
doc/HACKING/HelpfulTools.md | 55 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/doc/HACKING/HelpfulTools.md b/doc/HACKING/HelpfulTools.md
@rigelk
rigelk / Traffic classification of a .pcap Wireshark capture-Compact.ipynb
Last active September 20, 2022 16:27
Traffic classification of a .pcap Wireshark capture, with Grid Search over Decision Trees
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rigelk
rigelk / openpgp.txt
Created November 30, 2016 07:42
Identité reliée à OpenKeychain
Ce gist confirme l'identité reliée se trouvant dans ma clef OpenPGP et le relie à ce compte GitHub.
Jeton pour preuve :
[Verifying my OpenPGP key: openpgp4fpr:f9dc49a68fa2565658978569274ea0188a629f1f]
From 4fe24706d0ce63bf9713243567ab400fc1a13f10 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rault <par@rigelk.eu>
Date: Mon, 28 Nov 2016 01:28:26 +0100
Subject: [PATCH] fixes #41 deprecated readdir_r
* src/hakactl/console.c (initialize_console): readdir_r is removed in favor of POSIX.1-2008-compliant readdir, mainly to support glibc >= glibc-2.24 (released Aug 5, 2016).
---
src/hakactl/console.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
From 28ca8cd283095614d65ab9acfc1afe57c1965e57 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rault <par@rigelk.eu>
Date: Mon, 28 Nov 2016 01:28:26 +0100
Subject: [PATCH] fixes #41 deprecated readdir_r
* src/hakactl/console.c (initialize_console): readdir_r is removed in favor of POSIX.1-2008-compliant readdir, mainly to support glibc >= glibc-2.24 (released Aug 5, 2016).
---
src/hakactl/console.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)