Skip to content

Instantly share code, notes, and snippets.

@arowser
arowser / 0_reuse_code.js
Created November 13, 2015 06:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@arowser
arowser / Dockerfile
Last active August 29, 2015 14:27 — forked from andychase/Dockerfile
Faking XT Nodes for fun
# Use the Ubuntu Linux distro as the base for this image
FROM ubuntu
# Install necessary build tools
RUN apt-get update && apt-get upgrade --yes && apt-get install build-essential clang git --yes
# Download and install PseudoNode
RUN cd /root && git clone https://github.com/basil00/PseudoNode.git && cd ./PseudoNode && make
# These two commands enable port 8333 to be routed and start the node by default
EXPOSE 8333
CMD ["bash", "-c", "cd /root/PseudoNode && ./pseudonode --stealth --coin=bitcoin-xt"]

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
grep 'BOOST_AUTO_TEST_SUITE(' * -RI | sed -e "s|^.*(\(.*\)).*$|./test_bitcoin --run_test=\1|"
./test_bitcoin --run_test=accounting_tests
./test_bitcoin --run_test=allocator_tests
./test_bitcoin --run_test=base32_tests
./test_bitcoin --run_test=base58_tests
./test_bitcoin --run_test=base64_tests
./test_bitcoin --run_test=bignum_tests
./test_bitcoin --run_test=bip32_tests
./test_bitcoin --run_test=bloom_tests
@arowser
arowser / sysctl.conf
Last active August 29, 2015 14:10 — forked from chenshaoju/sysctl.conf
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additonal system variables
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"></meta>
<title>Graphite Flot Example</title>
<style type="text/css">
#graphite {
width: 300px;
height: 200px;
font-size: 14px;
@arowser
arowser / nginx.conf
Last active August 29, 2015 14:08 — forked from oroce/nginx.conf
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
sendfile on;
@arowser
arowser / bitdump.sh
Last active August 29, 2015 14:07 — forked from altamic/bitdump.sh
#!/usr/bin/env sh
# bitdump.sh
#
# captures Bitcoin network traffic
SELF=`basename $0`
if [[ $1 = "" ]]; then
DEFAULT="en1"
$ grep -E '^\|' printblocktree.txt
|\
| 90392 (1,40027978) 00000000000ec87057d8 11/8/2010 06:59:03 tx 1
|
|\
| 90676 (1,40261655) 00000000001476bf9bf0 11/9/2010 07:40:40 tx 1
|
|\
| 90858 (1,40369940) 00000000000e21466cd5 11/10/2010 07:41:04 tx 1
|
var map,heatmap;
var taxiData = new Array();
var gradient = [
'rgba(0, 255, 255, 0)','rgba(0, 255, 255, 1)',
'rgba(0, 191, 255, 1)','rgba(0, 127, 255, 1)',
'rgba(0, 63, 255, 1)','rgba(0, 0, 255, 1)',
'rgba(0, 0, 223, 1)','rgba(0, 0, 191, 1)',
'rgba(0, 0, 159, 1)','rgba(0, 0, 127, 1)',
'rgba(63, 0, 91, 1)','rgba(127, 0, 63, 1)',
'rgba(191, 0, 31, 1)','rgba(255, 0, 0, 1)'