brew install nginx
Configuration file for nginx will be at /usr/local/etc/nginx/nginx.conf
Web apps can be stored at /usr/local/var/www
Start:
| { | |
| "Log Function Name": { | |
| "prefix": "flog", | |
| "body": [ | |
| "\n\tconsole.log(' * ${TM_CURRENT_LINE/.*(?:function|const|let|async)\\s+([a-zA-Z0-9_]+).*/$1/}() $1: ', $1);" | |
| ] | |
| } | |
| } |
| #!/bin/bash | |
| # Google Takeout Date Fixer v6.1 (Simple Suffix Config + Forward Search) | |
| GREEN='\033[0;32m' | |
| BLUE='\033[0;34m' | |
| YELLOW='\033[1;33m' | |
| RED='\033[0;31m' | |
| NC='\033[0m' |
| function throttle(fn, delay) { | |
| let startTime = 0 | |
| return function (...args) { | |
| const now = Date.now() | |
| // if not in progress | |
| if (startTime === 0) { | |
| startTime = now | |
| } |
| body { | |
| min-height: 100vh; | |
| margin: 0; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| div { | |
| width: 105px; |
| window.getAllEventListeners = () => { | |
| return Array.from(document.querySelectorAll('*')).map(element => { | |
| const listeners = getEventListeners(element); | |
| return { | |
| element: element, | |
| listeners: Object.keys(listeners).map(key => { | |
| return { | |
| event: key, |
| <div id="app"> | |
| <div id="paper-container"></div> | |
| </div> | |
| <div id="toolbar-container"></div> | |
| <a target="_blank" href="https://www.jointjs.com"> | |
| <img id="logo" src="https://assets.codepen.io/7589991/jointjs-logo.svg" width="200" height="50"></img> | |
| </a> |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> | |
| <p>Hit Cmd or Ctrl V with an image on your clipboard. Click on image and hit Backspace to remove.</p> |