Skip to content

Instantly share code, notes, and snippets.

/** \mainpage
*
* __NaCl__ (pronounced _salt_) is a new easy-to-use high-speed
* software library for network communication, encryption, decryption,
* signatures, etc. NaCl's goal is to provide all of the core
* operations needed to build higher-level cryptographic tools.
*
* __Sodium__ is a portable, cross-compilable, installable,
* packageable, API-compatible version of NaCl.
*
@jpmens
jpmens / README.md
Last active August 29, 2015 13:57
Changes to mqttws31.js for it to work with Websockify (Python)
./websockify.py -v 18884 127.0.0.1:1883
@jpmens
jpmens / data.py
Created March 8, 2014 15:03
Mac OS X AddressBook data
ablist = {
'00491234567' : 'Jane Jolie',
...
}
@jpmens
jpmens / 180-collisions.txt
Last active August 29, 2015 13:57
hasher test
Collision on 1E7D259842: 9db2ffa3a3def7206a2d6834384b7c1c351a8d17229f5ebee6bfada7d177d262
Collision on 7D8E437D63: 019f3d00422a9ba6dafa0318698e7492d5d7a876cc5b6fa98cb5c4db95ada53d
...
@jpmens
jpmens / keybase.md
Created March 30, 2014 10:46
keybase.md

Keybase proof

I hereby claim:

  • I am jpmens on github.
  • I am jpmens (https://keybase.io/jpmens) on keybase.
  • I have a public key whose fingerprint is A868 79FE 60DB 5F0B B9E7 22FC 8BD0 BB1D B67D C425

To claim this, I am signing this object:

@jpmens
jpmens / README.txt
Created April 1, 2014 22:21
Diablo NNTP configuration for reader+feeder+spool on a single machine.
This configures a Diablo NNTP system to provide feeder+reader+spool on a single machine. I spent hours attempting to do this without luck (I couldn't get articles fed to us to be spooled).
Thanks to Johann Mulder who took the time to create a working configuration for me!
The files here I've tweaked here and there...
Diablo runs on port 120, and that is where the feed must deliver articles to.
Dreaderd runs on 119 and is for clients in lan.
Twitter Emoji images as of 2014-04-02
https://cdn.anonfiles.com/1396471953919.png [/file/4730a850f339a91c809626c6d4f7e108]
© a9 COPYRIGHT SIGN
® ae REGISTERED SIGN
‼ 203c DOUBLE EXCLAMATION MARK
⁉ 2049 EXCLAMATION QUESTION MARK
™ 2122 TRADE MARK SIGN
ℹ 2139 INFORMATION SOURCE
↔ 2194 LEFT RIGHT ARROW
use Irssi;
use POSIX;
use JSON;
use vars qw($IRSSI);
%IRSSI = (
name => "awayforward",
license => "Public Domain",
);
@jpmens
jpmens / WebSockets-MQTT.md
Created April 30, 2014 09:41
Experiments with Websockets and MQTT

MQTT over Websockets

What I would really like is a C program which supports the mqttv3.1 subprotocol out of the box, together with TLS, but I cannot find one.

The following combinations appear to work relatively well (YMMV) with:

  • Safari 6.1.3
  • Chrome 34.0.1847.131
  • FireFox 29
@jpmens
jpmens / question.txt
Created August 21, 2014 06:19
Bash TAB completion of 'executables' in current directory
On my workstation, I can typically do the following in Bash:
$ echo "echo HI" > jp.sh
$ chmod +x jp.sh
$ alias g=./jp<TAB>
and I then use `g' to launch jp.sh
$ g
HI