start new:
tmux
start new with session name:
tmux new -s myname
| // upload.js, from https://github.com/googledrive/cors-upload-sample | |
| // Contributors Steve Bazyl, Mike Procopio, Jeffrey Posnick, Renaud Sauvain | |
| // License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Implements Resumable Upload for Google Drive as described by | |
| // https://developers.google.com/drive/v3/web/resumable-upload | |
| // | |
| // Modified by Paul Brewer, Economic and Financial Technology Consulting LLC | |
| // Nov. 1 2017 | |
| // 1. use Google Drive API V3 instead of V2 |
| #!/bin/bash -v | |
| # backing up a vm | |
| cd /media/tim/WD6/ | |
| base="/home/tim/VirtualBox VMs" | |
| src=win10-2018 | |
| mv $src.tar.lz4 $src.tar.lz4.old |
| //https://habr.com/post/213515/ | |
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB, | |
| IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction, | |
| baseName = "baseName", | |
| storeName = "storeName"; | |
| function logerr(err){ | |
| console.log(err); |