#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
{ | |
"pomegranate": { | |
"50": "#f9ebea", | |
"100": "#f2d7d5", | |
"200": "#e6b0aa", | |
"300": "#d98880", | |
"400": "#cd6155", | |
"500": "#c0392b", | |
"600": "#a93226", | |
"700": "#922b21", |
<!-- Raven.js Config --> | |
<script src="{{ JS_PATH }}/lib/raven.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// Ignore list based off: https://gist.github.com/1878283 | |
var ravenOptions = { | |
// Will cause a deprecation warning, but the demise of `ignoreErrors` is still under discussion. | |
// See: https://github.com/getsentry/raven-js/issues/73 | |
ignoreErrors: [ | |
// Random plugins/extensions | |
'top.GLOBALS', |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
AWSTemplateFormatVersion: 2010-09-09 | |
Parameters: | |
RootDomainName: | |
Type: String | |
IncludeLambdaEdge: | |
Type: String | |
AllowedValues: ['true', 'false'] | |
Conditions: | |
IncludeLambdaEdge: | |
!Equals ['true', !Ref IncludeLambdaEdge] |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
new Machine( | |
{ | |
id: `signIn`, | |
initial: `ready`, | |
context: { | |
email: ``, | |
password: `` | |
}, | |
states: { | |
ready: { |
function produce() { | |
return {} | |
} | |
const machine = new Machine( | |
{ | |
id: `text-input-machine`, | |
type: `parallel`, | |
context: { | |
errorMessage: null, |