Skip to content

Instantly share code, notes, and snippets.

Sjors Provoost Sjors

Block or report user

Report or block Sjors

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Sjors
Sjors / magic.sh
Created May 7, 2019
Install Bitcoin Core from Gitian
View magic.sh
sudo tar -xzvf /home/gitian/bitcoin-binaries/0.18.0/bitcoin-0.18.0-x86_64-linux-gnu.tar.gz -C /usr/local --strip 1
@Sjors
Sjors / README.md
Created May 6, 2019
LibrePatron without Docker (Ubuntu)
View README.md

Warning: this is highly experimental

It assumes you're already running BTCPay Server somehwere.

Create a user and group:

sudo adduser patron --disabled-password
@Sjors
Sjors / bitcoin.conf
Created Aug 26, 2018
Bitcoin Core remote dev
View bitcoin.conf
testnet=1
[main]
[test]
server=1
rpcpassword=bitcoin
rpcuser=bitcoin
@Sjors
Sjors / 2018-03 Code Block London.md
Last active Mar 24, 2018
Anatomy of a bitcoin transaction
View 2018-03 Code Block London.md

footer: 2018-03-24 - Code Block London - sjors@sprovoost.nl - @provoost on Twitter slidenumbers: true autoscale: false

Bitcoin's Moving Parts

  • Coins
  • Digital signatures
@Sjors
Sjors / fetch_and_sign.sh
Last active Feb 17, 2018
Fetches gitian assert files from VM and signs them on host machine
View fetch_and_sign.sh
#!/bin/sh
SIGNED_BINARIES=0
while getopts ":n:v:s" opt; do
case $opt in
n)
NAME=$OPTARG
;;
v)
VERSION=$OPTARG
@Sjors
Sjors / steps.md
Created Jan 4, 2018
Convert (BitPay) BIP-70 payment request protocol buffer to JSON
View steps.md

Create payment request using their demo site. Obtain URL from QR code, e.g. on OSX using QR Journal.

View Bitcoin EC2 Performance test.md

EC2 settings

  • Instance type: t2.xlarge
  • vCPUs: 4
  • Memory (GiB): 16
  • General Purpose SSD (GP2): 200 GB
  • Ubuntu
  • Running in eu-central-1b (Frankfurt)

Hint: to make your life easier and allow login with a simple ssh btc-0.14, edit ~/.ssh/config:

@Sjors
Sjors / Makefile
Last active Aug 29, 2015
Makefile to generate iOs icons from an SVG.
View Makefile
resolutions := 58 76 80 120 152
all_FILES := $(foreach resolution, $(resolutions), icon-$(resolution).png)
all: $(all_FILES)
icon-%.png: icon-itunes-connect-1024.png
convert $< -resize $*x$* $@
icon-itunes-connect-1024.png: icon.svg
@Sjors
Sjors / bitcoin-pay.rb
Last active Apr 9, 2019
This script demonstrates how a bitcoin transaction is created and signed. Just pass in your own address and private key and it will prepare a transaction for you. You can then copy & paste that transaction into a webservice like Blockchain to send it. I wrote this mostly to understand better how it works. I sometimes had to "cheat" and look at t…
View bitcoin-pay.rb
#!/usr/bin/env ruby
require 'open-uri'
require 'JSON'
require 'digest/sha2'
require 'pry'
require 'bigdecimal'
require 'bitcoin' # Because I need to cheat every now and then
# Usage:
# gem install pry json ffi ruby-bitcoin
You can’t perform that action at this time.