V2ray
bash <(curl -L -s https://install.direct/go.sh)
此脚本会自动安装以下文件:
/usr/bin/v2ray/v2ray:V2Ray 程序;
/usr/bin/v2ray/v2ctlV2Ray 工具;
/etc/v2ray/config.json:配置文件;
/usr/bin/v2ray/geoip.dat:IP 数据文件;
/usr/bin/v2ray/geosite.dat:域名数据文件;
chrome配置
- 添加SwitchyOmega
- switchyOmega -> Option -> new Profile ->
- 添加rule list url填入https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
- rule in list填写proxy, default 选择direct
- 在proxy中填写shadowsocks代理地址
下载 http://www.ubuntukylin.com/application/show.php?lang=cn&id=279
sudo dpkg -i fonts-wqy-microhei_0.2.0-beta-2_all.deb
sudo dpkg -i ttf-wqy-microhei_0.2.0-beta-2_all.deb
sudo dpkg -i wine-qqintl_0.1.3-2_i386.deb
//若报错
sudo apt-get -f install
sudo dpkg -i wine-qqintl_0.1.3-2_i386.deb
weixin
https://github.com/geeeeeeeeek/electronic-wechat/releases
ubuntu Pac 自动全局代理
https://github.com/JinnLynn/GenPAC
#安装
$ pip install genpac
# 或从github安装开发版本
$ pip install https://github.com/JinnLynn/genpac/archive/master.zip
# 更新
$ pip install --upgrade genpac
# 或从github更新开发版本
$ pip install --upgrade https://github.com/JinnLynn/genpac/archive/master.zip
# 卸载
$ pip uninstall genpac
# 生成pac文件
genpac --format=pac --pac-proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac
#System settings -> network -> network proxy -> method -> automatic -> input pac path
vim/ideaVim配置
set nu
set cursorline
set hlsearch
set ignorecase
set ruler
set smartindent
set autoindent
syntax on
set encoding=utf-8
set showmatch
set laststatus=2
set scrolloff=3
set tabstop=4
set expandtab
set ignorecase
set hlsearch
set cursorline
set relativenumber
set mouse=a
if &term == 'win32'
let &t_ti.=" \e[1 q"
let &t_SI.=" \e[5 q-- INSERT --"
let &t_EI.=" \e[1 q"
let &t_te.=" \e[0 q"
else
let &t_ti.="\e[1 q"
let &t_SI.="\e[5 q"
let &t_EI.="\e[1 q"
let &t_te.="\e[0 q"
endif
autocmd TextChanged,TextChangedI <buffer> silent write
if has("autocmd")
au VimEnter,InsertLeave * silent execute '!echo -ne "\e[1 q"' | redraw!
au InsertEnter,InsertChange *
\ if v:insertmode == 'i' |
\ silent execute '!echo -ne "\e[5 q"' | redraw! |
\ elseif v:insertmode == 'r' |
\ silent execute '!echo -ne "\e[3 q"' | redraw! |
\ endif
au VimLeave * silent execute '!echo -ne "\e[ q"' | redraw!
endif
let g:input_toggle = 1
function! Fcitx2en()
let s:input_status = system("fcitx-remote")
if s:input_status == 2
let g:input_toggle = 1
let l:a = system("fcitx-remote -c")
endif
endfunction
autocmd InsertLeave * call Fcitx2en()
markdown编辑器typora
sudo add-apt-repository 'deb https://typora.io linux/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
sudo apt-get update
sudo apt install typora
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp
sudo vim /usr/share/X11/xkb/keycodes/evdev
<LCTL> = 66
<CAPS> = 37
find+sed递归查找,替换
#不要在git仓库中运行以下命令,会损坏.git下的文件
find . -type f -print0 | xargs -0 sed -i "s/xxx/yyy/g" #递归替换
find . -type f -print0 | xargs -0 sed -i "/xxx/d" #递归删除行
find . -type f -print0 | xargs -0 sed -i "/xxx,yyy/d" #删除指定行到指定行
rsync -avP SOURCE DEST
git配置
#解决中文编译问题还需要添加系统环境变量LESSCHARSET = utf-8.
[alias]
st = status
co = checkout
ci = commit
br = branch
hist = log --date=format:'%Y-%m-%d %H:%M' --pretty=format:'%h %cd %an %d %s' --abbrev-commit
[core]
quotepath = off
autocrlf = input
[i18n]
commitencoding = utf-8
logoutputencoding = utf-8
[gui]
encoding = utf-8
ssh key 配置
生成key,请使用ed25519,rsa已经被禁用
ssh-keygen -t ed25519
ssh config
HOST github
HOSTNAME github.com
USER git
IDENTITYFILE ~/.ssh/github
Set up Ubuntu with android device
sudo usermod -aG plugdev $LOGNAME //添加当前用户到plugdev组
apt-get install android-sdk-platform-tools-common //添加udev rules