Skip to content

Instantly share code, notes, and snippets.

@icook
icook / interblock_time.ipynb
Last active February 24, 2016 19:38
This IPython notebook generates graphs of the moving average inter-block time for a blockchain.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Product Review Exchange

Getting feedback on a new product is vital, but getting those early Eyeballs can be difficult. Why is Eyeballs capitalized? Whoknows.

  • Projects to be reviewed can be listed with simple text instructions. Basic requirements (iOS, Android, Windows, etc) will be specified to allow filtering by users.
  • Points system. When you review something the review is sent to the author for review
    • The site owner awards points based on the helpfulness of the review. 0 is spam, 10 is pivotal advice that is thorough and well explained.
  • If you post a site to review you "pay" for reviews with points.
  • Each review costs 5 points as long as you award the reviewer more than a 0.
@icook
icook / faq.md
Last active February 27, 2016 01:21
# widgets example code: check_buttons.py
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import CheckButtons
class LabelWrapper(str):
def __new__(cls, graph, text):
s = str.__new__(cls, text)
s.graph = graph
[Unit]
Description=todo server
After=network.target
[Service]
User=todo
Group=todo
WorkingDirectory=/home/todo/TodoList
ExecStart=/usr/local/bin/python app.py
ExecReload=/bin/kill -s HUP $MAINPID
@icook
icook / .Xmodmap
Created April 15, 2018 00:05
CapsLock->Control
keycode 66 = Control_L
clear Lock
add Control = Control_L
BQANuNdDT5mjANAd9RzcG4JMC75kLe7Qef
@icook
icook / cron
Last active May 10, 2018 16:21
0,15,30,45 * * * * /home/scm/task.sh compress_slices
* * * * * /home/scm/task.sh generate_credits -ds
#1 */4 * * * /home/scm/task.sh create_trade_req buy
#1 */4 * * * /home/scm/task.sh create_trade_req sell
* * * * * /home/scm/task.sh collect_minutes
* * * * * /home/scm/task.sh collect_ppagent_data
*/5 * * * * /home/scm/task.sh compress_minute
2 * * * * /home/scm/task.sh compress_five_minute
*/2 * * * * /home/scm/task.sh update_block_state
*/5 * * * * /home/scm/task.sh update_online_workers
@icook
icook / gist:dec29098a851b8d7b226139ff9c4deb1
Last active May 19, 2018 17:43
PowerPool Mp3 Deployment Basics
# to reboot all coinservers at once. "status" is also useful instead of restart
systemctl restart bitmarkd-test-argon2.service bitmarkd-test-lyra2rev2.service bitmarkd-test-scrypt.service bitmarkd-test-sha256d.service bitmarkd-test-x17.service
# all service configs. powerpool-test runs the testnets, powerpool runs mainnet
ls -l /etc/systemd/system/
# main binary for testnet is /usr/local/bin/bitmarkd.0.9.7-devcoins@mp3.64b.s. I've been building this from /home/devcoins/coinsrc/bitmark-0.9.7/
# all datadirs are in /home/devcoins/.bitmark-{algoname}/
# a utility script is in /home/devcoins/runall.sh that allows running an rpc command on all bitmark coinservers
/home/devcoins/runall.sh getinfo
# to start all the non-bitmark testnets
systemctl start litecoind-test.service bitcoind-test.service verged-test-x17.service verged2-test-x17.service vertcoind-test.service vertcoind2-test.service unitusd-test.service unitusd2-test.service
2018-05-31 17:24:36 Total coins emitted: 873150500000000
2018-05-31 17:24:36 UpdateTip: new best=ac44f4fec15f3e647005acfaaff5972a335c8898749feba0d9d06942ce77fa6f height=450766 log2_work=59.871579 tx=1090072 date=2018-05-31 16:43:00 progress=0.999930
2018-05-31 17:24:36 SetBestChain: 91 of last 100 blocks above version 2
2018-05-31 17:24:36 CheckForkWarningConditions: Warning: Large valid fork found
forking the chain at height 446398 (62f3dfde22420852306c0816e6935c9c3557dbec56f0735d885a80e166ebdc65)
lasting to height 450725 (9a1e0c1388127e43b845ad09a8d68726adf4f6dcdb3ea6a89bf310a6dfe31cab).
Chain state database corruption likely.
2018-05-31 17:24:36 ProcessBlock: ACCEPTED
2018-05-31 17:24:36 CreateNewBlock(): total size 1000