Skip to content

Instantly share code, notes, and snippets.

@lk86
lk86 / hide.java
Created February 5, 2016 07:16
Misc50
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.PrintStream;
public class Hide
{
public Hide() {}
protected void steg(String paramString1, String paramString2)

Keybase proof

I hereby claim:

  • I am lk86 on github.
  • I am lk86 (https://keybase.io/lk86) on keybase.
  • I have a public key ASBy0z5iFlI1HcwNGfnKxkRN19aMPjZHOZ-MeUCq5qAcLgo

To claim this, I am signing this object:

@lk86
lk86 / qa-steps.md
Last active October 20, 2020 19:16 — forked from bijanshahrokhi/qa-steps.md
  1. Run the following commands on a Debian:stretch image
  2. sudo apt-get update
  3. sudo apt-get install -y apt-transport-https ca-certificates
  4. echo "deb [trusted=yes] http://packages.o1test.net unstable main" | sudo tee /etc/apt/sources.list.d/coda.list
  5. sudo apt-get update
  6. sudo apt-get install -y curl coda-testnet-postake-medium-curves=0.0.16-beta7+-qa-branch-block-production-fixes-723cd47 --allow-downgrades
  7. wget -O ~/daemon.json https://gist.githubusercontent.com/es92/7b473944528968b067725b6ef319abc4/raw/870ca575c60b6983e759e6f47b6ae1fe10371814/daemon-10-17-2020.json
  8. export KEYPATH=<keypath> where <keypath> is the full path to your private key file. If you submitted a public key to the excel spreadsheet for stake on the new network, then make sure to use the private key file corresponding to that public key.
  9. export CODA_PRIVKEY_PASS=<private key password> where <private key password> is the password to your private key.
  10. `coda daemon -peer /dns4/seed-two.pickles-public
@lk86
lk86 / qa-steps.md
Last active October 23, 2020 19:28 — forked from bijanshahrokhi/qa-steps.md

Note: If you haven't already added your qanet public address to our Google Sheet, please go ahead and add it using the link below. Only public addresses listed in this doc will receive public qanet tokens for testing. If you added your public address while a public qanet is running, you will have to wait until the next release to receive your tokens. Alternatively, you can ask the community members in the qa-task-force channel to send you some tokens now. Link to the Google sheet: https://docs.google.com/spreadsheets/d/15YT8DALkufDAxiYzT9dx-eW-JALjZTt-9H9ZqtvLPm0/edit?usp=sharing

  1. Run the following commands on a Debian:stretch image
  2. sudo apt-get update
  3. sudo apt-get install -y apt-transport-https ca-certificates
  4. echo "deb [trusted=yes] http://packages.o1test.net unstable main" | sudo tee /etc/apt/sources.list.d/coda.list
  5. sudo apt-get update
  6. sudo apt-get install -y curl coda-testnet-postake-medium-curves=0.0.16-beta7+-develop-2847b2c --allow-downgrades
  7. `wget -O ~/daemon.json http

Note: If you haven't already added your qanet public address to our Google Sheet, please go ahead and add it using the link below. Only public addresses listed in this doc will receive public qanet tokens for testing. If you added your public address while a public qanet is running, you will have to wait until the next release to receive your tokens. Alternatively, you can ask the community members in the qa-task-force channel to send you some tokens now. Link to the Google sheet: https://docs.google.com/spreadsheets/d/15YT8DALkufDAxiYzT9dx-eW-JALjZTt-9H9ZqtvLPm0/edit?usp=sharing

If you ran a node before the hardfork:

  • run coda client stop-daemon (or docker exec -it mina coda client stop-daemon) to gracefully shut down your existing node
  • move any log files or keys (especially ~/.coda-config/coda.log and ~/.coda-config/wallet) to a new location for backup. Please send us your ~/.coda-config/mina-best-tip.log as well so that we can validate our chosen "best tip" for the new chain after the fork.
@lk86
lk86 / definitions.json
Created July 3, 2021 04:53
CryptoCheck definitions file
{
"version":4,
"names_fiat":["AUD","BGN","BRL","CAD","CHF","CNY","CZK","DKK","EUR","GBP","HKD","HRK","HUF","IDR","ILS","INR","JPY","KRW","MXN","MYR","NOK","NZD","PHP","PLN","RON","RUB","SEK","SGD","THB","TRY","USD","ZAR"],
"coins":{
"ALGO":{"name":"Algorand","id":"4030","color":"#ffffff","url":"https://algoexplorerapi.io/idx2/v2/accounts/{add}","timeout":5,"header":3,"ssl":1,"resp_type":"json","resp_struct":["account", "amount-without-pending-rewards"],"div":1e6},
"ZRX":{"name":"0x","id":"1896","color":"#ffffff","url":"https://api.etherscan.io/api?module=account&action=tokenbalance&contractaddress=0xe41d2489571d322189246dafa5ebde1f4699f498&address={add}&tag=latest&apikey=NA23E58FGS35PG5UV2IZI3DKGVWFSXW5GV","timeout":5,"ssl":1,"resp_type":"json","resp_struct":["result"],"div":1e18},
@lk86
lk86 / mina-log
Last active October 4, 2023 00:28
mina-log script for parsing journalctl output with mina-logproc
#!/bin/bash
case ${1} in
info|info-only)
FILTER='.level == "Info"';;
debug)
FILTER='.level in ["Debug", "Info", "Warn", "Error"]';;
debug-only)
FILTER='.level in ["Debug"]';;
spam)