Skip to content

Instantly share code, notes, and snippets.

```
[
{
"id": 2,
"name": "Bialobrzegi",
"pubkey": "020601143b9058cf20246e8a999cf761215d1e26e41d709b51afbb89faeccde4a5",
"raddress": "R9NkPTewaHywvWGN9UzXcrZJZygx1JCCT2",
"organization": 2
},
{
@imylomylo
imylomylo / python-django-postgres-ci.yml
Created May 10, 2021 05:15 — forked from jefftriplett/python-django-postgres-ci.yml
This is a good starting point for getting Python, Django, Postgres running as a service, pytest, black, and pip caching rolling with GitHub Actions.
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
$ 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