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 autoxdl | |
HostName a.b.c.d | |
User USER | |
ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:1086 %h %p |
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
sudo apt-get install xfsprogs | |
sudo mkfs.xfs /dev/vdb | |
sudo mkfs.xfs /dev/vdc | |
sudo mkdir /data /backup | |
sudo mount -t xfs /dev/vdb /data | |
sudo mount -t xfs /dev/vdc /backup |
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
free -h | |
sudo swapoff -a | |
sudo dd if=/dev/zero of=/swapfile bs=1G count=8 | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo chmod 0600 /swapfile | |
grep SwapTotal /proc/meminfo |
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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/Vundle.vim/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Plugin 'gmarik/vundle' |
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
ZHOME="${ZDOTDIR:-$HOME}/.zprezto" | |
sudo apt-get install git software-properties-common | |
if [ ! -d "${ZHOME}" ]; then | |
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZHOME}" | |
git clone https://github.com/zdharma/fast-syntax-highlighting "${ZHOME}/modules/fast-syntax-highlighting" | |
if [ ! -d "${HOME}/.fzf" ]; then | |
git clone --depth 1 https://github.com/junegunn/fzf.git ${HOME}/.fzf |
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
ARGS=() | |
while [ $# -gt 0 ]; do | |
unset OPTIND | |
unset OPTARG | |
while getopts v options; do | |
case $options in | |
v) VERBOSE=true ;; | |
esac | |
done | |
shift $((OPTIND - 1)) |
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
# sudo apt-get -y install build-essential vim silversearcher-ag zsh httpie | |
sudo add-apt-repository ppa:aacebedo/fasd && sudo apt-get update | |
sudo apt-get install -y httpie silversearcher-ag fasd | |
if [[ ! -d ~/.fzf ]]; then | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
~/.fzf/install | |
fi | |
if [[ ! -d ~/.nvm ]]; then |
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
git checkout anotherbranch path/to/file.txt |
NewerOlder