sudo visudo
{USER} ALL=(ALL) NOPASSWD: ALL
sudo apt install vim -y
#!/bin/bash | |
# Prompt for MySQL credentials | |
read -p "Enter MySQL username: " MYSQL_USER | |
read -sp "Enter MySQL password: " MYSQL_PASS | |
echo | |
read -p "Enter MySQL database name: " DB_NAME | |
read -p "Enter old domain (e.g., old.example.com): " OLD_DOMAIN | |
read -p "Enter new domain (e.g., new.example.com): " NEW_DOMAIN |
<VirtualHost *:80> | |
ServerName local | |
DocumentRoot /var/www/vhosts/ | |
LogLevel info | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory /var/www/vhosts> | |
Options Indexes FollowSymLinks |
# common | |
alias ls='ls --color=auto -F' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias less="less -R " | |
alias ..="cd ../" |
<VirtualHost *:80> | |
DocumentRoot /projects/project | |
LogLevel info | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory /projects> | |
Options Indexes FollowSymLinks |
# common | |
alias ls='ls --color=auto -F' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias less="less -R " | |
alias ..="cd ../" |
git config --global user.name "Pritpal Singh"
git config --global user.email "[email protected]"
git config --global core.excludesfile "~/.gitignore"
git config --global color.ui true
git config --global push.default current
# git | |
git config --global user.name "Pritpal Singh" | |
git config --global user.email "[email protected]" | |
git config --global core.editor vi | |
git config --global core.whitespace off | |
git config --global core.excludesfile "~/.gitignore" | |
git config --global advice.statusuoption false | |
git config --global color.ui true | |
git config --global push.default current |
.hgignore | |
node_modules | |
.c9 | |
.DS_Store | |
Thumbs.db | |
# C/C++ | |
*.slo | |
*.lo | |
*.o |