最喜欢的五笔输入法极点五笔终于出Linux版本了
下载地址:http://210.22.22.150:1278/freewb_0.1.3_amd64.deb
安装Fcitx输入法apt install fcitx-bin
首先说明一下极点五笔官方使用的是Fcitx输入法系统
可以选择将Ubuntu系统自带的IBUS输入法删除
apt remove ibus 或者 apt purge ibus
安装极点五笔dpkg -i freewb.deb
配置操作:注意fcitx配置默认键盘-英语然后才是极点五笔,否则配置后无法输入字母
如果没有中文语言支持还得在语言支持中安装中文
输入法配置
在Window 操作Linux 最好的终端工具putty及psftp:
C:\Users\Downloads>psftp -P 22
psftp: no hostname specified; use "open host.name" to connect
psftp> open 46.29.*.*
login as: root
root@46.29.*.*'s password:
Remote working directory is /root
psftp> put -r D:/*.py
local:D:/*.py => remote:/root/*.py
psftp> exit
传递D盘下*.py文件到linux主用户目录
在Window下使用python多线程出现以下问题
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
解决办法:
from multiprocessing imoprt Pool
if __name__ == '__main__':
with Pool(processes=4) as pool:
df_list = pool.map(backtest, sorted(roi_list))
VIM及插件安装https://github.com/paldepind/vim-python-ide#bash
sudo apt-get remove vim-tiny
sudo apt-get install vim
# 调试插件
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ipdb
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple neovim
安装文件setup.sh
#!/usr/bin/env bash
wrapper() {
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[0;33m"
BLUE="\033[0;36m"
NORMAL="\033[0m"
REPO_HTTPS="https://github.com/jarolrod/vim-python-ide.git"
VUNDLE_HTTPS="https://github.com/VundleVim/Vundle.vim.git"
echo "${BLUE}"
cat << "HELLO_TEXT"
..
.::::.
___________ :;;;;:`____________
\_________/ ?????L \__________/
|.....| ????????> :.......'
|:::::| $$$$$$"`.:::::::' ,
,|:::::| $$$$"`.:::::::' .OOS.
,7D|;;;;;| $$"`.;;;;;;;' .OOO888S.
.GDDD|;;;;;| ?`.;;;;;;;' .OO8DDDDDNNS.
'DDO|IIIII| .7IIIII7' .DDDDDDDDNNNF`
'D|IIIIII7IIIII7' .DDDDDDDDNNNF`
|EEEEEEEEEE7' .DDDDDDDNNNNF`
|EEEEEEEEZ' .DDDDDDDDNNNF`
|888888Z' .DDDDDDDDNNNF`
|8888Z' ,DDDDDDDNNNNF`
|88Z' "DNNNNNNN"
'"' "MMMM"
""
___ ____ __ _ _ ________ ___
/ | / / / __ ______ __ __ ____ ___ ___ ____/ / (_)____ | | / / _/ |/ /
/ /| | / / / / / / / __ \/ / / / / __ \/ _ \/ _ \/ __ / / / ___/ | | / // // /|_/ /
/ ___ |/ / / / /_/ / /_/ / /_/ / / / / / __/ __/ /_/ / / (__ ) | |/ // // / / /
/_/ |_/_/_/ \__, /\____/\__,_/ /_/ /_/\___/\___/\__,_/ /_/____/ |___/___/_/ /_/
/_/
HELLO_TEXT
echo "${NORMAL}"
if [ ! -n "$VIM" ]; then
VIM=~/.vim
fi
if [ -d "$VIM" ]; then
printf "${YELLOW}%s${NORMAL}\n" "You already have $VIM directory."
printf "${YELLOW}%s${NORMAL}\n" "You have to remove $VIM if you want to re-install."
exit 0
fi
# Prevent the cloned repository from having insecure permissions. Failing to do
# so causes compinit() calls to fail with "command not found: compdef" errors
# for users with insecure umasks (e.g., "002", allowing group writability). Note
# that this will be ignored under Cygwin by default, as Windows ACLs take
# precedence over umasks except for filesystems mounted with option "noacl".
umask g-w,o-w
printf "${BLUE}%s${NORMAL}\n" "Cloning vimrc from ${REPO_HTTPS}"
hash git >/dev/null 2>&1 || {
printf "${RED}%s${NORMAL}\n" "Error: git is not installed."
exit 1
}
env git clone --depth=1 $REPO_HTTPS $VIM || {
printf "${RED}%s${NORMAL}\n" "Error: git clone of vimrc repo failed."
exit 1
}
printf "${BLUE}%s${NORMAL}\n" "Looking for an existing vim config..."
if [ -f ~/.vimrc ] || [ -h ~/.vimrc ]; then
printf "${YELLOW}%s${NORMAL}\n" "Found ~/.vimrc."
printf "${BLUE}%s${NORMAL}\n" "You will see your old ~/.vimrc as $VIM/vimrc.bak"
mv ~/.vimrc $VIM/vimrc.bak
fi
printf "${BLUE}%s${NORMAL}\n" "Symlinking $VIM/vimrc with ~/.vimrc..."
ln -fs $VIM/vimrc ~/.vimrc
if [ ! -d "$VIM/bundle/Vundle.vim" ]; then
printf "${BLUE}%s${NORMAL}\n" "Installing Vundle..."
env git clone --depth=1 $VUNDLE_HTTPS "$VIM/bundle/Vundle.vim"
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
fi
if [ ! -f $VIM/colors/wombat256mod.vim ]; then
if [ ! -d $VIM/colors/ ]; then
mkdir -p $VIM/colors
fi
wget 'http://www.vim.org/scripts/download_script.php?src_id=13400' -O $VIM/colors/wombat256mod.vim
fi
printf "${GREEN}%s${NORMAL}\n" "Vimrc has been configured ;)"
printf "${YELLOW}%s${NORMAL}\n" "Do not worry about error messages. When it occurs just press enter and wait till all plugins are installed."
printf "${BLUE}%s${NORMAL}\n" "Keep calm and use VIM!"
}
wrapper
vim +PluginInstall
配置文件(~/.vimrc)
" 关闭 vi 兼容模式
set nocompatible " required
filetype off " required
" 允许在有未保存的修改时切换缓冲区,此时的修改由 vim 负责保存
set hidden
set showtabline=0
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim' " Vundle Plugin Manager
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
"