Skip to content

Instantly share code, notes, and snippets.

PENG WANG pwang2

  • William Blair, LLC
  • Chicago, IL
Block or report user

Report or block pwang2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View startvnc.sh
set -xe
PID="$(lsof -ti:5901 | paste -sd' ' | awk '{print $0}')"
if [ ! -z "$PID" ]; then
echo "$PID"
kill -9 $PID
fi
ssh -fN -p 2930 -L 5901:localhost:5901 pwang2@65.52.0.118
/usr/bin/xtigervncviewer -SecurityTypes None :1
View wx.desktop
[Desktop Entry]
Exec=bash -c "PID=$(lsof -ti:5901) && [ ! -z $PID ] && kill -9 $PID; ssh -fN -p 2930 -L 5901:localhost:5901 pwang2@65.52.0.118 && /usr/bin/xtigervncviewer -SecurityTypes None :1"
Name=wx
GenericName=Wechat on VNC
Icon=terminal
Terminal=false
Type=Application
Categories=Utilities;Application;
View .zshrc
TERM="xterm-256color"
ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
BREW="$HOME/.linuxbrew"
PATHS=(
$HOME/bin
$HOME/go/bin
$HOME/.yarn/bin
$HOME/.local/bin
View .Xresources
xterm*termName: xterm-256color
URxvt.keysym.C-t: command:\033]11;[85]#262626\007
URxvt.keysym.C-u: command:\033]11;#262626\007
URxvt*font :xft:Inconsolata:size=12
URxvt*loginShell:true
URxvt.iso14755: false
URxvt.iso14755_52: false
View init.sh
if [ $UID -eq 0 ]; then
echo "*****************************************************"
echo "$(tput setaf 1)DO NOT RUN AS sudo $(tput sgr 0)"
echo "*****************************************************"
exit 1
fi
ZPLUGINS=$HOME/.oh-my-zsh/custom/plugins
BREW=$HOME/.linuxbrew
DISTRO=$(cat /etc/os-release | grep -oP '(?<=^NAME=")(.*)(?=")')
View .tmux.conf
setw -g base-index 1
setw -g pane-base-index 1
setw -g mode-keys vi
setw -g aggressive-resize on
set -g escape-time 0
set -g default-terminal "screen-256color"
set -g prefix C-a
set -g status-position top
set -g status off
View init.vim
set title
set hidden "required by ctrlspace
set nowrap
set splitright
set expandtab
set splitbelow
set background =light
set mouse =a
set signcolumn =no
set clipboard =unnamedplus
View Jenkinsfile
properties([[
$class: 'BuildDiscarderProperty',
strategy: ['$class': 'LogRotator', numToKeepStr: '5']
]])
def IS_RELEASE = env.BRANCH_NAME == 'master'
def IS_PR = env.JOB_BASE_NAME ==~ /PR\-\d+/
def BUILD_CI_BASE = ''
def SONAR_SCANNER = ''
View bigairports.json
[
"ATL",
"PEK",
"DXB",
"LAX",
"HND",
"ORD",
"LHR",
"HKG",
"PVG",
View routes.csv
We can't make this file beautiful and searchable because it's too large.
airline,airlineid,sourceairport,sourceairportid,destairport,destairportid,codeshare,stop,equipment
2B,410,AER,2965,KZN,2990,,0,CR2
2B,410,ASF,2966,KZN,2990,,0,CR2
2B,410,ASF,2966,MRV,2962,,0,CR2
2B,410,CEK,2968,KZN,2990,,0,CR2
2B,410,CEK,2968,OVB,4078,,0,CR2
2B,410,DME,4029,KZN,2990,,0,CR2
2B,410,DME,4029,NBC,6969,,0,CR2
2B,410,DME,4029,TGK,\N,,0,CR2
You can’t perform that action at this time.