Skip to content

Instantly share code, notes, and snippets.

@olistic
olistic / readme.md
Created January 4, 2024 16:15 — forked from max-mapper/readme.md
Bitcoin Regtest Local Server Instructions
  1. Grab the latest bitcoin-core .tar.gz release and unpack it https://bitcoin.org/en/download
  2. Add the bin folder to your path
  3. Start the regtest server bitcoind -regtest
  4. Create a test wallet bitcoin-cli -regtest createwallet test
  5. Get a bcrt address for your wallet bitcoin-cli -regtest getnewaddress
  6. 'Mine' some regtest btc bitcoin-cli generatetoaddress 10 <address-from-previous-command>
  7. Make sure it worked `bitcoin-cli getblockcount

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@olistic
olistic / Gate.js
Created September 5, 2016 20:04
HomeKit Gate
const Particle = require('particle-api-js');
const PARTICLE_ACCESS_TOKEN = process.env.PARTICLE_ACCESS_TOKEN;
const DEVICE_ID = '310441150a47343356565663';
const particle = new Particle();
class Gate {
getState() {
return particle.getVariable({