Skip to content

Instantly share code, notes, and snippets.

@hydrogen18
hydrogen18 / creating_a_validator.md
Created December 8, 2020 19:20
creating a validator

To make a node a validator in Akash do the following

  1. Initialize a new node
  2. Copy over the genesis file for the new network
  3. Create a new key, name it myvalidator
  4. Tranfser 100000uakt to the new key
  5. Figure out your validator address by running
akash --home $AKASH_HOME tendermint show-validator
This file has been truncated, but you can view the full file.
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: {:357
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: Arg: org.jruby.runtime.ThreadContext
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: {:404
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: Arg: org.jruby.runtime.ThreadContext
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: Arg: false
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: {:404
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: Arg: org.jruby.runtime.ThreadContext
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: Arg: false
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: Return: class org.jruby.runtime.ThreadContext
[09:25:27.541]:[52]:java.lang.ClassLoader:loadClass: }:435
/home/ericu/.rvm/rubies/ruby-2.3.0/bin/ruby -I/home/ericu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.4/lib:/home/ericu/.rvm/gems/ruby-2.3.0/gems/rspec-support-3.5.0/lib /home/ericu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 8820
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Top 10 slowest examples (0.69994 secon
import urllib2
import urllib
from bs4 import BeautifulSoup
from io import open
import sys
response = urllib.urlopen("http://wiiubrew.org/wiki/Hardware/OTP")
soup = BeautifulSoup(response.read())
@hydrogen18
hydrogen18 / randomize_info_hash.py
Last active August 29, 2015 14:11
Randomize the info hash of a torrent
#!/usr/bin/env python2
import bencode
import sys
import random
import hashlib
if len(sys.argv) != 3 :
sys.stderr.write(u'Usage: randomize_info_hash.py <torrent_file> <new_announce_url>\n')
sys.exit(1)
// gocraft_issue_35.go
package main
import "github.com/gocraft/web"
import "net/http"
import "fmt"
import "io"
type Context struct {
}
#!/usr/bin/python
# rtorrent_xmlrpc
# (c) 2011 Roger Que <alerante@bellsouth.net>
#
# Python module for interacting with rtorrent's XML-RPC interface
# directly over SCGI, instead of through an HTTP server intermediary.
# Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the
# built-in xmlrpclib classes so that it is compatible with features
# such as MultiCall objects.
@hydrogen18
hydrogen18 / dl30c3.py
Created December 30, 2013 18:33
Python script to download 30c3 audio & video files
from HTMLParser import HTMLParser
import urllib2
import subprocess
import re
import os
SAVE_DIR = os.path.expanduser("~/30c3")