This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mkdir -p ~/.ssh | |
| # generate new personal ed25519 ssh keys | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>" | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <rob@rob.tn>" | |
| # generate new host cert authority (host_ca) ed25519 ssh key | |
| # used for signing host keys and creating host certs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected string file_get_contents(string fileName) | |
| { | |
| string sContents = string.Empty; | |
| if (fileName.ToLower().IndexOf("http:") > -1){ | |
| // URL | |
| System.Net.WebClient wc = new System.Net.WebClient(); | |
| byte[] response = wc.DownloadData(fileName); | |
| sContents = System.Text.Encoding.ASCII.GetString(response); | |
| } else { |