Skip to content

Instantly share code, notes, and snippets.

View shengyou's full-sized avatar

Shengyou Fan shengyou

View GitHub Profile
@shengyou
shengyou / settings.json
Created August 26, 2016 08:59
我的 VS Code 設定
// Place your settings in this file to overwrite the default settings
{
// Editor
// Controls if the editor should automatically format the line after typing
"editor.formatOnType": true,
// Zoom the font of the editor when using mouse wheel and holding Ctrl
"editor.mouseWheelZoom": true,
# 更新套件清單
sudo apt update
# 升級套件
sudo apt upgrade
# 安裝套件
sudo apt install {package}
# 移除套件
@shengyou
shengyou / install.sh
Created December 15, 2017 16:43
install Linuxbrew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile
sudo brew install {package}
sudo apt update
sudo apt install firefox
curl https://s3-us-west-2.amazonaws.com/brave-apt/keys.asc | sudo apt-key add -
echo "deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt xenial main" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt install brave
sudo apt update
sudo apt install snapd
snap install brave
sudo apt install ./google-chrome-stable_current_amd64.deb