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:
| { | |
| "files.watcherExclude": { | |
| "**/.git/objects/**": true, | |
| "**/.git/subtree-cache/**": true, | |
| "**/node_modules/**": true, | |
| "**/tmp/**": true, | |
| "**/log/**": true, | |
| "**/public/packs/**": true, | |
| "**/public/assets/**": true, | |
| "/bundle/**": true |
| [ | |
| { | |
| "key": "alt+left", | |
| "command": "cursorHome", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "alt+right", | |
| "command": "cursorEnd", | |
| "when": "editorTextFocus" |
| { | |
| "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> |