├── .gitignore ├── README.md ├── boot └── install_dependencies.sh └── settings ├── .vimrc └── id_rsa.pub /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Shell Scripts 2 | 3 | Create script to download and run remote shell scripts: 4 | ``` 5 | sudo vim /usr/local/bin/download_and_run.sh 6 | ``` 7 | 8 | Script: 9 | ``` 10 | #!/bin/bash 11 | 12 | wget -q -O temp.sh $1 13 | chmod u+w temp.sh 14 | bash temp.sh 15 | rm temp.sh 16 | ``` 17 | 18 | Set permission to execute: 19 | ``` 20 | sudo chmod u+w /usr/local/bin/download_and_run.sh 21 | ``` 22 | 23 | To use: 24 | ``` 25 | sudo bash download_and_run.sh 26 | ``` 27 | 28 | -------------------------------------------------------------------------------- /boot/install_dependencies.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # update and install packages 4 | sudo add-apt-repository -y ppa:jonathonf/python-3.6 5 | sudo apt -y update 6 | sudo apt -y upgrade 7 | sudo apt -y install build-essential nginx python3.6 python3.6-dev upstart upstart-sysv 8 | 9 | # update initial RAM file system 10 | sudo update-initramfs -u 11 | 12 | # point python and pip to 3.6 13 | wget https://bootstrap.pypa.io/get-pip.py 14 | sudo python3.6 get-pip.py 15 | rm get-pip.py 16 | sudo ln -s /usr/bin/python3.6 /usr/local/bin/python 17 | 18 | -------------------------------------------------------------------------------- /settings/.vimrc: -------------------------------------------------------------------------------- 1 | execute pathogen#infect() 2 | syntax on 3 | filetype plugin indent on 4 | 5 | set ai 6 | set hlsearch 7 | set incsearch 8 | set number 9 | set ruler 10 | set showcmd 11 | set si 12 | set wildmenu 13 | 14 | color slate 15 | 16 | set expandtab 17 | set shiftwidth=4 18 | set tabstop=4 19 | 20 | map :NERDTreeToggle 21 | 22 | -------------------------------------------------------------------------------- /settings/id_rsa.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDR167q5YiRiYAyVCeUdijWmsk0yPhui5UNYFXCfgWmo7mFaXJOZeLNmzMaZtAZ5uOiN7hlzxsT2MM05O0SsmQkX1D6EShE1VfxIhthAb+qm64SGVtWrOjK9ybGq39tRJmneJF8qHG9uJ5lscIchUt8DmeCNLBURJiUdqafr1ReMG4Owql/b9R45t/Fl4z+uNtG/CDUwrju+Hi+BKg55s4N+Oiz4bkRd9/ulVq7p5OUK0SJ8G7cmQkRv+JQc4bf5qbHi7EUHsR1AoqQfqonnYrPgS12rKVqg4Nu/MkYsTiP8FFMKdnLEp5bhvLE/O9cUA9J1CoVzzQwdiw40d8UDaKr bucky@computer 2 | 3 | --------------------------------------------------------------------------------