Enable password-less ssh access:
cat ~/.ssh/id_rsa.pub | ssh username@server "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
# shortcut: copyrsa
<?php | |
use Illuminate\Http\Request; | |
/* | |
|-------------------------------------------------------------------------- | |
| Public Routes | |
|-------------------------------------------------------------------------- | |
*/ |
const elixir = require('laravel-elixir'); | |
elixir(function (mix) { | |
const bowerPath = './vendor/bower_components'; | |
// Stylesheets | |
// -------------------------------------------------- // | |
// Compiles to public/css/app.css | |
mix.less('app.less', 'public/css', null, { |
@extends('admin.layouts.plain') | |
@section('page-meta') | |
<title>{{ page_title('Login') }}</title> | |
@endsection | |
@section('content') | |
<div class="flex-container flex-center vh67"> |
<?php | |
// This is a stub for a "resourceful" controller | |
// Find & replace the following, then delete these comments! | |
// | |
// `MyModel` = name of model | |
// `MyController` = name of class | |
// `directory` = name of resource route: i.e. 'admin.users' | |
// `$collection` = variable identifying a collection: i.e. 'users' or 'categories' | |
// `$resource` = variable identifying a single resource: i.e. 'user' or 'post' |
#################### | |
# ALIASES | |
#################### | |
alias cpwd="pwd | tr -d '\n' | pbcopy && echo 'Current working directory copied to clipboard.'"; | |
alias flushdns="sudo killall -HUP mDNSResponder"; | |
# .bash_profile | |
alias sbp="source ~/.bash_profile && echo '.bash_profile sourced.'"; | |
alias subp="subl ~/.bash_profile"; |
//! ncsExternalLinks | |
// ================================================== // | |
(function($) { | |
$.fn.ncsExternalLinks = function() { | |
// Open external links in new window | |
$('a, area').filter(function() { | |
return this.hostname && this.hostname !== location.hostname; | |
}).not('.iframe').not('.ajax').not('.local').attr({ |