For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| const tabCheckBroadcast = new BroadcastChannel("TAB_CHECK"); | |
| tabCheckBroadcast.postMessage("FIRST_TAB"); | |
| tabCheckBroadcast.onmessage = (event) => { | |
| if (event.data === "FIRST_TAB") { | |
| tabCheckBroadcast.postMessage("FIRST_TAB_OPENED"); | |
| } | |
| if (event.data === `FIRST_TAB_OPENED`) { | |
| alert("You are not supposed to duplicate the tab"); | |
| //disableApp(); | |
| } |
| import 'package:flutter/material.dart'; | |
| import 'package:get/get.dart'; | |
| void main() async { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| runApp(GetMaterialApp.router( | |
| title: 'Test', | |
| initialBinding: BindingsBuilder.put(() => AuthService(), permanent: true), | |
| getPages: [ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <title>Fastdom promises + async/await test</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| </head> | |
| <body> | |
| <div id="container"> |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');Those suck for maintenance and they're ugly.
| #! /bin/sh | |
| # ================================================================== | |
| # ______ __ _____ | |
| # /_ __/___ ____ ___ _________ _/ /_ /__ / | |
| # / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
| # / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
| #/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
| # Multi-instance Apache Tomcat installation with a focus | |
| # on best-practices as defined by Apache, SpringSource, and MuleSoft |