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 | |
# Simple script create a site associated with a | |
if [ -z "$1" ] | |
then | |
echo "No argument supplied, you should do 'create-site.sh my.foo.com" | |
exit 1 | |
fi |
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 | |
/** | |
* | |
*/ | |
ob_start(); | |
class EncryptedSessionHandler extends SessionHandler | |
{ |
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
FROM debian | |
RUN apt-get update && apt-get install -y libapache2-mod-php5 php5-xdebug nano vim | |
RUN a2enmod php5 | |
RUN rm /var/www/html/index.html | |
COPY index.php /var/www/html/index.php | |
COPY test.php /var/www/html/test.php | |
ADD start.sh /root/start.sh |
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
echo "" >> /etc/apt/sources.list | |
echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install -y \ | |
build-essential apt-transport-https automake autotools-dev libedit-dev \ | |
libjemalloc-dev libncurses-dev libpcre3-dev \ |
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
var fs = require('fs'); | |
var path = require("path"); | |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var notify = require("gulp-notify"); | |
var source = require('vinyl-source-stream'); | |
var browserSync = require('browser-sync'); | |
var changed = require('gulp-changed'); | |
var gulp = require('gulp'); |
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 Emmanuel VAÏSSE <[email protected]> | |
* @see https://gist.github.com/evaisse/2c9feac19496928ad1fd62459cff8122 | |
* | |
* An Angular-seed (https://github.com/angular/angular-seed) tailored gulpfile, provide : | |
* | |
* - ng-annotate, prevengt loosing angular injection $annotation syntax against minification | |
* - angular template pre-compile | |
* - html/css/js minification | |
* - sourcemaps for css & js |
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 | |
/** | |
* User: evaisse | |
* Date: 28/09/2016 | |
* Time: 12:45 | |
*/ | |
/** | |
* @see https://dev.kafol.net/2008/09/php-xml-generator.html | |
* Usage : |
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
/* | |
*/ | |
var fs = require('fs'); | |
var results = {}; | |
var frameworks = [ | |
"vanillajs", | |
// "ractive", | |
// "vue", |
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
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | |
# https://www.howtoforge.com/tutorial/install-mongodb-on-ubuntu-14.04/ | |
# https://www.nonamehosts.com/blog/how-to-install-and-configure-mongodb-on-ubuntu-14-04-x64/ | |
apt-get -y update | |
apt-get -y install curl fail2ban build-essential unzip whois zsh moreutils host gcc git libmcrypt4 libpcre3-dev g++ make make python-pip supervisor ufw unattended-upgrades default-mta | |
apt-get -y upgrade | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list |
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
NPS_VERSION=1.10.33.6 | |
NGINX_VERSION=1.9.12 | |
# update | |
sudo apt-get update | |
sudo apt-get install build-essential zlib1g-dev libpcre3 libpcre3-dev unzip git | |
# Next, we have to satisfy all the dependencies needed to run Nginx. For this purpose run the command: | |
sudo apt-get build-dep nginx |