Skip to content

Instantly share code, notes, and snippets.

View sandipndev's full-sized avatar
🏝️
Travelling

Sandipan sandipndev

🏝️
Travelling
View GitHub Profile
@6174
6174 / Random-string
Created July 23, 2013 13:36
Generate a random string in JavaScript In a short and fast way!
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
<html>
<head>
<script>
window.onload = function() {
console.log("LOADED");
//Configuration variables
var updateInterval = 20 //in ms
var numberElements = 200;
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active November 17, 2024 17:23
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@notmandatory
notmandatory / tr_wallet_test.md
Last active April 25, 2023 03:08
Creating a regtest taproot descriptor wallet with bitcoind

This gist demonstrates how to create a bitcoind wallet that is based on pay to taproot (P2TR) descriptors.

Tools used:

  • docker with image bitcoindevkit/bitcoind:v22.0rc2
  • bitcoin dev kit cli, bdk-cli

About bech32 vs bech32m addresses

Steps:

  1. Create aliases to work with bitcoind docker image