This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################################################ | |
| # File: SSH client configuration | |
| # Author: Matt Ward | |
| ################################################################################ | |
| Host wopr | |
| HostName wopr.example.com | |
| IdentityFile ~/.ssh/id_wopr | |
| User mward |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Disable vim automatic visual mode on mouse select | |
| issue: :set mouse-=a | |
| add to ~/.vimrc: set mouse-=a | |
| my ~/.vimrc for preserving global defaults and only changing one option: | |
| source $VIMRUNTIME/defaults.vim | |
| set mouse-=a |
I recommend fcitx-mozc for Japanese Input Method in Arch or Angergos, and I'm also using it. I think fcitx-mozc is better than ibus-mozc for some reasons. First one is that there are official binary package of fcitx-mozc, but ibus-mozc is only in AUR. Secondly, fcitx is more configurable than ibus.
Please see https://wiki.archlinux.org/index.php/Fcitx for way of installing and configuring fcitx.
After that, you can configure alternative keybind of "Zenkaku-Hankaku."
Since I'm using US keyboard, I set C-\ (Control + \) for Zenkaku-Hankaku key. The option is at
"Configure" (at fcitx's menu, appears after right-clicking fcitx icon or run `fcitx-configtool` on terminal) > "Global Config" > "Trigger Input Method."
You can switch on or off to use input method with key on that config, or switch between all of installed input methods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is the ssh client system-wide configuration file. See | |
| # ssh_config(5) for more information. This file provides defaults for | |
| # users, and the values can be changed in per-user configuration files | |
| # or on the command line. | |
| # Configuration data is parsed as follows: | |
| # 1. command line options | |
| # 2. user-specific file | |
| # 3. system-wide file | |
| # Any configuration value is only changed the first time it is set. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| IPT="/sbin/iptables" | |
| # Server IP | |
| SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
| # Your DNS servers you use: cat /etc/resolv.conf | |
| DNS_SERVER="8.8.4.4 8.8.8.8" | |
| # Allow connections to this package servers |