Skip to content

Instantly share code, notes, and snippets.

@gojun077
gojun077 / verify.txt
Created November 1, 2018 09:14
cosmos GoS verification
Verify myself: c617e10ee47b486599a85e04091d3406
http://contribute.cosmos.network #
@gojun077
gojun077 / geth.log
Created September 3, 2018 06:44
geth log: transactions disappearing due to "out of gas"
INFO [08-28|08:30:14] Submitted transaction fullhash=0x4e01d3db3bb2a8bd23fa558063cb1fb32d6c8979c1718b7c593cda5550440611 recipient=0x255Aa6DF07540Cb5d3d297f0D0D4D84cb52bc8e6
DEBUG[08-28|08:30:14] Executing EVM call finished runtime=405.508µs
DEBUG[08-28|08:30:15] Peer discarded announcement peer=13d2f19e7b34d21c number=6227831 hash=0121c7…370b76 distance=6930
DEBUG[08-28|08:30:15] VM returned with error err="out of gas"
DEBUG[08-28|08:30:15] Trie cache stats after commit misses=0 unloads=0
DEBUG[08-28|08:30:15] Dereferenced trie from memory database nodes=756 size=356.64kB time=3.289438ms gcnodes=152651 gcsize=66.36mB gctime=413.066404ms livenodes=372497 livesize=129.35mB
DEBUG[08-28|08:30:15] Inserted new block number=6220902 hash=9463fc…f0f756 uncles=1 txs=131 gas=7975660 elapsed=2.780s
INFO [08-28|08:30:15] Submitted transaction fullhash=0x01a36c165e3663fc70a33d628c4d3e2680e35987cc4fc5f38d0
@gojun077
gojun077 / snippet from addrbook.json
Created August 17, 2018 10:12
a small snippet from addrbook.json
{u'addr': {u'id': u'43f142b93c6a767b7cad498f9dd14bb0fdcfd15c',
u'ip': u'172.104.177.155',
u'port': 26656},
u'attempts': 2,
u'bucket_type': 1,
u'buckets': [153, 174, 4, 73],
u'last_attempt': u'2018-08-16T12:25:26.089683718Z',
u'last_success': u'0001-01-01T00:00:00Z',
u'src': {u'id': u'7c3af8508d5964fc225c7027c0b44a630ed7676e',
u'ip': u'35.203.36.48',
[Unit]
Description=gaiad service for COSMOS/Tendermint BFT network
After=network.target
[Service]
Type=simple
User=ec2-user
Group=ec2-user
WorkingDirectory=/home/ec2-user/.gaiad
ExecStart=/home/ec2-user/goproj/bin/gaiad start
@gojun077
gojun077 / gist:4dca22ec9a5b90e20aef439e63714632
Created March 28, 2017 10:00
link to old 6.00.1x course
https://courses.edx.org/courses/course-v1:MITx+6.00.1x_11+1T2017/info
@gojun077
gojun077 / xorg.conf.nvidia
Created December 1, 2016 05:30
/etc/bumblebee/xorg.conf.nvidia X11 config for Nvidia card
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "true"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
@gojun077
gojun077 / 4node-packstack-mitaka.cfg
Created November 25, 2016 09:45
Packstack file for 4 node Mitaka install using flat networking for management and external networks
[general]
# Path to a public key to install on servers. If a usable key has not
# been installed on the remote servers, the user is prompted for a
# password and this key is installed so the password will not be
# required again.
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
# Default password to be used everywhere (overridden by passwords set
# for individual services or users).
@gojun077
gojun077 / rescuetime_core_dump_log.txt
Created November 14, 2016 04:38
crashes in rescuetime executable for Linux from Dec 2015 ~ Nov 2016
[archjun@pinkS310 bin]$ journalctl --no-pager | grep -iE "rescuetime" | grep -viE "bash"
Nov 24 11:55:40 pinkS310 sudo[3715]: archjun : TTY=pts/3 ; PWD=/home/archjun/Downloads/AUR/rescuetime ; USER=root ; COMMAND=/usr/bin/pacman -S --asdeps xorg-xprop xprintidle
Nov 24 13:13:47 pinkS310 sudo[5743]: archjun : TTY=pts/3 ; PWD=/home/archjun/Downloads/AUR/rescuetime ; USER=root ; COMMAND=/usr/bin/pacman -S --asdeps xorg-xprop
Nov 24 13:14:05 pinkS310 sudo[5948]: archjun : TTY=pts/3 ; PWD=/home/archjun/Downloads/AUR/rescuetime ; USER=root ; COMMAND=/usr/bin/pacman -U rescuetime-2.8.9.1185-1-x86_64.pkg.tar.xz
Dec 13 23:12:15 pinkS310 systemd-coredump[28930]: Process 7595 (rescuetime) of user 1000 dumped core.
#6 0x000000000057f005 n/a (rescuetime)
#16 0x000000000050cce0 n/a (rescuetime)
#17 0x00000000004b6bce n/a (rescuetime)
@gojun077
gojun077 / npm-downloader.sh
Created October 29, 2016 00:46
Bash script for installing npm packages specified in file
# npm-downloader.sh
# Jun Go gojun077@gmail.com
# Last Updated: 2016-10-24
# This script downloads a list of all nodejs packages from npm,
# parses the list so that just package names remain, and then
# invokes 'npm install <pkg name>' in local installation mode
# This script is intended to be run together with a working
# instance of Sinopia npm cache. To make npm use Sinopia,
@gojun077
gojun077 / default-ceilometer-pipeline.yaml
Created September 29, 2016 16:56
pipeline.yaml with default values from Openstack Mitaka
sources:
- name: meter_source
interval: 600
meters:
- "*"
sinks:
- meter_sink
- name: cpu_source
interval: 600
meters: