vi /etc/sysctl.conf
# 将net.ipv4.ip_forward=0更改为net.ipv4.ip_forward=1
sysctl -p
DNS的解析方案为 resolve.conf ==> dnsmasq ==> cdns
// unmap some system key | |
unmap('<Ctrl-j>'); | |
// mapping like vimum | |
map('u', 'e'); | |
mapkey('p', "Open the clipboard's URL in the current tab", function() { | |
Front.getContentFromClipboard(function(response) { | |
window.location.href = response.data; | |
}); | |
}); |
# remove old vim | |
sudo apt purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
# install dependence | |
sudo apt install liblua5.1-dev luajit libluajit-5.1 \ | |
python3-dev \ | |
ruby-dev \ | |
libperl-dev \ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |