Skip to content

Instantly share code, notes, and snippets.

@bobinson
bobinson / redis_setup.txt
Created April 22, 2023 09:39
redis setup
docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest
docker exec -it redis-stack-server redis-cli
CONFIG SET requirepass "YOUR_PASSWORD"
CONFIG GET requirepass
exit
@bobinson
bobinson / checkpoints_peerplays_config.ini
Created September 16, 2021 15:16
checkpoints peerplays
# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.
#"2021-09-09T21:59:33"
checkpoint = ["43328076","0295224c22b145b43c6ed6d4d56390b7fddb4758"]
#"2021-09-14T20:41:27"
checkpoint = ["43328077","0295224df70e863823bc29bb171e8380cd0d5f14"]
#"2021-09-14T20:41:45"
checkpoint = ["43328078","0295224e77097787cb53a4a573ac253f27912df9"]
#"2021-09-14T20:41:54"
@bobinson
bobinson / WitnessEndpoints.js
Created May 16, 2021 19:25 — forked from pbsa-dev/WitnessEndpoints.js
Alice Witness Endpoints for use in various dapps that require connections to the blockchain.
const endpoints = [
'wss://pma.blockveritas.co/ws',
'wss://api.eifos.org',
'wss://peerplaysblockchain.net/mainnet/api',
'wss://api.ppy.blockoperations.com',
'wss://ppyws.roelandp.nl/ws'
];
log-appender = {"appender":"stderr","stream":"std_error"} {"appender":"p2p","file":"logs/p2p/p2p.log"}
log-logger = {"name":"default","level":"info","appender":"stderr"} {"name":"p2p","level":"warn","appender":"p2p"}
backtrace = yes
plugin = webserver p2p json_rpc
plugin = database_api condenser_api
plugin = witness
plugin = rc
 cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=RelWithDebInfo
from peerplays import PeerPlays
from peerplaysbase.account import (
BrainKey, PublicKey, PrivateKey, Address, PasswordKey
)
from peerplaysbase.account import BrainKey
brain = BrainKey("CINCHER LEGACY BELLED THULR MEERED JOCH ELEIDIN ABEYANT FUNDI CANKERY UNWATER ENCURL LAMITER SIDED SCHOLIA VOWEL")
owner_wif = format(brain.get_private_key(), "wif") # The owner key is derived from the brain key
@bobinson
bobinson / bitshares-zero-to-sixty.md
Created January 7, 2020 13:38 — forked from nathanielhourt/bitshares-zero-to-sixty.md
BitShares Development: Zero to Sixty in 30 Minutes or Less

BitShares Development: Zero to Sixty in 30 Minutes or Less

Introduction to BitShares

BitShares is a decentralized, blockchain-based financial services smart contracting platform. BitShares' decentralization is based on the Delegated Proof of Stake (DPoS) consensus model, meaning that blocks are produced by a group of 'Witness' nodes which are elected by stake-weighted shareholder voting. In addition to the Witnesses is the Committee, a group of blockchain accounts, likewise elected by stakeholder voting, which vote to specify tunable blockchain parameters, and vote to include or reject proposed new features and other modifications to the consensus protocol.

BitShares is a smart contracting platform specifically targeted at financial contracts. It should be noted that BitShares is not a turing-complete smart contracting platform, meaning that BitShares does not support arbitrary, user-defined smart contracts; rather, BitShares provides a well-de

@bobinson
bobinson / gist:ad0263349614f32a5959f2e37e52933a
Created February 16, 2019 09:53
peerplays command error ?
Current Wallet Passphrase:
Traceback (most recent call last):
File "/Users/b5413b/.pyenv/versions/3.6.5/bin/peerplays", line 11, in <module>
load_entry_point('peerplays==0.3.7', 'console_scripts', 'peerplays')()
File "/Users/b5413b/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/Users/b5413b/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Users/b5413b/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
@bobinson
bobinson / steem_fullnode_config.ini
Created October 12, 2018 09:56
steem_fullnode_config.ini
# Endpoint for P2P node to listen on
#p2p-endpoint = 0.0.0.0:6666
# Maxmimum number of incoming connections on P2P endpoint
# p2p-max-connections =
# User agent to advertise to peers
p2p-user-agent = Graphene Reference Implementation
@bobinson
bobinson / refresh
Last active April 15, 2017 13:46 — forked from bradymiller/refresh
macOS script to prepare a github repository for testing the OpenEMR Development tip
#!/bin/bash
#
# Copyright (C) 2014 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Ubuntu script to prepare a github repository for testing. This is