WIP
This is based on 0 to LSP : Neovim RC From Scratch by ThePrimeagen. Go check it out, big like and subscribe!
This is a learning by doing hands-on writeup. I suggest doing a writeup on your own if you have the time for it.
| #!/usr/bin/env node | |
| if (process.env.NODE_ENV === 'production') { | |
| throw new Error("Do not use nodemon in production, run bin/www.js directly instead"); | |
| } | |
| const nodemon = require('nodemon'); | |
| const ngrok = require('ngrok'); | |
| // We start an ngrok tunnel to ensure it stays the same for the entire process |
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| brew link postgresql |
| if ('NodeList' in window && !NodeList.prototype.forEach) { | |
| console.info('polyfill for IE11'); | |
| NodeList.prototype.forEach = function (callback, thisArg) { | |
| thisArg = thisArg || window; | |
| for (var i = 0; i < this.length; i++) { | |
| callback.call(thisArg, this[i], i, this); | |
| } | |
| }; | |
| } |
| #!/bin/bash | |
| # Creator: Phil Cook | |
| # Modified: Andy Miller | |
| # | |
| # >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh | |
| # >>> Kept here for legacy purposes | |
| # | |
| osx_major_version=$(sw_vers -productVersion | cut -d. -f1) | |
| osx_minor_version=$(sw_vers -productVersion | cut -d. -f2) | |
| osx_patch_version=$(sw_vers -productVersion | cut -d. -f3) |
| node: Platform built on V8 to build network applications | |
| git: Distributed revision control system | |
| wget: Internet file retriever | |
| yarn: JavaScript package manager | |
| python3: Interpreted, interactive, object-oriented programming language | |
| coreutils: GNU File, Shell, and Text utilities | |
| pkg-config: Manage compile and link flags for libraries | |
| chromedriver: Tool for automated testing of webapps across many browsers | |
| awscli: Official Amazon AWS command-line interface | |
| automake: Tool for generating GNU Standards-compliant Makefiles |
| #!/bin/bash | |
| ### | |
| # Use -r to compare against a remote branch | |
| ### | |
| ## Example w/o this script | |
| ## git fetch --all | git rev-list --left-right --count origin/master...master | |
| $USAGE="$0 [-r <remote branch>]" |
| #!/bin/bash | |
| defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes | |
| echo "Successfully patched!" | |
| echo "Now restart MySQL Workbench to see the Workbench in light theme." | |
| #Restart MySQL Workbench after executing this. |
| <?php | |
| /** | |
| * The table Printer class has no dependencies and generates an array (strings) | |
| * out of an object array / countable and the child properties that should be printed given by an array (strings) | |
| */ | |
| class TablePrinter | |
| { | |
| /** | |
| * @param \Countable|array|object[] $historyItems |
WIP
This is based on 0 to LSP : Neovim RC From Scratch by ThePrimeagen. Go check it out, big like and subscribe!
This is a learning by doing hands-on writeup. I suggest doing a writeup on your own if you have the time for it.
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| CHROME_APP="Google Chrome" | |
| CHROME_BIN="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" | |
| PORT="9222" | |
| USER_DATA_DIR="/tmp/chrome-devtools-mcp-auth" | |
| MODE="detached" | |
| VERBOSE=0 | |
| URL="" |