Skip to content

Instantly share code, notes, and snippets.

View kaosf's full-sized avatar
🏠
Working from home

ka kaosf

🏠
Working from home
View GitHub Profile
# vim/vim tags/v8.0.1271 fb094e14c19337de824d4e6710ca6a2617930ab0
./configure \
--with-compiledby="myname <[email protected]>" \
--enable-gui=gtk2 \
--enable-perlinterp=yes \
--enable-pythoninterp=yes \
--enable-python3interp=yes \
--enable-rubyinterp \
--enable-luainterp=yes \
Messages maintainer: Bram Moolenaar <[email protected]>
[vim-hug-neovim-rpc] failed executing: pythonx import neovim
[vim-hug-neovim-rpc] Vim(pythonx):Traceback (most recent call last):
[deoplete] [vim-hug-neovim-rpc] requires `:pythonx import neovim` command to work
[deoplete] function deoplete#enable[1]..deoplete#initialize[1]..deoplete#init#_initialize[11]..deoplete#init#_cha
nnel[10]..yarp#core#notify[1]..yarp#core#wait_channel[5]..yarp#core#jobstart[2]..yarp#pyx#init[13]..yarp#core#ser
veraddr[1]..neovim_rpc#serveraddr, line 15
[deoplete] function deoplete#enable[1]..deoplete#initialize[1]..deoplete#init#_initialize[11]..deoplete#init#_channel[10]..yarp#core#notify[1]..yarp#core#wait_channel[5]..yarp#core#jobstart[2]..yarp#pyx#init[13]..yarp#core#serveraddr[1]..neovim_rpc#serveraddr, line 15

How to add my original keyboard shortcuts on Openbox on Arch Linux.

Backup at first and edit

~/.config/openbox/rc.xml

like following:

@kaosf
kaosf / rusti.sh
Last active August 8, 2017 13:22
set -x
# # Preparation
# sudo docker run -it quay.io/tatsuya6502/rusti
# cd ~/rusti
# cargo run
# # Ctrl+D to exit
# # Ctrl+P, Ctrl+Q to detach
CONTAINER_ID=$(sudo docker ps | grep 'quay.io/tatsuya6502/rusti' | head -1 | awk '{print $1}')
@kaosf
kaosf / aws-cli-docker-install.sh
Last active August 17, 2017 13:57
aws-cli with Docker (deprecated)
sudo pip uninstall awscli
pip install --user awscli
export PATH=$HOME/.local/bin:$PATH
# You don't have to use Docker now.
@kaosf
kaosf / remove-same-files.sh
Created June 12, 2017 13:30
Remove same files in /some/where directory.
mkdir workspace
cd workspace
mkdir src
mkdir dst
mv /some/where/* src
cd src
md5sum * > md5sum.txt
cat md5sum.txt | awk '{printf "%s %03d %s\n", $1, length, $0}' | sort -n | sort -u -k1,1 | cut -d " " -f 5- > left.txt
cat left.txt | xargs -i mv "{}" ../dst
rm -f *
@kaosf
kaosf / docker-aws-cli.sh
Last active August 17, 2017 13:58
Use the "aws" command of "aws-cli" with Docker container (deprecated)
sudo pip uninstall awscli
pip install --user awscli
export PATH=$HOME/.local/bin:$PATH
# You don't have to use Docker now.
@kaosf
kaosf / aws-cli-iam-note.sh
Last active March 18, 2017 11:51
Create a customer policy and a user, and then atach the policy to the user, and then create access key ID and secret access key to use only one S3 bucket.
# profile name "pn"
aws configure --profile pn
# Set access key id and secret access key of admin user
# Set default region (e.g. us-east-1)
# Set default format (e.g. json)
BUCKET_NAME=mybucketname
cat <<EOS > policydoc.json
{
yaourt -S visual-studio-code
$ code
Vimプラグインと,Go richなんたらプラグインをインストールして再起動
Alt+F > Preferences > User Settings > Go configuration
- {
- }