Instantly share code, notes, and snippets.

@juniorz
juniorz / README.md
Created Jul 31, 2018
How to setup a XMPP prekey server
View xmpp.go
package main
import (
"fmt"
"github.com/coyim/coyim/xmpp"
)
func main() {
//TODO: this nil will crash. You need to setup a verifier
@juniorz
juniorz / bjshare-grouped.yml
Last active Feb 6, 2017
Cardigann definition for BJ Share
View bjshare-grouped.yml
---
site: bjshare-grouped
name: BJ Share (w/ stupid grouping)
description: BJ Share tracker w/ grouped layout
language: pt-br
links:
- https://bj-share.me/
caps:
categories:
@juniorz
juniorz / Dockerfile
Last active May 5, 2016
Building a Raspbian Docker Image
View Dockerfile
FROM scratch
ADD rootfs.tar.xz /
CMD ["/bin/bash"]
@juniorz
juniorz / instructions.md
Last active Mar 18, 2016
Building lua on WD My Cloud EX2
View instructions.md

Building dependencies

ncurses

$ cd Open_Source_packages
$ source source.me
$ tar -xzvf ncurses-5.7.tar.gz
$ cd ncurses-5.7
$ ./xbuild.sh build
@juniorz
juniorz / instructions.md
Last active Apr 17, 2017
Building tor on WD My Cloud EX2
View instructions.md

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

View gpg-key-transition-statement.txt
-----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 Oct 30, 2015
Bulding golang for Intel Edison
@juniorz
juniorz / README.md
Last active Mar 16, 2016
How to build tor for Intel© Edison
View README.md

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