Skip to content

Instantly share code, notes, and snippets.

$ komodo-cli -ac_name=OFDEMO getbalance64
{
"mature": 573000,
"immature": 67000,
"staking": [
1000000000000,
1000000000000,
1000000000000,
1000000000000,
1000000000000,
@imylomylo
imylomylo / tx.json
Created August 20, 2020 02:29
Tx json
{
"txid": "b20c02b2b6be5cea7951a453676b2b66be0e879b074ac6e8eb39c1363cb01d22",
"version": 4,
"locktime": 1597476969,
"confirmations": 6848,
"notarized": false,
"height": 26204,
"lastNotarizedHeight": 0,
"vin": [
{
@imylomylo
imylomylo / changepassword.sh.j2
Created July 29, 2020 11:41 — forked from elleryq/changepassword.sh.j2
Create Django super user in ansible
#!/usr/bin/expect
set timeout -1;
spawn {{django_dir}}/venv/bin/python manage.py changepassword {{admin_user}};
expect {
"Password:" { exp_send "{{admin_pass}}\r" ; exp_continue }
"Password (again):" { exp_send "{{admin_pass}}\r" ; exp_continue }
eof
}

Keybase proof

I hereby claim:

  • I am imylomylo on github.
  • I am mylonas (https://keybase.io/mylonas) on keybase.
  • I have a public key ASBtx-3MIaMPeCamu_zbXwO8KBeBDMDmab-Cfkc5wHfpFwo

To claim this, I am signing this object:

@imylomylo
imylomylo / nn_benchmark.sh
Created June 25, 2020 02:38
nn benchmark
#!/bin/bash
UTXO_TX=$(time (~/komodo/src/komodo-cli listunspent | jq '. | { "utxos" : length }' && ~/komodo/src/komodo-cli getwalletinfo | jq '{ "txcount" : .txcount }') | jq -s add)
CPU_MODEL=$(cat /proc/cpuinfo | grep -m 1 "model name" | awk -F ':' '{print $2}')
MEM=$(free | grep Mem | awk '{print $2}')
SWAP=$(free | grep Swap | awk '{print $2}')
PROCESSES=$(ps aux | wc -l)
HDD_RW=$(sudo hdparm -Tt --direct /dev/nvme0n1 )
@imylomylo
imylomylo / kava.install.md
Created June 10, 2020 16:29
Kava Install Mainnet CDP Upgrade
Modified from https://medium.com/kava-labs/kava-testnet-4000-guide-2e47565dc890
& https://github.com/Kava-Labs/kava/blob/master/contrib/kava-3/migration.md
# Updates ubuntu
sudo apt update
sudo apt upgrade -y
# Installs packages necessary to run go
@imylomylo
imylomylo / gist:0e9d445879d7d4a0a88e22f8451d761e
Last active May 17, 2020 04:09
Node catching up with peers with forks
```
~/VerusCoin/src$ kmd -ac_name=VRSC getpeerinfo
[
{
"id": 1,
"addr": "167.xxx:27485",
"addrlocal": "43.xxx",
"services": "0000000000000005",
"lastsend": 1589688213,
@imylomylo
imylomylo / miner_zcash.yml
Created May 5, 2020 18:01 — forked from ricksancho/miner_zcash.yml
Zcash ansible script
---
- hosts: [miner_zcash, tag_Name_zmine, zmine*]
become_method: sudo
become_user: root
become: true
strategy: free
vars:
stratum_uri: zec-eu.suprnova.cc:2142
stratum_user: rick3_.user
stratum_password: password
@imylomylo
imylomylo / convertkey.py
Created April 14, 2020 05:37
Convert Private Key To Bitcoin Private Key In Python
#!/usr/bin/env python3
import hashlib
import binascii
import base58
# from discord chat, credit to Alrightt github user
def WIFdecode(WIF):
b58decode = base58.b58decode(WIF)
full_privkey = binascii.hexlify(b58decode)
@imylomylo
imylomylo / android.ndk.txt
Created January 20, 2020 13:23
Android NDK
[mylo@vivo arm]$ tree -L 2
.
|-- AndroidVersion.txt
|-- MODULE_LICENSE_BSD_LIKE
|-- MODULE_LICENSE_MIT
|-- NOTICE
|-- aarch64-linux-android
| |-- bin
| |-- lib
| `-- lib64