Skip to content

Instantly share code, notes, and snippets.

View yzf's full-sized avatar
🎯
Focusing

Jeff Yuan yzf

🎯
Focusing
  • Netease Games
  • GuangZhou, China
View GitHub Profile
@yzf
yzf / mysql.sh
Created May 29, 2018 01:54
install mysql 5.7
wget https://dev.mysql.com/get/mysql-apt-config_0.8.9-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server
@yzf
yzf / init_vim.sh
Created May 9, 2018 08:14
init vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cd ~/.vim
wget https://gist.githubusercontent.com/yzf/514edd69ce392efdf14751f4c10cba20/raw/0876e1db5edecf0b0434561d339996b9ef0a4506/plugins_config.vim
wget https://gist.githubusercontent.com/yzf/8829fc629385b7b8a8bbaf53950ac2db/raw/d6678937f20fede7db30e279f581465495b22b58/plugins.vim
cd ~
wget https://gist.githubusercontent.com/yzf/bc15e88d8fa87435435fea49fb373fa7/raw/a2e11e25e2cbb12cb3d2b9827deb59ef09bf2b0d/.vimrc
@yzf
yzf / jitsi.sh
Created May 8, 2018 09:13
install jitsi-meet in debian
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
sudo sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list"
sudo apt-get -y update
sudo apt-get -t jessie-backports -y install jitsi-meet
@yzf
yzf / ubuntu_18.04.sources.list
Created May 7, 2018 02:35
ubuntu 18.04 阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
@yzf
yzf / vim.md
Last active May 9, 2018 02:56
install vim
@yzf
yzf / plugins_config.vim
Created March 17, 2018 04:10
plugins_config.vim
" Automatically source the plugins_config.vim when it is saved
autocmd! bufwritepost plugins_config.vim source %
" Set mapleader
let mapleader = ","
" Auto-Pairs settings
autocmd FileType html,xml,php let g:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '"':'"', '`':'`', '<':'>'}
autocmd FileType tex let g:AutoPairs = {'(':')', '[':']', '{':'}', "`":"'"}
@yzf
yzf / plugins.vim
Last active May 9, 2018 08:10
plugins.vim
" Automatically source the plugins.vim when it is saved
autocmd! bufwritepost plugins.vim source %
call plug#begin('~/.vim/bundle/')
" Add plugins here
Plug 'flazz/vim-colorschemes'
Plug 'jiangmiao/auto-pairs'
"Plug 'zhaocai/GoldenView.Vim'
"Plug 'Xuyuanp/nerdtree-git-plugin'
@yzf
yzf / .vimrc
Last active May 9, 2018 08:10
vimrc
" Configuration file for vim
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugins "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Enable plugins
try
source ~/.vim/plugins.vim
source ~/.vim/plugins_config.vim
catch
endtry
@yzf
yzf / locale.sh
Last active May 8, 2018 07:16
locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
@yzf
yzf / debian_9_ali.list
Last active January 27, 2021 11:03
debian 9 阿里云源
deb http://mirrors.aliyun.com/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-proposed-updates main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-proposed-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib