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
location / { | |
try_files $uri $uri/ /index.php?q=$uri$is_args&$args; | |
} | |
//in functions.php in theme | |
add_filter( 'got_rewrite', '__return_true' ); |
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' ), |
class BaseController extends Controller { | |
public function __construct() | |
{ | |
// CSRF protection for all POST requests | |
$this->beforeFilter('csrf', array('on' => 'post')); | |
} | |
} |
<div class="form-group input-group-lg @if ($errors->has('email')) has-error @endif"> | |
{{ Form::text('email', null, array('class' => 'form-control tooltip-form', 'placeholder' => 'Email', 'id' => 'email', 'title' => 'Email')) }} | |
@if ($errors->has('email')) {{ $errors->first('email')}} @endif | |
</div> |
add_action('after_setup_theme', 'my_icl_set_current_language'); | |
function my_icl_set_current_language($lang) { | |
global $sitepress; | |
$lang = 'sv'; | |
$sitepress->switch_lang($lang); | |
} |
select { | |
border:none; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
-ms-appearance: none; /* get rid of default appearance for IE8, 9 and 10*/ | |
} |
alias composer='hhvm /usr/local/bin/composer' |
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) |
var a = document.createElement('a'); | |
a.href = window.location.href; | |
if (a.search.indexOf('isEditing=true') !== -1) { | |
} |