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/sh -e | |
# Start/Stop rtorrent sous forme de daemon. | |
NAME=rtorrent-daemon.sh | |
SCRIPTNAME=/etc/init.d/$NAME | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
case $1 in | |
start) | |
echo "Starting rtorrent... " |
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
# Fichier de configuration de rtorrent. | |
# Par défaut, c'est le fichier ~/.rtorrent.rc | |
# Limites des taux de téléchargement en réception et en envoi. "0" équivaut à aucune limite. | |
#download_rate = 500 | |
#upload_rate = 150 | |
# Répertoire qui contient les fichiers téléchargés. | |
directory = /home/utilisateur/downloads |
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 | |
#install | |
apt-get install aptitude | |
aptitude -y install nginx vim rtorrent php5 php5-fpm | |
#config bash et vim | |
cd /root | |
rm .bashrc |
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
server | |
{ | |
root /var/www; | |
index index.php index.html; | |
server_name adresse_ip_ou_nom_de_domaine; | |
access_log /var/log/nginx/test-access_log; | |
error_log /var/log/nginx/test-error_log; | |
location / |
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
syntax on | |
set number | |
set tabstop=4 | |
set ignorecase | |
set ruler | |
set background=dark | |
set hlsearch | |
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
PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' | |
umask 022 | |
export CLICOLOR=1 | |
alias ll='ls -la --color' | |
alias la='ls -A --color' | |
alias vi='vim' | |
alias l='ls -CF' |
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
PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' | |
umask 022 | |
export CLICOLOR=1 | |
alias ll='ls -la --color' | |
alias la='ls -A --color' | |
alias vi='vim' | |
alias l='ls -CF' | |
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
aptitude install nginx postgresql-9.3 postgresql-9.3-postgis-2.1 postgresql-client postgresql-common php5-pgsql php5 php5-cli php5-fpm php5-gd php5-curl php5-mcrypt |
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
127.0.0.1 localhost www.kpi.com |
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
server | |
{ | |
root /var/www/www.kpi.com; | |
index index.php; | |
server_name www.kpi.com; | |
access_log /var/log/nginx/kpi-access_log; | |
error_log /var/log/nginx/kpi-error_log; | |
location / |
NewerOlder