TL;DR
9.4 -> 9.5:
sudo pg_dropcluster 9.5 main --stop
sudo service postgresql stop
sudo pg_upgradecluster -m upgrade -k 9.4 main
sudo su postgres -c "/usr/lib/postgresql/9.5/bin/vacuumdb --all --analyze-in-stages"
sudo pg_dropcluster 9.4 main| Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if | |
| a form sits there for a while (like a login form, but any the same) the csrf token in the form will | |
| expire & throw a strange error. | |
| Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner. | |
| In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T! | |
| Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function. | |
| All of your exceptions go through here, unless you have excluded them in the $dontReport array at the |
TL;DR
9.4 -> 9.5:
sudo pg_dropcluster 9.5 main --stop
sudo service postgresql stop
sudo pg_upgradecluster -m upgrade -k 9.4 main
sudo su postgres -c "/usr/lib/postgresql/9.5/bin/vacuumdb --all --analyze-in-stages"
sudo pg_dropcluster 9.4 main| <?php // Simple PHP script to lookup for blacklisted IP against multiple DNSBLs at once. ?> | |
| <html> | |
| <head> | |
| <title>DNSBL Lookup Tool - IP Blacklist Check Script</title> | |
| </head> | |
| <body> | |
| <h2>IP Blacklist Check Script</h2> | |
| <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post"> | |
| <input type="text" value="" name="ip"/> | |
| <input type="submit" value="LOOKUP"/> |
Inspired by a Gist from kevinelliott - thanks!
| Server 2 sockets,6 cores each, 2.4ghz | |
| # Set ixgbe options | |
| # Limit RSS queues to the number of physical cores per cpu | |
| # Disable offload | |
| # When you change this, you need to run the command and reboot for it to take. | |
| echo "options ixgbe LRO=0,0 MQ=1,1 RSS=6,6 VMDQ=0,0 vxlan_rx=0,0" > /etc/modprobe.d/ixgbe.conf | |
| # Shut down HT cores | |
| for i in $(seq 1 2 23); do |
| <?php | |
| namespace App\Models; | |
| use Auth; | |
| use Illuminate\Database\Eloquent\Model as BaseModel; | |
| class Model extends BaseModel | |
| { | |
| protected $userAttributes = []; |
| #!/bin/bash | |
| # @author: Seb Dangerfield | |
| # http://www.sebdangerfield.me.uk/?p=513 | |
| # Created: 11/08/2011 | |
| # Modified: 07/01/2012 | |
| # Modified: 27/11/2012 | |
| # @author Zhdanov Vladislav | |
| # https://github.com/nks | |
| # Modified 16/09/2016 |
| #!/bin/bash | |
| clear | |
| echo "$COL_GREEN Radius Manager installer script for CENTOS 6.x 32bit" | |
| echo "Copyright 2004-2013, DMA Softlab LLC" | |
| echo "All right reserved.. $COL_RESET" | |
| echo "$COL_GREEN Script modified by Syed Jahanzaib for CENTOS" | |
| # Colors Config . . . [[ JZ . . . ]] | |
| ESC_SEQ="\x1b[" | |
| COL_RESET=$ESC_SEQ"39;49;00m" |