These instructions will guide you through the process of setting up local, trusted websites on your own computer.
These instructions are intended to be used on Mac OSX Yosemite.
# Tail Laravel and Webserver (NGINX & Apache 2) log files | |
# Compatible with Laravel 4 & 5 | |
# | |
alias tl="ls -d /var/log/nginx/* /var/log/apache2/* storage/logs/* app/storage/logs/* storage/laravel.log | grep -v 'gz$' | grep -v '1$' | xargs tail -f" |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<!-- ||||||||||||||||||||||||||||||| --> | |
<!-- EMAIL SUBJECT SHOULD GO IN HERE --> | |
<title>THIS IS THE TITLE</title> | |
<!-- EMAIL SUBJECT SHOULD GO IN HERE --> | |
<!-- ||||||||||||||||||||||||||||||| --> | |
<style type="text/css"> |
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Jared Flack</title><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content=""><meta name="author" content=""><meta http-equiv="X-UA-Compatible" value="IE=8"><style>@font-face{font-family:Lato;font-style:normal;font-weight:400;src:local('Lato Regular'),local('Lato-Regular'),url(data:application/x-font-woff;charset=utf-8;base64,AAEAAAARAQAABAAQR1BPU792x2wAAS2AAAASSkdTVUKOOI56AAE/zAAAAHBPUy8y2a6qaQAAyigAAABgY21hcIwYkAAAAMqIAAAAtGN2dCAG9xijAADScAAAAC5mcGdtclpyQAAAyzwAAAblZ2FzcAASABgAAS10AAAADGdseWbADxfjAAABHAAAw2BoZWFk/JzyIwAAxlwAAAA2aGhlYQ+2B3UAAMoEAAAAJGhtdHhyNU6fAADGlAAAA25rZXJuPzs/sgAA0qAAAFcYbG9jYazff4oAAMScAAABvm1heHAB1wf5AADEfAAAACBuYW1lHCc4mgABKbgAAAF4cG9zdFbkDTYAASswAAACQXByZXCmB5UXAADSJAAAAEsABAAtAAAD+wWZACUANQA5AD0A/kAWPTw7Ojk4NzY0MiooJCIfHRMSBgQKBytLsF9QWEBDAAECAAEeAAMCAQIDATIAAQQCAQQwAAAAAgMAAgEAJgAEAAUIBAUBACYACQkGAAAkAAYGCx8ACAgHAAAkAAcHDAcgCRtLsGxQWEBBAAECAAEeAAMCAQIDATIAAQQCAQQwAAYACQAGCQ |
<?php | |
public function index() | |
{ | |
$users = User::all(); | |
$level = $this->showLevel('test'); | |
return view('home')->with('users', $users); | |
} |
#!/bin/bash | |
# Used to log info to stdout | |
function console_log() { | |
echo -e "\x1B[34m--- $1\x1B[0m\n" | |
} | |
# | |
# Install Apache | |
# |
Create a user with SFTP access, but without SSH shell or any other access.
Main resource: SFTP Only Without Bash/Shell (serveradminforhire.com).
We need to create a group for the users that will have only SFTP access:
groupadd sftponly
body { | |
background: #f1f1f0 !important; | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif !important; | |
font-weight: 300 !important; | |
} | |
/* h3 {font-weight:300 !important} */ | |
.header-woof {display:none !important} |
// GENERATE | |
function getScript(url, callback) { | |
var head = document.documentElement, | |
script = document.createElement('script'), | |
done = false; | |
script.src = url; | |
script.onload = script.onreadystatechange = function() { |