Skip to content

Instantly share code, notes, and snippets.

@cryptix
cryptix / shell.nix
Created April 9, 2021 09:30
NixOS Shell for cabal-desktop development
with import <nixpkgs> {};
with pkgs;
let cabalEnv = buildEnv {
name = "cabal-desktop-env";
paths = [
# npm sodium stuff
clang
gnumake
libtool
@cryptix
cryptix / complete.txt
Created September 18, 2016 13:33
zcash beta1 build failure (empty object files)
This file has been truncated, but you can view the full file.
+++ readlink -f ./zcutil/build.sh
++ dirname /home/cryptix/zcash/zcutil/build.sh
+ cd /home/cryptix/zcash/zcutil/..
+ LCOV_ARG=
+ HARDENING_ARG=--enable-hardening
+ '[' x-j4 = x--enable-lcov ']'
++ pwd
+ PREFIX=/home/cryptix/zcash/depends/x86_64-unknown-linux-gnu/
+ make -j4 -C ./depends/ V=1 NO_QT=1
make: Entering directory '/home/cryptix/zcash/depends'
@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 / 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 / fetch.go
Last active May 3, 2023 06:35
fetch all pdfs from a page
package main
import (
"crypto/sha1"
"fmt"
"io"
"net/http"
"os"
"strings"
"sync"
@cryptix
cryptix / pgpTestTool.go
Created December 28, 2014 16:20
PGP file encryption in golang
package main
import (
"archive/zip"
"fmt"
"log"
"os"
"time"
"github.com/cryptix/go/logging"
@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 / vineScrape.go
Created August 27, 2014 12:31
extract a javascript object value from a html page using goquery and otto
package main
import (
"errors"
"log"
"os"
"github.com/PuerkitoBio/goquery"
"github.com/robertkrimen/otto"
)
@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"