Skip to content

Instantly share code, notes, and snippets.

View Usman75's full-sized avatar

usman tahir Usman75

View GitHub Profile
@Usman75
Usman75 / Regtest_windows.md
Created December 31, 2024 13:48 — forked from ShahanaFarooqui/Regtest_windows.md
Regtest on Windows (Bitcoin & LND)

Install bitcoin core:

Download Bitcoin core and install it whereever you prefer (C:\Bitcoin). It should have daemon, docs and bitcoin-qt with other files. daemon folder contains bitcoind and bitcoin-cli executables.

Bitcoin regtest setup:

First node setup:

  • We need to run at least two nodes to send/receive transactions. So let us start with first node setup.
  • Create 'regtest1' folder at your prefered location (~\AppData\Roaming\Bitcoin).
  • Create bitcoin.conf file in this newly created regtest1 folder.
  • Add below configurations to this file:
@Usman75
Usman75 / calSync.js
Created March 24, 2023 09:47 — forked from maxsam4/calSync.js
Sync multiple google calendars
// *******************
// This setup will allow you to synchronize personal events from one calendar (the "secondary calendar")
// to another calendar, e.g. work (the "primary calendar"), but obfuscate the details. Then your coworkers
// know when you're busy but don't get to see the personal details.
//
// Follow these steps:
// 1. Go to https://script.google.com/home and click [+ New project]
// 2. Make sure the two calendars you want to sync can be edited by the Google account you're currently under
// (or switch accounts)
// 3. Click the title and give it a name like "Calendar sync"
@Usman75
Usman75 / 1-setup.js
Created September 19, 2022 19:17 — forked from getify/1-setup.js
find size of largest region in matrix... solutions are breadth-first iterative (2) and depth-first recursive (3)
// Adapted from: https://www.geeksforgeeks.org/find-length-largest-region-boolean-matrix/
"use strict";
var M1 = [
[ 0, 0, 1, 1, 0 ],
[ 1, 0, 1, 1, 0 ],
[ 0, 1, 0, 0, 0 ],
[ 0, 0, 0, 1, 1 ]
];