fastcgi_pass unix:/run/php/php7.0-fpm.sock;
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
| // Author: Chris Kempson (http://chriskempson.com) | |
| // Custom: Mathieu de Gouville (https://degouville.com/) | |
| @base16-color-base00: #222222; //#2C3E50; | |
| @base16-color-base01: #2A2A2A; //#34495E; | |
| @base16-color-base02: #1A1A1A; //#7F8C8D; | |
| @base16-color-base03: #444444; //#95A5A6; | |
| @base16-color-base04: #BDC3C7; | |
| @base16-color-base05: #E0E0E0; | |
| @base16-color-base06: #F5F5F5; | |
| @base16-color-base07: #ECF0F1; |
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
| activate-power-mode | |
| aligner | |
| aligner-css | |
| aligner-php | |
| aligner-scss | |
| ascii-art | |
| atom-alignment | |
| atom-autocomplete-php | |
| atom-beautify | |
| atom-bootstrap3 |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.network "forwarded_port", guest: 80 , host: 8080 | |
| config.vm.network "forwarded_port", guest: 3306, host: 33306 | |
| config.vm.network "private_network", ip: "192.168.33.10" |
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
| # Linux | |
| HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1` | |
| sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var | |
| sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var | |
| # Mac OS | |
| rm -rf var/cache/* var/logs/* var/sessions/* |
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 { | |
| listen 80; | |
| index index.php; | |
| root /var/www/SERVER_NAME/public; | |
| server_name SERVER_NAME.xyz; | |
| location / { | |
| try_files $uri $uri/ /index.php?$query_string; | |
| } |
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 | |
| $ip = $_SERVER['REMOTE_ADDR']; | |
| $ip_foo = "XX.XXX.XX.XXX"; | |
| $ip_bar = "XX.XXX.XX.XXX"; | |
| $ip_baz = "XX.XXX.XX.XXX"; | |
| switch ($ip) { | |
| case $ip_foo: | |
| case $ip_bar: | |
| case $ip_baz: |
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 | |
| sudo add-apt-repository ppa:ondrej/php -y \ | |
| sudo apt-get update -y \ | |
| sudo apt-get install -y \ | |
| php7.0 \ | |
| php7.0-cli \ | |
| php7.0-common \ | |
| php7.0-mysql\ | |
| php7.0-fpm \ |
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 | |
| # See https://numixproject.org/ | |
| sudo add-apt-repository -y ppa:numix/ppa | |
| sudo apt-get update | |
| sudo apt-get install -y numix-gtk-theme numix-icon-theme-circle | |
| sudo apt-get install -y numix-wallpaper-notd |
NewerOlder