apt-get update && apt-get upgrade
adduser [username]
usermod -aG sudo [username]
apt-get -y install git
Now you will have to logout then you need to login using the user you create
alias composer='hhvm /usr/local/bin/composer' |
location / { | |
try_files $uri $uri/ /index.php?q=$uri$is_args&$args; | |
} | |
//in functions.php in theme | |
add_filter( 'got_rewrite', '__return_true' ); |
class BaseController extends Controller { | |
public function __construct() | |
{ | |
// CSRF protection for all POST requests | |
$this->beforeFilter('csrf', array('on' => 'post')); | |
} | |
} |
test |
function my_custom_tpa() { | |
$labels = array( | |
'name' => _x( 'TPA', 'tpa' ), | |
'singular_name' => _x( 'TPA', 'tpa' ), | |
'add_new' => _x( 'Add New', 'book' ), | |
'add_new_item' => __( 'Add New TPA' ), | |
'edit_item' => __( 'Edit TPA' ), | |
'new_item' => __( 'New TPA' ), | |
'all_items' => __( 'All TPA' ), | |
'view_item' => __( 'View TPA' ), |
<php echo phpinfmmmm,m,m,m,mo()); ?>ffdsfsjjkjk |
var a = document.createElement('a'); | |
a.href = window.location.href; | |
if (a.search.indexOf('isEditing=true') !== -1) { | |
} |
NSWorkspace.sharedWorkspace().openURL(url) |
add_action('phpmailer_init','send_smtp_email'); | |
function send_smtp_email( $phpmailer ) | |
{ | |
// Define that we are sending with SMTP | |
$phpmailer->isSMTP(); | |
// The hostname of the mail server | |
$phpmailer->Host = "smtp.example.com"; | |
// Use SMTP authentication (true|false) |