Skip to content

Instantly share code, notes, and snippets.

@juniorz
juniorz / instructions.md
Last active December 3, 2020 14:30
Building tor on WD My Cloud EX2

How to build tor for WD My Cloud EX2

WD My Cloud EX2 has an Marvell Armada-370 CPU (Marvell PJ4Bv7 Processor rev 1 (v7l)) with 512MB RAM.

This device uses 32-bit binaries with 64K page size. WD releases a cross-compilation environment as part of its "WD My Cloud EX2 GPL Source Code". Download it from WD support page (making sure it matches your firmware version) and follow the instructions in My_Cloud_EX2_Release_Notes_GPL_*.txt to setup the environment. I recommend using a Debian OS.

The following packages are required to use the cross-compilation environment: build-essential automake lib32z1

Building dependencies

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
GPG Key Transition
For a number of reasons, I've recently set up a new OpenPGP key, and
will be transitioning away from my old one.
the old key was:
@juniorz
juniorz / README.md
Created October 30, 2015 14:22
Bulding golang for Intel Edison
@juniorz
juniorz / README.md
Last active March 16, 2016 18:23
How to build tor for Intel© Edison

Building tor with Intel© Edison SDK

curl -fsSL https://gist.githubusercontent.com/juniorz/119fb73646771f944fa3/raw/build-tor | /bin/bash

Environment variables:

  • PREFIX - installation prefix. Defaults to /opt/edison
  • EDISON_SDK - path to Edison SDK. Defaults to /opt/poky-edison/1.6
@juniorz
juniorz / dns.go
Last active June 14, 2022 14:50
XMPP SRV dns over Tor
package xmpp
import (
"errors"
"fmt"
"log"
"net"
"net/url"
"github.com/miekg/dns"
@juniorz
juniorz / errors.log
Created October 12, 2015 16:12
Migrating to GTK3
$ go get github.com/agl/go-gtk
# github.com/agl/go-gtk/gdk
../../agl/go-gtk/gdk/gdk.go:91:23: warning: 'gdk_color_parse' is deprecated [-Wdeprecated-declarations]
/usr/local/Cellar/gtk+3/3.18.1/include/gtk-3.0/gdk/deprecated/gdkcolor.h:79:11: note: 'gdk_color_parse' has been explicitly marked deprecated here
../../agl/go-gtk/gdk/gdk.go:105:42: warning: 'gdk_cursor_new' is deprecated [-Wdeprecated-declarations]
/usr/local/Cellar/gtk+3/3.18.1/include/gtk-3.0/gdk/gdkcursor.h:228:12: note: 'gdk_cursor_new' has been explicitly marked deprecated here
# github.com/agl/go-gtk/gtk
In file included from $WORK/github.com/agl/go-gtk/gtk/_obj/_cgo_export.c:2:
../../agl/go-gtk/gtk/gtk.go:325:9: warning: 'gtk_widget_get_double_buffered' is deprecated [-Wdeprecated-declarations]
/usr/local/Cellar/gtk+3/3.18.1/include/gtk-3.0/gtk/gtkwidget.h:879:23: note: 'gtk_widget_get_double_buffered' has been explicitly marked deprecated here
@juniorz
juniorz / log.md
Created September 21, 2015 04:11
go-gtk on OSX

It initialliy failed with:

$ go get github.com/mattn/go-gtk/gtk
# github.com/mattn/go-gtk/gdk
../../mattn/go-gtk/gdk/gdk_darwin.go:5:10: fatal error: 'gdk/gdkx.h' file not found
#include <gdk/gdkx.h>
         ^
1 error generated.

Related issues:

@juniorz
juniorz / build-tor.sh
Last active September 7, 2015 20:10
Building Tor on OSX
#!/bin/bash
brew update
brew install asciidoc openssl lcov dmalloc
# add asciidoc config to whatever shell you use
# required by asciidoc. See brew info asciidoc
echo "export XML_CATALOG_FILES=/usr/local/etc/xml/catalog" > .bashrc
git clone https://git.torproject.org/tor.git
@juniorz
juniorz / README.md
Last active February 11, 2018 08:26
An OTR-over-TCP example

# OTR-over-TCP chat-roulette

This is an example of how OTR can be used outside of XMPP

Installing instructions

How to start a server

curl https://gist.github.com/juniorz/9ae1d1f38fc24a2cb051/raw/server.go -O
@juniorz
juniorz / README.md
Last active August 29, 2015 14:24
Running tests for golang crypto/otr package

libotr and crypto/otr config instructions

If you want to run crypto/otr tests, run

setup-libotr2-3.1.0
setup-crypto-otr

If you want to build all versions of libotr (to run its test_suite/otr_c_client), run