Skip to content

Instantly share code, notes, and snippets.

View jimmysitu's full-sized avatar

Jimmy Situ jimmysitu

  • ZHAOXIN, JMST
  • 1KHujLT4AzQwQKSLEUSbcergqv7fMnQNXA
View GitHub Profile
# Install bitcoind
## build bitcoind
mkdir -p ~/source; cd ~/source
wget https://github.com/bitcoin/bitcoin/archive/v0.9.2.tar.gz
tar zxvf v0.9.2; cd bitcoin-0.9.2
## open-nodes.org_hub-v0.9.2.patch
wget https://gist.githubusercontent.com/bitkevin/a1b4a556fffce6fc527a/raw/ -O open-nodes.org_hub-v0.9.2.patch
patch -p1 < open-nodes.org_hub-v0.9.2.patch
// http
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
// socks5
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
@jimmysitu
jimmysitu / PrimaryStyling.CSS
Last active February 11, 2017 03:37
Markdown Here Options
.markdown-here-wrapper {
font-size: 16px;
line-height: 1.8em;
letter-spacing: 0.1em;
}
pre, code {
font-size: 14px;
font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;
#!/bin/sh
set -e
write_to () {
echo $2 | sudo tee $1 > /dev/null
}
set_rate () {
c=fclk$1
@jimmysitu
jimmysitu / morningstar.com API.md
Last active November 5, 2023 09:54
morningstar.com API

morningstar.com API

  • Get key ratio, return csv format file
http://financials.morningstar.com/ajax/exportKR2CSV.html?t=<market>:<stock>

Market

  • XHKG: Hong Kong Stock Exchange
  • XASE: American Stock Exchange
  • XNAS: Nasdaq Stock Exchange >* XNYS: New York Stock Exchange
@jimmysitu
jimmysitu / switch.sh
Created January 5, 2019 15:12
gem5 workload
#!/bin/bash -
/sbin/m5 switchcpu
timeout 1 yes > /dev/null
sleep 1
timeout 1 yes > /dev/null
sleep 1
/sbin/m5 switchcpu
@jimmysitu
jimmysitu / vsplit.pl
Created November 11, 2019 13:27
Split verilog modules with their module name as file name
#!/usr/bin/perl -w
use Verilog::EditFiles;
use Getopt::Long qw( :config posix_default bundling no_ignore_case );
my $outdir = '';
my $infile = '';
GetOptions ('o=s' => \$outdir, 'i=s' => \$infile);
my $split = Verilog::EditFiles->new(
outdir => $outdir,
@jimmysitu
jimmysitu / base.user.css
Last active May 7, 2020 01:14
Auto Numbering for Headings in Typora
/** initialize css counter */
#write {
counter-reset: h1
}
h1 {
counter-reset: h2
}
h2 {