Skip to content

Instantly share code, notes, and snippets.

Frank Denis jedisct1

Block or report user

Report or block jedisct1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cmake.diff
--- Findsodium.cmake 2019-07-23 22:22:23.000000000 +0200
+++ zok.cmake 2019-07-23 22:22:17.000000000 +0200
@@ -18,7 +18,6 @@
# Once done the following variables will be defined:
#
# sodium_FOUND sodium_INCLUDE_DIR sodium_LIBRARY_DEBUG sodium_LIBRARY_RELEASE
-# sodium_VERSION_STRING
#
# Furthermore an imported "sodium" target is created.
#
@jedisct1
jedisct1 / centos5-docker-dnscrypt-server.sh
Last active Jun 29, 2019
dnscrypt server installation on CentOS 5 (Vultr)
View centos5-docker-dnscrypt-server.sh
#!/bin/sh
yum -y update
# Replace with SERVER="your host name" for a custom host name
SERVER="$(hostname)"
export SERVER
SERVER_IP="$(ip route get 1 | awk '{print $NF;exit}')"
export SERVER_IP
echo "$SERVER"
@jedisct1
jedisct1 / iptables
Created Jun 29, 2019
dnscrypt-proxy iptables firewall rules
View iptables
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -p udp --dport 443 -j ACCEPT
-A INPUT -p tcp --dport 443 -j ACCEPT
-A INPUT -s 127.0.0.1 -j ACCEPT
View a
___chkstk_darwin
___chkstk_darwin_probe
_argon2_ctx
_argon2_decode_string
_argon2_encode_string
_argon2_fill_memory_blocks
_argon2_fill_segment_avx2
_argon2_fill_segment_avx512f
_argon2_fill_segment_ref
_argon2_fill_segment_ssse3
View a
_PBKDF2_SHA256
_alloc_region
_argon2_ctx
_argon2_hash
_argon2_pick_best_implementation
_argon2_verify
_argon2i_hash_encoded
_argon2i_hash_raw
_argon2i_verify
_argon2id_hash_encoded
View a
_PBKDF2_SHA256
___chkstk_darwin
___chkstk_darwin_probe
_alloc_region
_argon2_ctx
_argon2_hash
_argon2_pick_best_implementation
_argon2_verify
_argon2i_hash_encoded
_argon2i_hash_raw
View foo.c
#define _GNU_SOURCE
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
static void
handler(int sig)
{
@jedisct1
jedisct1 / dnscrypt-public-resolvers.json
Last active Apr 17, 2019
dnscrypt-proxy -list-all -json
View dnscrypt-public-resolvers.json
[
{
"name": "aaflalo-me-gcp",
"proto": "DoH",
"ipv6": false,
"addrs": [
"dns-gcp.aaflalo.me",
"35.231.69.77"
],
"ports": [
@jedisct1
jedisct1 / lucet-ondemand.md
Last active Aug 4, 2019
Run WebAssembly files like standard executable files on Linux, using Lucet
View lucet-ondemand.md

The following instructions require Lucet, although they can be easily adapted to other WebAssembly runtimes.

Save the following script as /opt/lucet/bin/lucet-ondemand:

#! /bin/sh

wasm_file="$1"
if [ -n "$wasm_file" ]; then
  if od -x "$wasm_file" | head -n1 | grep -Fq '0000000 6100 6d73 0001'; then
@jedisct1
jedisct1 / docker-cleanup-resources.md
Created Mar 28, 2019 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
You can’t perform that action at this time.