In
/node_modules/laravel-elixir/dist/Notification.js
Replace
var _gulpNotify = require('gulp-notify');
# work in progress. inspired by serverforhackers example. | |
.PHONY: up down log tinker artisan test | |
# Set dir of Makefile to a variable to use later | |
MAKEPATH := $(abspath $(lastword $(MAKEFILE_LIST))) | |
PWD := $(dir $(MAKEPATH)) | |
up: | |
docker-compose -f laradock/docker-compose.yml up -d |
[/] | |
new-terminal-mode='tab' | |
schema-version=uint32 3 | |
[keybindings] | |
switch-to-tab-1='disabled' | |
switch-to-tab-2='disabled' | |
switch-to-tab-3='disabled' | |
new-tab='<Primary>t' | |
switch-to-tab-4='disabled' |
[ req ] | |
default_bits = 2048 | |
distinguished_name = req_distinguished_name | |
attributes = req_attributes | |
prompt = no | |
[ req_distinguished_name ] | |
C = MX | |
ST = VE | |
L = XL |
<?php | |
namespace App\Events; | |
use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
use Illuminate\Queue\SerializesModels; | |
class NewMessage extends Event implements ShouldBroadcast | |
{ | |
I hereby claim:
To claim this, I am signing this object:
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Solarized%20Dark%20Ivo] | |
"Present"=dword:00000001 | |
"HostName"="" | |
"LogFileName"="putty.log" | |
"LogType"=dword:00000000 | |
"LogFileClash"=dword:ffffffff | |
"LogFlush"=dword:00000001 | |
"SSHLogOmitPasswords"=dword:00000001 |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
REM # VirtualBox home directory. | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setproperty machinefolder "X:\VirtualMachines\virtualboxImages" | |
REM # Vagrant home directory for downloadad boxes. | |
REM REG ADD HKCU\Environment /v VAGRANT_HOME /t REG_SZ /d "X:\VirtualMachines\VAGRANT_HOME" | |
REM - this will only set the env var for the current session. Use setx to persist it. | |
set VAGRANT_HOME=X:\VirtualMachines\VAGRANT_HOME | |
REM ######################################################################################### | |
vagrant up | |
pause |
If you're not familiar: What is fail2ban? fail2ban is an awesome linux service/monitor that scans log files (e.g. auth.log for SSH) for potentially malicious behavior. Once fail2ban is tripped it will ban users for a specified duration by adding rules to Iptables. If you're unfamiliar with fail2ban Chris Fidao has a wonderful (& free!) series about security including setting up fail2ban here.
Recently Laravel released a new feature in 5.1 to throttle authentication attempts by simply adding a trait to your authentication controller. The Laravel throttle trait uses the inputted username, and IP address to throttle attempts. I love seeing this added to a framework out of the box, but what about some of our other apps not built on Laravel? Like a WordPress login? Or even an open API etc.? Ultimately,