Big overview of what's missing in Safari 7.1+ and iOS 8+ in terms of browser storage.
Updated May 25th 2016
| #CloudFlare | |
| set_real_ip_from 103.21.244.0/22; | |
| set_real_ip_from 103.22.200.0/22; | |
| set_real_ip_from 103.31.4.0/22; | |
| set_real_ip_from 104.16.0.0/12; | |
| set_real_ip_from 108.162.192.0/18; | |
| set_real_ip_from 141.101.64.0/18; | |
| set_real_ip_from 162.158.0.0/15; | |
| set_real_ip_from 172.64.0.0/13; | |
| set_real_ip_from 173.245.48.0/20; |
| server { | |
| listen 443; | |
| server_name example.com; | |
| error_log /var/log/nginx/example_com_error.log warn; | |
| ssl on; | |
| ssl_certificate /etc/nginx/ssl/your.crt; #certificate chains | |
| ssl_certificate_key /etc/nginx/ssl/your.key; #private key | |
| <!-- Bootstrap --> | |
| <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"> | |
| <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
| <!-- Font Awesome --> | |
| <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"> | |
| <!-- Bootlint--> | |
| <script src="//maxcdn.bootstrapcdn.com/bootlint/0.11.0/bootlint.min.js"></script> |
| .factory('$localstorage', ['$window', function($window) { | |
| return { | |
| set: function(key, value) { | |
| $window.localStorage[key] = value; | |
| }, | |
| get: function(key, defaultValue) { | |
| return $window.localStorage[key] || false; | |
| }, | |
| setObject: function(key, value) { | |
| $window.localStorage[key] = JSON.stringify(value); |
Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.
My top contenders, mostly based on popularity / community etc:
Mostly about MVC (or derivatives, MVP / MVVM).
| #!/bin/bash | |
| ## Update fail2ban iptables with globally known attackers. | |
| ## Actually, runs 100% independently now, without needing fail2ban installed. | |
| ## | |
| ## /etc/cron.daily/sync-fail2ban | |
| ## | |
| ## Author: Marcos Kobylecki <[email protected]> | |
| ## http://www.reddit.com/r/linux/comments/2nvzur/shared_blacklists_from_fail2ban/ |
| sudo apt-get update | |
| sudo apt-get install python-virtualenv | |
| sudo apt-get install python-dev | |
| sudo apt-get install postgresql | |
| sudo apt-get install postgresql-server-dev-9.3 | |
| sudo apt-get install redis-server | |
| sudo -u postgres createuser -s sentry | |
| sudo -u postgres psql -c "alter user sentry with password 'sentry';" |
With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?
/etc/init/$ sudo vim yourapp.conf$ sudo start yourapp$ sudo stop yourapp | upstream backend { | |
| server localhost:8080; | |
| #server backup1.example.com:8080 backup; | |
| #server backup2.example.com:8080 backup; | |
| } | |
| # Set cache dir | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m; | |
| # Set cache key to include identifying components |