Skip to content

Instantly share code, notes, and snippets.

health#deoplete#check
========================================================================
## deoplete.nvim
- OK: has("nvim") was successful
- OK: exists("v:t_list") was successful
- OK: has("python3") was successful
- INFO: If you're still having problems, try the following commands:
$ export NVIM_PYTHON_LOG_FILE=/tmp/log
$ export NVIM_PYTHON_LOG_LEVEL=DEBUG
@atton
atton / .zshrc
Last active December 10, 2017 07:44
.zshrc sample and output example for https://attonblog.blogspot.jp/2017/12/centos7-cuda-9.html
CUDA_ROOT_DIR="/usr/local/cuda"
export CUDA_ROOT_DIR
PATH="$PATH:${CUDA_ROOT_DIR}/bin"
export PATH
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CUDA_ROOT_DIR}/lib64/"
export LD_LIBRARY_PATH
result = Amazon::Ecs.send_request({response_group: 'Images,ItemAttributes,Large',
operation: 'ItemSearch',
browse_node: '2293143051',
minimum_price: 0,
maximum_price: 0,
search_index: 'Books'
marketplace: 'jp'})
# return items
@atton
atton / .gitconfig
Created November 26, 2017 00:17
Show warning message if you have merge lines using git-hooks(pre-commit). Details: https://attonblog.blogspot.jp/2017/11/git-pre-commit-hook.html
[core]
hooksPath = ~/.config/git/hooks
00 03 03 * * /bin/systemctl stop nginx; /usr/bin/letsencrypt renew; /bin/systemctl start nginx
@atton
atton / config
Created November 13, 2017 09:11
~/.ssh/config for Amazon EC2
host ec2
user ubuntu
hostname 1.2.3.4
identityfile ~/.ssh/id_hoge
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then
GIT_AUTHOR_NAME="atton";
GIT_AUTHOR_EMAIL="[email protected]";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
@atton
atton / ifcfg-bond0.111
Last active October 23, 2017 04:56
CentOS7 VLAN configurations
DEVICE=bond0.111
BOOTPROTO=none
ONBOOT=yes
VLAN=yes
BRIDGE=br111
@atton
atton / ifcfg-bond0
Created October 23, 2017 04:41
CentOS 7 bonding configurations
DEVICE=bond0
BOOTPROTO=none
TYPE=Bond
ONBOOT=yes
BONDING_OPTS="mode=4 miimon=100 lacp_rate=1 xmit_hash_policy=layer2+3"
* hard core unlimited
* soft core unlimited