Skip to content

Instantly share code, notes, and snippets.

View Shengliang's full-sized avatar

Shengliang Song Shengliang

  • ByteDance
  • Fremont, CA
View GitHub Profile
http://askubuntu.com/questions/647409/to-install-wipefs-in-ubuntu
sudo apt-get install util-linux
sudo apt-get install apt-file
sudo apt-file update
apt-file search wipefs
which wipefs
How to install cortex-m3 gdb?
sudo apt-get -o Dpkg::Options::="--force-overwrite" install gdb-arm-none-eabi
reference: http://askubuntu.com/questions/596302/e-sub-process-usr-bin-dpkg-returned-an-error-code-1-problem-with-dpkg
# ref: https://git-scm.com/book/en/v2/Git-Tools-Submodules
# export GITCLONEOPTIONS="--depth 1"
# git clone url
# git clone --recursive url
# git config --global diff.submodule log
# Pulling in Upstream Changes
# git fetch
# git merge origin/master
Reference:http://www.informit.com/articles/article.aspx?p=1374896&seqNum=7
An = 2/(n*pi)
where:
An = the amplitude of the nth harmonic
pi = the constant, 3.14159...
n = the harmonic number, only odd allowed
https://www.artofproblemsolving.com/wiki/index.php?title=AMC_8_Problems_and_Solutions
sudo apt-get update
sudo apt-get install openssh-server
sudo ufw allow 22
http://askubuntu.com/questions/51925/how-do-i-configure-a-new-ubuntu-installation-to-accept-ssh-connections
http://www.robobunny.com/projects/asciiquarium/html/
cd /tmp/
sudo apt-get install libcurses-perl
wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
tar -zxvf Term-Animation-2.4.tar.gz
cd Term-Animation-2.4/
perl Makefile.PL && make && make test
sudo make install
cd /tmp
Ref: https://arxiv.org/pdf/1309.4507.pdf
Sempahore(n)
Decrement opeartion => wait
Increment operatorn => signal
mutex = sempaphore(1)
Classical Solution
init:
@Shengliang
Shengliang / intel_spdk.md
Last active July 2, 2016 17:21
Intel Storage Performance Development Kit: SPDK subcomponents