Skip to content

Instantly share code, notes, and snippets.

View abrkn's full-sized avatar

Andreas Brekken abrkn

View GitHub Profile
@abrkn
abrkn / coinex-api-node.js
Created February 3, 2018 14:33
Coinex API client for Node.js
// From https://github.com/coinexcom/coinex_exchange_api/wiki/012security_authorization
const request = require('superagent');
const crypto = require('crypto');
const querystring = require('querystring');
const baseUrl = 'https://api.coinex.com/v1';
const USER_AGENT =
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36';
@abrkn
abrkn / install-adobe-creative-cloud.sh
Created December 21, 2017 09:50
Install Adobe Creative Cloud with minimal user interaction
#!/usr/bin/env bash
# Adobe Creative Cloud
if [ ! -d "/Applications/Adobe Creative Cloud/" ]; then
dmg=CreativeCloudInstaller.dmg
dir=$(mktemp -d)
pushd "$dir"
curl -O "https://ccmdls.adobe.com/AdobeProducts/PHSP/19_0_1/osx10-64/AAMmetadataLS20/$dmg"
mkdir -p mount
@abrkn
abrkn / list-of-blockstream-projects-that-fail-to-deliver-bitcoin-scaling.md
Last active November 23, 2017 08:22
List of BlockStream projects that fail to deliver Bitcoin scaling

List of BlockStream projects that fail to deliver Bitcoin scaling

  • The "Black Box" [1]
  • UASF hats[2]
  • "ASICBOOST" campaign [3]
  • "NO2X"
  • Satellites
  • "DragonMint" [4]

References:

@abrkn
abrkn / index.js
Created October 13, 2017 20:53
kraken-minimal-trader
#!/usr/bin/env node
const assert = require('assert');
const { delay } = require('bluebird');
const BigNumber = require('bignumber.js');
const kraken = require('./kraken');
const {
fetchMyOpenOrders,
fetchOrderBook,
placeOrder,
$ git clone https://github.com/OpenBazaar/openbazaar-go.git
Cloning into 'openbazaar-go'...
...
$ cd openbazaar-go/
$ sudo apt-get install -y git build-essential
➜ ~ cat /dev/urandom | xxd -c 100 | awk '{print toupper($0)}' | sed 's/[^A-Z9]//g' | head -c 81
DCFDBBACECDAEAFCACDFBCAFCFE9BFBC9ACEDBD9FCCFFEBCFCBCDEEEFFBF9AAEFDCE9DC9FEDCAEECF%
$ npm install
...
iota@2.5.6 /home/ubuntu/wallet
$ mkdir iri
$ cp ../iri/target/iri-*.jar iri/iri.jar
$ git clone https://github.com/iotaledger/iri
$ cd iri
$ mvn clean compile
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.164 s
[INFO] Finished at: 2018-01-25T13:37:47+00:00
[INFO] Final Memory: 21M/262M