Skip to content

Instantly share code, notes, and snippets.

View sputn1ck's full-sized avatar

Konstantin Nick sputn1ck

View GitHub Profile
@sputn1ck
sputn1ck / signetguide.md
Created November 24, 2021 18:00
preperation guide for peerswap signet

Signet Guide

This guide walks through the steps necessary to run the peerswap plugin on bitcoin signet and liquid testnet. This guide was written and tested under Ubuntu-20.04 but the same procedure also applies to different linux distributions.

Install dependencies

Peerswap requires clightning, bitcoind and if the liquid testnet should be used also an elementsd installation. If you already have all of these installed you can let them run in signet, or testnet mode and skip to the section about using the plugin.

Bitcoind (signet)

chain=liquidregtest
listen=1
txindex=1
[liquidregtest]
port=18886
rpcport=18884
rpcuser=admin1
rpcpassword=123
chain=liquidregtest
listen=1
txindex=1
[liquidregtest]
port=18886
rpcport=18884
rpcuser=admin1
rpcpassword=123
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
##/=====================================\
##| Creating directories |
##\=====================================/
mkdir -p config liquid-config liquid-config2
@sputn1ck
sputn1ck / docker-compose.yml
Created July 9, 2021 12:59
docker-compose.yml
version: '3'
services:
# RPC daemons
bitcoin:
image: vulpemventures/bitcoin:latest
networks:
local:
ipv4_address: 10.10.1.10
ports:
- 18443:19001
# configuration.nix
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration
./bitcoin
];
services.openssh.enable = true;
#! /usr/bin/env bash
# Script to install NixOS from the Hetzner Cloud NixOS bootable ISO image.
# Wipes the disk!
# Tested with Hetzner's `NixOS 20.03 (amd64/minimal)` ISO image.
#
# Run like:
#
# curl https://nh2.me/nixos-install-hetzner-cloud.sh | sudo bash
#
@sputn1ck
sputn1ck / nixos-install-hetzner-cloud.sh
Created July 21, 2020 10:44 — forked from nh2/nixos-install-hetzner-cloud.sh
Script to install NixOS from the Hetzner Cloud NixOS bootable ISO image. Wipes the disk!
#! /usr/bin/env bash
# Script to install NixOS from the Hetzner Cloud NixOS bootable ISO image.
# Wipes the disk!
# Tested with Hetzner's `NixOS 20.03 (amd64/minimal)` ISO image.
#
# Run like:
#
# curl https://nh2.me/nixos-install-hetzner-cloud.sh | sudo bash
#
package main
import (
"flag"
"fmt"
"github.com/jhump/protoreflect/desc/protoparse"
"gopkg.in/yaml.v2"
"io/ioutil"
)
@sputn1ck
sputn1ck / RequestTest.cs
Last active March 19, 2020 22:16
async webrequest
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Networking;
public class RequestTest : MonoBehaviour
{
public string url;
public int maxTries;
public bool requestTrigger;