This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| #!/bin/sh | |
| # Reset Transmit 5 Trial | |
| # curl -fsSL https://gist.github.com/thoaster/ca5b4fdb653b9cdb3930897045b78558/raw/reset.sh | bash | |
| set +e | |
| set -x | |
| sudo rm -rf ~/Library/Caches/com.panic.Transmit | |
| sudo rm -rf ~/Library/Application\ Support/com.panic.Transmit | |
| sudo rm ~/Library/Preferences/com.panic.Transmit.plist |
| <template> | |
| <div class="editorjs" ref="htmlelement"></div> | |
| </template> | |
| <script setup> | |
| import EditorJS from '@editorjs/editorjs'; | |
| import EmbedTool from '@editorjs/embed'; | |
| import ListTool from '@editorjs/list'; | |
| import ImageTool from '@editorjs/image'; | |
| import VideoTool from './editorjs/video.js'; | |
| import { onMounted, onUnmounted, ref, watch } from 'vue'; |
| <?php | |
| $a = []; | |
| //$s = 123456; | |
| $s = 's6tbdfgj222dJGk'; | |
| $rs = str_repeat("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 10); | |
| $numGen = function() { | |
| return rand(1, 9999999); | |
| }; |
| /** | |
| * Think of this "main.js" file as your application bootstrap. | |
| */ | |
| import Vue from 'vue' | |
| import Resource from 'vue-resource' | |
| import VueRouter from 'vue-router' | |
| import routes from './routes' | |
| import middleware from './middleware' |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020
| var reunicode = /^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971\u0972\u097B-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\ |