Skip to content

Instantly share code, notes, and snippets.

View arshbot's full-sized avatar
🖥️
11100010 10011010 10100001

Harsha Goli arshbot

🖥️
11100010 10011010 10100001
View GitHub Profile
Format:
<ERROR_CODE>
<Simple explanation of what went wrong>
- <Fix 1>
- <Fix 2>
- <Fix 3>
# If you change this value, please change it in the following files as well:
# /.travis.yml
# /Dockerfile
# /make/builder.Dockerfile
# /.github/workflows/main.yml
# /.github/workflows/release.yml
FROM golang:1.17.1-alpine as builder
LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"
@arshbot
arshbot / gist:0f4a350da60261b5925e83f7aeeb938f
Last active July 12, 2021 16:33
building and running lnd quickly, see modified dockerfile
docker-compose build && docker-compose run --entrypoint "make itest icase=psbt" lnd
~~dev.DOCKERFILE~~
# If you change this value, please change it in the following files as well:
# /.travis.yml
# /Dockerfile
# /make/builder.Dockerfile
# /.github/workflows/main.yml
# /.github/workflows/release.yml
FROM golang:1.16.3-alpine as builder
@arshbot
arshbot / Pipfile
Created September 13, 2019 21:26
Stripe integration demo
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
stripe = "*"
requests = "*"
from time import sleep
import requests, os
import sys
url = "https://us-east-api.grinmint.com/v1/user/mining+miner1@thesis.co/dashboard"
print("")
while(True):
sleep(1)
@arshbot
arshbot / lndreadme.txt
Created November 20, 2018 22:07
LND Installation & Running instructions
Mac install & start instructions
1. $ brew install go
2. $ export PATH=$PATH:$(go env GOPATH)/bin
3. $ https://bitcoin.org/en/download
4. $ echo testnet=1 >> Library/Application\ Support/Bitcoin/bitcoin.conf
Start bitcoin-qt and wait for it to sync
5. $ go get -d github.com/lightningnetwork/lnd
6. $ cd $GOPATH/src/github.com/lightningnetwork/lnd
testnet=1
server=1
txindex=1
maxconnections=10
rpcuser=REPLACEME
rpcpassword=REPLACEME
minrelaytxfee=0.00000000
incrementalrelayfee=0.00000010
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333

Keybase proof

I hereby claim:

  • I am arshbot on github.
  • I am arshbot (https://keybase.io/arshbot) on keybase.
  • I have a public key ASDwgo2mSHTeugRZNpFUUATijhnoiUpp8WvCghoxqYL6ywo

To claim this, I am signing this object:

var bip39 = require('bip39');
var hdkey = require('hdkey');
var createHash = require('create-hash');
var btcLib = require('bitcoinjs-lib');
var bs58check = require('bs58check');
//const mnemonic = bip39.generateMnemonic(); //generates string
const mnemonic = "gentle mutual speak consider mandate kingdom cash explain soul exile cabin squeeze";
const seed = bip39.mnemonicToSeed(mnemonic); //creates seed buffer
console.log('Seed: ' + seed);
@arshbot
arshbot / executeRequest.swift
Created September 13, 2017 00:38
How to execute http request in swift
/*
PARAMS
URL - url of server + method wrapped in URL
httpMethod - For example: "GET", "POST", "PUT", "DELETE" etc
postData - body in string form. Be sure to include and escape quotations for string keys
auth - String key, string value dictionary. Should have "username" key and "password" key, will fail if not present
headers - header for request
completionHandler - block that is to be executed on the response. Block has three optional parameters of type Data, URLResponse, Error.
Returns void