- Assuming that you have already installed php and apache
- Install xDebug php extension
# Ubuntu 16.04, php 7.0
sudo apt-get install php-xdebug
# Ubuntu 14.04, php 5.6
sudo apt-get install php5-xdebug
# Ubuntu 16.04, php 7.0
sudo apt-get install php-xdebug
# Ubuntu 14.04, php 5.6
sudo apt-get install php5-xdebug
// Gulp | |
var gulp = require('gulp'); | |
// Sass/CSS stuff | |
var sass = require('gulp-sass'); | |
var prefix = require('gulp-autoprefixer'); | |
var minifycss = require('gulp-minify-css'); | |
// JavaScript | |
var uglify = require('gulp-uglify'); |
<?php | |
if(count($argv) <= 1) { | |
print "Usage: php -f password.php mypassword [cost = 10]\n\n"; | |
exit(); | |
} | |
$password = $argv[1]; | |
$cost = (count($argv) > 2) ? $argv[2] : 10; | |
$encPass = password_hash($password, PASSWORD_BCRYPT, array("cost" => $cost)); |
#my-div { | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
margin: auto; | |
width: 80vh; /* Whatever you want*/ |