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
ServerAdmin admin@localhost | |
DocumentRoot /var/www | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /var/www/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None |
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
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string "%w%=%l - %d/%m/%Y %c:%s" |
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
###################################################################################################### | |
# Import into /etc/skel/ the default files for every user. It can be usefull to add in .bash_aliases # | |
###################################################################################################### | |
list-rc(){ | |
ls -l /etc/rc?.d/*$1 | |
} | |
alias df='df -h' | |
alias du='du -h' | |
# Create a group named "admin" or change the name in the visudo to "adm". |
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 | |
# Automatically destroies a website: | |
# - home dir (and everything inside it) | |
# - apache config file | |
# - the corresponding user | |
VHOST_CONF=/etc/apache2/sites-enabled | |
ROOT_UID=0 | |
NOTROOT=87 | |
WWW_ROOT=/var/www |
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 | |
# Creates automatically everything for a new website: | |
# - home dir of the website | |
# - apache config file | |
# - corresponding user | |
ROOT_UID=0 | |
NOTROOT=87 | |
WWW_ROOT=/var/www | |
WWW_USER=webserveruser |
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
########################################################################################################################################## | |
############################################################# Initialization ############################################################# | |
########################################################################################################################################## | |
# Personal vars | |
git config --global user.name "USER NAME" | |
git config --global user.email "USER EMAIL" | |
# Make PROJECT dir | |
mkdir PROJECT_NAME |
NewerOlder