Skip to content

Instantly share code, notes, and snippets.

@arowser
arowser / configure_measure.sh
Created December 2, 2015 07:54 — forked from laanwj/configure_measure.sh
Measure during compile process
./configure --disable-ccache --with-gui=qt5 --with-incompatible-bdb CC="$PWD/../devtools/mtime.sh gcc" CXX="$PWD/../devtools/mtime.sh g++" CPP="$PWD/../devtools/mtime.sh cpp"
@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"]
@arowser
arowser / weixin
Last active August 29, 2015 14:20
http://www.oschina.net/project/tag/418/weixin?lang=0&os=0&sort=view&p=2
http://www.weixinjia.net/
http://www.gexia.com
http://wecool.socialmedia.cn/client/system/login
http://www.weixinguanjia.com/chanpin/taocan.html
www.weimob.com/
weixin.tonmin.com/

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"