I hereby claim:
- I am jamilbk on github.
- I am jamilbk (https://keybase.io/jamilbk) on keybase.
- I have a public key ASB4IWsNyJwo0rubre8obmG_3Wl2jnRMOhC9xeuPbJo_HAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
curl -s -i -XPOST 'http://127.0.0.1:8086/query' --data-urlencode "q=CREATE DATABASE order_history" > /dev/null | |
for file in *.gz; do | |
echo "extracting ${file}..." | |
unpigz -k $file | |
file2=${file::-3} | |
pair=${file2::-4} | |
exchange=${pair::-3} |
defmodule CoinbasePro do | |
@moduledoc """ | |
CoinbasePro exchange wrapper. | |
""" | |
@config Application.get_env(:config, __MODULE__) | |
@api_url (if Mix.env == :prod do | |
"https://api.pro.coinbase.com" | |
else | |
"https://api-public.sandbox.pro.coinbase.com" |
#!/usr/bin/env bash | |
set -xe | |
orig_dir=`pwd` | |
OTP_VER="21.3.8.14" | |
ELIXIR_VER="1.10.2" | |
export AUTOCONF_VERSION=2.69 | |
# Set encoding |
Vagrant.configure("2") do |config| | |
config.vm.box = "generic/openbsd6" | |
config.vm.provision "shell", inline: <<~SCRIPT | |
#!/usr/bin/env bash | |
set -xe | |
orig_dir=`pwd` | |
OTP_VER="21.3.8.14" |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFtM/Vuk9/rHOr6N3VXVFL/lUuokuee1nfAZpkkJhGKa jamil@Jamil's Macbook Pro |
defmodule Wg do | |
# Clamp random bytes for generating Curve25519 private key | |
# See https://github.com/tonarino/innernet/blob/main/wireguard-control/src/key.rs#L40 | |
# or | |
# https://github.com/WireGuard/wireguard-tools/blob/master/src/curve25519.h#L18 | |
def genkey do | |
bytes = :crypto.strong_rand_bytes(32) | |
<<head>> = binary_part(bytes, 0, 1) | |
<<tail>> = binary_part(bytes, 31, 1) |