Skip to content

Instantly share code, notes, and snippets.

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
alias proxy="export ALL_PROXY=socks5://127.0.0.1:1080"
alias unproxy="unset ALL_PROXY"
alias ip="curl -i http://ip.cn"
@jerry-sl
jerry-sl / System Design.md
Created March 5, 2019 16:50 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
#!/bin/bash
while true; do
pid=`ps -ef |grep binary_name |grep -v grep |awk '{print $2}'`
if [ -n "$pid" ]; then
kill -15 $pid
echo "The process is exiting, it may take some time, forcing the exit may cause damage to the database, please wait patiently..."
sleep 1
else
echo "binary_name process killed successfully!"
break

Linking my account jerry-sl on GitHub with my address 5CRtUCqUz2AYx8yp9K4jhHi66sTEVWPtq8TnF7MjCG5A69hc on Substrate in mycryptoprofile.io, and the challenge code is: cc3f0380fc9dc3fcacaecd06d1b2db78. #LitentryVerifyMyAddress