Skip to content

Instantly share code, notes, and snippets.

View tiotdev's full-sized avatar

Julian Peters tiotdev

View GitHub Profile
sudo apt update && sudo apt upgrade -y && sudo apt-get install git cmake build-essential libssl-dev screen curl -y && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && source ~/.bashrc && nvm install node
screen -S koinos
git clone https://github.com/open-orchard/koinos-miner.git && cd koinos-miner && npm i --unsafe-perm
node app.js -a publickeyofyourreceivingwallet
(this creates a new funding wallet. type anything for seed, choose a pw, confirm the pw, type koinoskey)
const hive = require('@hiveio/hive-js');
const powerUp = ({ wif, from, to, amount }) => {
return new Promise((resolve, reject) => {
hive.broadcast.transferToVesting(wif, from, to, amount, (err, result) => {
if (err) reject(err);
else resolve(result);
});
});
};
const shoppingList = [];
const dogShoppingList = ["dogfood", "doghouse", "toy", 5, 213];
dogShoppingList.forEach((item) => {
if (typeof item === "string") {
shoppingList.push(item);
}
});
console.log(shoppingList);
function squareThat(mynumber) {
console.log(mynumber * mynumber);
}
let counter = 0;
squareThat(512);
function sayHiTenTimes() {
while (counter < 10) {

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@tiotdev
tiotdev / beem_change_keys.py
Created August 30, 2019 10:25
Replace a Steem account's public posting and active key using the active key (from beem wallet)
from beem import Steem
from beem.account import Account
account = ""
posting_new = ""
active_new = ""
posting_old = ""
active_old = ""