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
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] |
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
# workspace | |
# ------------------------- | |
# To maximize none-editor paneItem e.g. setting-view | |
'atom-workspace:not(.editor)': | |
# conflicts insert-mode ctrl-w and ctr-w in mini editor, so comment out by default | |
# 'ctrl-w z': 'vim-mode-plus:maximize-pane' | |
'cmd-enter': 'vim-mode-plus:maximize-pane' | |
# all | |
# ------------------------- |
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
[ | |
{ | |
"keys": ["j"], | |
"command": "move", | |
"args": { | |
"by": "characters", | |
"forward": false | |
}, | |
"context": [{ | |
"key": "vi_mode_normal" |
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
unmap h | |
unmap j | |
unmap k | |
unmap l | |
map j scrollLeft | |
map k scrollDown | |
map l scrollUp | |
map ; scrollRight |
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
exec_always xmodmap -e "clear lock" #disable caps lock switch | |
exec_always xmodmap -e "keysym Caps_Lock = Escape" #set caps_lock as escape |
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
Host github.com | |
HostName github.com | |
User git | |
IdentityFile ~/.ssh/github_rsa | |
AddKeysToAgent yes |
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
function man() | |
{ | |
OUTPUT="`tldr $1 2>&1`" | |
if [ $? -eq 0 ]; then | |
echo $OUTPUT | |
else | |
/usr/bin/man $1 | |
fi | |
} |
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
Vagrant.configure("2") do |config| | |
(1..2).each do |n| | |
config.vm.define "server#{n}" do |define| | |
define.vm.box = "consumerlab/ubuntu-server-16-04-LTS" | |
define.ssh.insert_key = false | |
define.vm.hostname = "server#{n}" | |
define.vm.network :private_network, ip: "10.0.15.2#{n}" | |
define.vm.provider "virtualbox" do |node| | |
node.name = "server#{n}" |
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
Role | Name | Upstream | Connection String | |
----------+---------|----------|--------------------------------------------------------- | |
* master | server2 | | host=server2 user=repmgr dbname=repmgr connect_timeout=2 | |
standby | server1 | server2 | host=server1 user=repmgr dbname=repmgr connect_timeout=2 |
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
Role | Name | Upstream | Connection String | |
----------+---------|----------|--------------------------------------------------------- | |
* master | server1 | | host=server1 user=repmgr dbname=repmgr connect_timeout=2 | |
standby | server2 | server1 | host=server2 user=repmgr dbname=repmgr connect_timeout=2 |
OlderNewer