Skip to content

Instantly share code, notes, and snippets.

View mlightvn's full-sized avatar
😷
雨雨雨雨雨

Ngoc Nam mlightvn

😷
雨雨雨雨雨
View GitHub Profile
@mlightvn
mlightvn / generate_blocks.sh
Created February 27, 2021 19:30 — forked from System-Glitch/generate_blocks.sh
Tutorial for bitcoin regtest
# Script to generate a new block every minute
# Put this script at the root of your unpacked folder
#!/bin/bash
echo "Generating a block every minute. Press [CTRL+C] to stop.."
address=`./bin/bitcoin-cli getnewaddress`
while :
do
@mlightvn
mlightvn / random_password.js
Created October 24, 2019 05:46 — forked from enishant/random_password.js
Create Random Password
function randomPassword(length=8,input='alpha-numeric') {
var alphabet = 'abcdefghijklmnopqrstuvwxyz';
var password = '';
if(input == 'alpha') {
alphabet = 'abcdefghijklmnopqrstuvwxyz';
} else if(input == 'alpha-caps') {
alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
} else if(input == 'alpha-numeric') {
alphabet = 'abcdefghijklmnopqrstuvwxyz1234567890';
} else if(input == 'alpha-numeric-caps') {