Last active
September 23, 2016 03:09
-
-
Save jkristoffer/d91a755466a90d9bd844 to your computer and use it in GitHub Desktop.
Server Stuff
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
alias dockercleanv='/root/DockerHelpers/docker-cleanup-volumes/docker-cleanup-volumes.sh' | |
alias dockernsenter='/root/DockerHelpers/nsenter-quick/nsenter-quick.sh' |
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
execute pathogen#infect() | |
set nu | |
set tabstop=3 shiftwidth=3 expandtab | |
set hidden | |
syntax on | |
filetype plugin indent on | |
""set background=light | |
""colorscheme solarized | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
set backupdir=./.backup,.,/tmp | |
set directory=.,./backup,/tmp | |
let mapleader = "\<Space>" | |
nnoremap <Leader>h <C-W><C-H> | |
nnoremap <Leader>l <C-W><C-L> | |
nnoremap <Leader>j <C-W><C-J> | |
nnoremap <Leader>k <C-W><C-K> | |
"" remove highlights | |
nnoremap <Leader>x :nohl<CR> | |
"" open shell | |
nnoremap <Leader>s :sh<CR> | |
"" quick save | |
nnoremap <Leader>w :w<CR> | |
"" quick reindent all file | |
nnoremap <Leader>f gg=G | |
"" prevent CtrP from setting local working directory each time it's invoked | |
let g:ctrlp_working_path_mode = 0 |
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 | |
mkdir ~/Dockerhelper | |
cd ~/Dockerhelper | |
#1. For cleaning up after orphaned docker volumes | |
# clone chadoe/docker-cleanup-volume.git | |
# we will need docker-cleanup-volumes.sh | |
# alias : dockercleanv [--dry-run] | |
git clone https://github.com/chadoe/docker-cleanup-volumes.git | |
#2. For entering into running Docker containers | |
# Install into /usr/local/bin using a docker image | |
# alias : dockernsenter <docker id|container-name> | |
docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter |
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
Some | |
Stuff | |
I | |
Use | |
To | |
Help | |
Me | |
Get | |
Around | |
My | |
Servers |
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
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment