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
<VirtualHost *:80> | |
ServerName domain.tld | |
ServerAlias www.domain.tld | |
DocumentRoot /var/www/project/web | |
<Directory /var/www/project/web> | |
# enable the .htaccess rewrites | |
AllowOverride All | |
Require all granted | |
</Directory> |
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
First of all, you need uapache2-utils tools. | |
sudo apt-get install apache2-utils | |
Then you add this in your virtualhost in your <Directory> tag : | |
#Require all granted | |
# you need to comment this line above to require a valid-user | |
AuthName "This website is not ready to go public !" | |
AuthType Basic |
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
function create_thumb($src,$dest,$desired_width = false, $desired_height = false) | |
{ | |
/*If no dimenstion for thumbnail given, return false */ | |
if (!$desired_height&&!$desired_width) return false; | |
$fparts = pathinfo($src); | |
$ext = strtolower($fparts['extension']); | |
/* if its not an image return false */ | |
if (!in_array($ext,array('gif','jpg','png','jpeg'))) return false; | |
/* read the source image */ |
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
set :application, "auxiliaris" | |
set :domain, "#{application}.flodz.ovh" | |
set :deploy_to, "/var/www/#{domain}" | |
set :app_path, "app" | |
set :user, "root" | |
ssh_options[:forward_agent] = true | |
set :repository, "[email protected]:florentdestremau/#{application}.git" | |
set :scm, :git | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `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
set -g prefix C-a | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
bind | split-window -h | |
bind - split-window -v |
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
<?php | |
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php'; | |
sfCoreAutoload::register(); | |
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
public function setup() | |
{ | |
$this->enablePlugins('sfDoctrinePlugin'); |
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
Include /etc/phpmyadmin/apache.conf |
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
xrandr --output eDP1 --brightness 0.75 |
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
zend_extension=/usr/lib/php5/20100525/xdebug.so | |
[xdebug] | |
xdebug.cli_color = 1 | |
xdebug.scream = Off | |
xdebug.max_nesting_level = 500 | |
[xdebug-remote-debug] | |
xdebug.remote_enable = true | |
xdebug.remote_autostart = 0 | |
xdebug.remote_mode = req |
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
# In status view, push to origin | |
bind status P !git push origin | |
# In status view, pull from origin | |
bind status L !git pull origin | |
# In any view, amend current commit | |
bind generic + !git commit --amend | |
# In status view, delete selected file |
OlderNewer