sudo visudo
{USER} ALL=(ALL) NOPASSWD: ALL
sudo apt install vim -y
<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 "pritdeveloper+git@gmail.com"
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 "pritdeveloper+aws@gmail.com" | |
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 |
<?php | |
/** | |
* Plugin Name: Singh MU Plugin | |
* Description: This plugin is used to provide all helper functions and a special functionality to use the original domain url for attachments | |
*/ | |
if( file_exists( __DIR__ . "/vendor/autoload.php" ) ) { | |
require_once __DIR__ . "/vendor/autoload.php"; | |
} |