Do yourself a favor and login as root to save yourself some time and headaches:
$ sudo su -Install unattended-upgrades:
| [Font] | |
| Bold=700 | |
| FaceName=Consolas | |
| Height=10 | |
| [Colors] | |
| Color0=2304040 | |
| Color1=16119285 | |
| Color2=6255480 | |
| Color3=2963255 | |
| Color4=2304040 |
| function resize (file, maxWidth, maxHeight, fn) { | |
| var reader = new FileReader(); | |
| reader.readAsDataURL(file); | |
| reader.onload = function (event) { | |
| var dataUrl = event.target.result; | |
| var image = new Image(); | |
| image.src = dataUrl; | |
| image.onload = function () { |
| # | |
| # Name: nginx-tls.conf | |
| # Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
| # Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
| # | |
| # Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
| # to SSL/TLS are not included here. | |
| # | |
| # Additional tips: | |
| # |
| # This sets up a nginx reverse proxy behind a load balancer and in front of | |
| # the Play web app. The setup is illustrated as the following: | |
| # | |
| # LB:80 ==> RP:80 ==> (Redirect to https) | |
| # LB:443 ==> RP:8080 ==> Backend:9001 | |
| # | |
| # LB -- Load Balancer | |
| # RP -- Reverse Proxy | |
| # | |
| # IMPORTANT: Remove the line `include /etc/nginx/sites-enabled/*` from this config |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| /* | |
| No jQuery necessary. | |
| Thanks to Dan's StackOverflow answer for this: | |
| http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport | |
| */ | |
| function isElementInViewport(el) { | |
| var rect = el.getBoundingClientRect(); | |
| return ( | |
| rect.top >= 0 && |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| # skip existent files | |
| RewriteCond %{REQUEST_FILENAME} -f | |
| RewriteRule index.php - [QSA,L,C] | |
| RewriteRule .* - [QSA,L] | |
| # deny access php files |