Skip to content

Instantly share code, notes, and snippets.

@cryptix
cryptix / otrfingerprint.txt.asc
Created September 28, 2015 14:23
jabber id and otr fingerprint signed with my gpg key (also on keybase)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
on 28.09.2015, I switched to a new jabber server because of the ongoing attacks n the main CCC one.
cryptix@ffnord.net
otr fingerprint: 4D9CBEFB 1886C2A5 D8D71BC9 74A111F7 2B08F36F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
@cryptix
cryptix / hybrid.sh
Created July 3, 2011 21:57
sending stuff from company to device with hybrid crypto and signing
#!/usr/bin/env bash
cPriv=Company.private.pem # lives at Company HQ
cPub=Company.public.pem # live inside the device
dPriv=Device.private.pem # lives inside the device
dPub=Device.public.pem # lives at Company HQ
function encANDsend {
blob=$1
@cryptix
cryptix / 4chanDD.js
Created May 23, 2011 16:00
4chan dumper node.js style
var fs = require('fs'),
util = require('util'),
path = require('path'),
http=require('http'),
url=require('url'),
jsdom = require('jsdom');
var boardUrl=process.argv.length>2 ? process.argv[2] : 'http://boards.4chan.org/w/res/1230239',
threadNum = path.basename(boardUrl);
//console.dir(u);
@cryptix
cryptix / gist:a7af083a8fb884184f07
Created July 30, 2015 07:21
git shortlog go1.5beta2..go1.5beta3
Adam Langley (1):
crypto/elliptic: call IsOnCurve via the interface.
Alan Donovan (2):
bytes: document that Buffer values must not be copied
Revert "bytes: document that Buffer values must not be copied"
Alex Brainman (2):
runtime: skip TestReturnAfterStackGrowInCallback if gcc is not found
syscall: warn not to use FormatMessage
@cryptix
cryptix / main.go
Created January 8, 2015 19:11
example usage of msgbox
package main
import (
"flag"
"github.com/andlabs/ui"
"github.com/cryptix/go/msgbox"
)
var (
@cryptix
cryptix / main.go
Last active August 29, 2015 14:10
watching openvpn announcment forum for changes and open the URL in your browser once there is a new post
package main
import (
"os"
"strconv"
"time"
"github.com/PuerkitoBio/goquery"
"github.com/cryptix/go/logging"
"github.com/pkg/browser"
@cryptix
cryptix / main.go
Created August 18, 2014 22:11
subprocess as a connection
package main
import (
"bufio"
"flag"
"fmt"
"io"
"log"
"os"
"path/filepath"
@cryptix
cryptix / runner.go
Created August 13, 2014 13:31
runnableSim
package main
import (
"bufio"
"fmt"
"log"
"os"
"runtime"
)
@cryptix
cryptix / new.go
Last active August 29, 2015 14:04
Java>Go PSHDL Simulator
package SimpleAlu
type regUpdate struct {
internal, offset int
}
type SimpleAluGenerator struct {
varIdx map[string]int
regUpdates []regUpdate
@cryptix
cryptix / client.go
Created July 30, 2014 11:45
sharing filedescriptors through unix sockets
package main
import (
"math/rand"
"net"
"github.com/cryptix/goremutake"
"github.com/ftrvxmtrx/fd"
)