sudo chmod +x scriptname.sh
#!/bin/bash
# The hostname of your remote server.
[email protected]
# Create this folder if it does not exist: ~/.ssh
mkdir ~/.ssh
# Set the correct permissions (required)
[user] | |
name = Baygeldi Cholukov | |
email = [email protected] | |
[alias] | |
a = add | |
al = add . | |
############# | |
b = branch | |
ba = branch --all | |
bd = branch -d |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
{ | |
"singleQuote": true, | |
"tabWidth": 2, | |
"printWidth": 80, | |
"useTabs": true, | |
"jsxSingleQuote": true, | |
"bracketSameLine": false, | |
"arrowParens": "avoid" | |
} |
// Adding current user to www-data | |
sudo adduser $USER www-data | |
//change ownership to user:www-data and | |
sudo chown $USER:www-data -R /var/www/html | |
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html | |
// change file permissions of existing files and folders to 755/644 | |
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \; |