docker-compose -f storm-1.2.3.yaml pull
docker-compose -f storm-1.2.3.yaml start
docker-compose -f storm-1.2.3.yaml stop
version: '3.2' | |
services: | |
zookeeper: | |
image: zookeeper | |
container_name: zookeeper | |
restart: always | |
nimbus: | |
image: storm:1.2.3 |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<input id="file" type="file" accept="image/*" /> | |
<br/> | |
<h2>As read:</h2> | |
<img id="placeholder1" width=300/><br/> | |
<h2>Rotated by exif data:</h2> | |
<img id="placeholder2" width=300/> | |
<script> |
// Refrence from: https://gist.github.com/beevelop/a0f2c76e79610dca01550c9a93f83876 | |
// Copy following scripts in the developer console of page included markdown content you want to print: | |
(function () { | |
var $ = document.querySelector.bind(document); | |
$('#readme').setAttribute('style', 'position:absolute;top:0;left:0;right:0;bottom:0;z-index:100;background-color:white'); | |
$('#readme>article').setAttribute('style', 'border: none'); | |
$('body').innerHTML = $('#readme').outerHTML; | |
window.print(); | |
})(); |
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white') | |
document.querySelector('body').appendChild(document.querySelector('#readme')) | |
window.print() |
# /Users/user/Scripts/npm_lazy.sh | |
#!/bin/sh | |
npm_lazy --config --config ~\npm_lazy.config.js |
# ~/Library/LaunchAgents/org.verdaccio.launcher.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.verdaccio.launcher</string> | |
<key>Program</key> | |
<string>/Users/user/Scripts/verdaccio.sh</string> | |
<key>RunAtLoad</key> |
Download NSSM and install it in a directory on the path.
Install npm_lazy :-
npm install -g verdaccio