- Pfctl man page (apple.com)
- Pf.conf man page (apple.com)
- How to secure your Mac when using it on wireless networks (sarfata.org)
- Pf on OS X 10.7 (zomo.co.uk)
- OpenBSD packet filter (PF): Real life example (daemon-notes.com)
- Firewalling with OpenBSD's PF packet filter (rlworkman.net)
- PF (OpenBSD) (readthedocs.org)
- PF rules (kernel-panic.it)
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
- http://www.vagrantup.com/ Vagrant homepage
- http://vagrantmanager.com/ OSX Utility to manage vagrant boxes
- https://atlas.hashicorp.com/boxes/search Vagrant box repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Used to log info to stdout | |
function console_log() { | |
echo -e "\x1B[34m--- $1\x1B[0m\n" | |
} | |
# | |
# Install Apache | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function index() | |
{ | |
$users = User::all(); | |
$level = $this->showLevel('test'); | |
return view('home')->with('users', $users); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |