Skip to content

Instantly share code, notes, and snippets.

View christroutner's full-sized avatar
💭
https://FullStack.cash is where I play.

Chris Troutner christroutner

💭
https://FullStack.cash is where I play.
View GitHub Profile
@christroutner
christroutner / updating-a-fork.md
Last active April 18, 2022 18:13 — forked from CristinaSolana/gist:1885435
Keeping a forked repository up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@lordcirth
lordcirth / ipfs.service
Last active August 20, 2020 14:52
IPFS systemd service with resource limits
[Unit]
Description=IPFS daemon
After=network-online.target
[Service]
ExecStart=/home/ipfs/.nix-profile/bin/ipfs daemon
User=ipfs
LimitNice=10
MemoryHigh=4G
# OOM-killer
@cgcardona
cgcardona / Local.cash
Created August 25, 2019 06:35
Local CashScript Contract for local.bitcoin.com
contract Local(
bytes20 sellerPHK, // Hash160 of seller's public key
bytes20 buyerPKH, // Hash160 of buyer's public key
bytes20 arbitratorPKH, // Hash160 of arbitrator's public key
bytes escrowKey // Nonce (just some unimportant random bytes unique per exchange)
) {
function spend(
sig spenderSig,
pubkey spenderPK,
datasig oracleSig,
@cgcardona
cgcardona / Escrow.cash
Created August 25, 2019 20:27
Escrow CashScript Contract for blind escrow based on local.bitcoin.com
contract Escrow(
bytes20 sellerPHK, // Hash160 of seller's public key
bytes20 buyerPKH, // Hash160 of buyer's public key
bytes20 arbitratorPKH, // Hash160 of arbitrator's public key
bytes escrowKey // Nonce (just some unimportant random bytes unique per exchange)
) {
function spend(
sig spenderSig,
pubkey spenderPK,
datasig oracleSig,
@christroutner
christroutner / js-buf.md
Last active September 8, 2020 16:58
Working with Buffers and Hex Strings

Working with JavaScript Buffers, Hex, and Strings

// Start with a normal base-10 number.
const numNum = 123; // 7B in hex
console.log(`numNum: `, numNum);
// numNum:  123

// Convert the Number to a String
@christroutner
christroutner / psf-circuit-relays.json
Last active June 29, 2022 18:23
psf-circuit-relays
{
"browser": [
{
"name": "ipfs-wss.psfoundation.info",
"multiaddr": "/dns4/ipfs-wss.psfoundation.info/tcp/443/wss/ipfs/12D3KooWHnZZBr1VeFoRJPoB6MHqu3RNp1RW6o9nswHzGZuXe27h",
"ipfsId": "12D3KooWHnZZBr1VeFoRJPoB6MHqu3RNp1RW6o9nswHzGZuXe27h"
},
{
"name": "bchd.nl",
"multiaddr": "/dns4/bchd.nl/tcp/443/wss/p2p/12D3KooWRBhwfeP2Y9CDkFRBAZ1pmxUadH36TKuk3KtKm5XXP8mA",
@christroutner
christroutner / ubuntu-setup-notes.md
Last active December 20, 2022 14:35
Ubuntu Setup Notes

This file contains a list of commands that can be used to quickly and easily setup a new Ubuntu 20.04 installation.

Update and Upgrade

  • sudo apt update
  • sudo apt upgrade

Install SSH Server

  • sudo apt install openssh-server

Install Basic Apps

@christroutner
christroutner / psf-consumer-apis.json
Last active October 25, 2022 20:35
psf-consumer-apis
{
"consumerApis": [
{
"name": "wa-usa-bch-consumer.fullstackcash.nl",
"ipfsId": "12D3KooWBXuJHsAoqkn3NwwFsGzWkNkRYH17RtNJY2snTSxQpikS",
"url": "https://wa-usa-bch-consumer.fullstackcash.nl"
},
{
"name": "pdx01-usa-bch-consumer.fullstackcash.nl",
"ipfsId": "12D3KooWEzE3HNH86WCb2Xocu6PgBCnSGUD7myJmuTHvoedMwp7K",
@christroutner
christroutner / psf-public-circuit-relays.json
Last active October 1, 2022 20:30
psf-public-circuit-relays
{
"browser": [
{
"name": "p2wdb-cr-wss.fullstack.cash",
"multiaddr": "/dns4/p2wdb-cr-wss.fullstack.cash/tcp/443/wss/ipfs/12D3KooWKNuBjaMgEDN2tGqzmdfM2bmd22VEuboC4X7x8ua4DvUg",
"ipfsId": "12D3KooWKNuBjaMgEDN2tGqzmdfM2bmd22VEuboC4X7x8ua4DvUg"
},
{
"name": "ipfs-cr.fullstackslp.nl",
"multiaddr": "/dns4/ipfs-cr.fullstackslp.nl/tcp/443/wss/ipfs/12D3KooWJyc54njjeZGbLew4D8u1ghrmZTTPyh3QpBF7dxtd3zGY",
{
"consumerApis": [
{
"name": "wa-usa-xec-consumer.fullstackcash.nl",
"ipfsId": "12D3KooWCTwdBFz7rWYPav54qgKVjPzNNzC46Qdg1w14iSU2mQJo",
"url": "http://wa-usa-xec-consumer.fullstackcash.nl"
},
{
"name": "xec-consumer-or1-usa.fullstackcash.nl",
"ipfsId": "12D3KooWJNjbzJuF6suDXdC4eDarTR8Maf8H3fxZEvaTqpiBr7Ma",