# ${SSOADM} do-batch -u amadmin -f ${PWDFILE} -Z ${BATCH_FILE} --batchstatus ${BATCH_OUTPUT_FILE}
Realm was created.
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| 1 - Create a *private* GitHub/Bitbucket or similar git repo. Here I assume the repo is: | |
| https://github.com/calkan/bash_history.git | |
| 2 - Create .history directory and initialize it for the repo: | |
| mkdir $HOME/.history | |
| cd $HOME/.history | |
| git init | |
| touch README.md |
The issue:
..mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.
(from a new defunct https://developers.google.com/mobile/articles/fast_buttons article)
touch-action CSS property can be used to disable this behaviour.
touch-action: manipulationThe user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming. Any additional behaviors supported by auto are out of scope for this specification.
| /* | |
| Functionality – when executed, these lines are copied to the clipboard: | |
| 1. The URL of the current web page. | |
| 2. The title of the current web page (as originally written) | |
| 3. The title of the current web page (converted to sentence case with a crude algorithm) | |
| 4. Optionally: The currently selected text (if any). | |
| Installation: Create a bookmark whose URL is the code below (including `javascript:{···}`): | |
| – Tested in Chrome and Safari. | |
| – Both browsers can handle URLs with multiple lines. |