Skip to content

Instantly share code, notes, and snippets.

View estsaon's full-sized avatar

Yancheng Zhuang estsaon

View GitHub Profile
@estsaon
estsaon / api_forex_exchange.json
Created August 20, 2023 15:43
api_forex_exchange.json
{
"rates":{"CAD":1.31,"HKD":7.82,"ISK":121.32,"PHP":50.76,"DKK":6.73,"GBP":0.76,"JPY":108.56,"CHF":0.98,"EUR":0.90,"NZD":1.52,"USD":1.0,"SGD":1.35,"AUD":1.45},
"base":"USD",
"date":"2021-01-01"
}
@estsaon
estsaon / MEM_DP.txt
Last active April 8, 2021 11:17
MEM_DP likwid group file for HaswellEP
SHORT Overview of arithmetic and main memory performance
EVENTSET
FIXC0 INSTR_RETIRED_ANY
FIXC1 CPU_CLK_UNHALTED_CORE
FIXC2 CPU_CLK_UNHALTED_REF
PMC0 AVX_INSTS_CALC
MBOX0C0 CAS_COUNT_RD
MBOX0C1 CAS_COUNT_WR
MBOX1C0 CAS_COUNT_RD
@estsaon
estsaon / MEM_SP.txt
Last active April 8, 2021 11:18
MEM_SP likwid group file for HaswellEP
SHORT Overview of arithmetic and main memory performance
EVENTSET
FIXC0 INSTR_RETIRED_ANY
FIXC1 CPU_CLK_UNHALTED_CORE
FIXC2 CPU_CLK_UNHALTED_REF
PMC0 AVX_INSTS_CALC
MBOX0C0 CAS_COUNT_RD
MBOX0C1 CAS_COUNT_WR
MBOX1C0 CAS_COUNT_RD
@estsaon
estsaon / wsl-port-forwarding.md
Last active April 29, 2024 08:21
How to SSH into WSL2 on an external Window

WSL:

  1. Install openssh-server:
sudo apt install openssh-server
  1. Add or uncomment following lines in /etc/ssh/sshd_config:
@estsaon
estsaon / rmarkdown-installation.md
Last active March 16, 2021 21:55
How to install R Markdown and render PDF files in Linux
  1. Install necessary packages for R Markdown:
sudo apt install r-base
sudo apt install texlive-latex-base
sudo apt install texlive-latex-extra
sudo apt install texlive-extra-utils
sudo apt install texlive-fonts-extra
sudo apt install pandoc