This file contains 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
# Author: Henry Koleoso | |
# Put these two files in .github/workflows/ | |
# Prerequisites: | |
# SSH Key pair - Private key in GitHub Secrets, Public key in /root/.ssh/authorized_keys on your server | |
# Discord Bot token - In GitHub Secrets or Environment Variables. | |
# This file is the workflow that handles the initial setup of your Discord bot. | |
# This job should be run only ONCE. Changes in 'create-systemctl-service' are appended to the systemd.service file, not overwritten so the file will be invalid! | |
# If you make a mistake, and need to run this job more than once, navigate to /etc/systemd/system |
This file contains 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
pragma solidity ^0.5.2; | |
contract IFactRegistry { | |
/* | |
Returns true if the given fact was previously registered in the contract. | |
*/ | |
function isValid(bytes32 fact) | |
external view | |
returns(bool); |
This file contains 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
# Waves node settins | |
waves { | |
max-cache-size = 10 | |
# Blockchain settings | |
blockchain { | |
type = CUSTOM | |
custom { | |
address-scheme-character = "D" | |
functionality { |
This file contains 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
Verifying my Blockstack ID is secured with the address 12peec2BFodkFiH59dTPDFuE1dh5JY73WH https://explorer.blockstack.org/address/12peec2BFodkFiH59dTPDFuE1dh5JY73WH |
This file contains 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
0xC16Cd2dd3EA77B0eC4CdFd98ABF22013B4d33999 |
This file contains 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
pragma solidity ^0.4.10; | |
contract UselessWorker { | |
int public successfullyExecutedIterations = 0; | |
function doWork(int _iterations) { | |
successfullyExecutedIterations = _iterations; | |
for (int i = 0; i < _iterations; i++) | |
{ |
This file contains 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
pragma solidity ^0.4.15; | |
/** | |
* @title ERC20Basic | |
* @dev Simpler version of ERC20 interface | |
* @dev see https://github.com/ethereum/EIPs/issues/179 | |
*/ | |
contract ERC20Basic { | |
uint256 public totalSupply; | |
function balanceOf(address who) constant returns (uint256); |