Skip to content

Instantly share code, notes, and snippets.

nmccready nmccready

Block or report user

Report or block nmccready

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nmccready / disable_vim_auto_visual_on_mouse.txt
Created Nov 22, 2019 — forked from u0d7i/disable_vim_auto_visual_on_mouse.txt
Disable vim automatic visual mode on mouse select
View disable_vim_auto_visual_on_mouse.txt
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
nmccready /
Created Jul 23, 2019 — forked from parzonka/
Install gradle on redhat/centos linux
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
wget -N${gradle_version}
sudo unzip -foq gradle-${gradle_version} -d /opt/gradle
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/
. /etc/profile.d/
nmccready / settings.json
Created Jul 12, 2019
vscode java settings
View settings.json
"java.configuration.updateBuildConfiguration": "automatic",
"java.home": "/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home"
nmccready / composition.js
Created Jul 8, 2019
Simple Function Composition to not rely out `this`
View composition.js
/* Similar to recompose withProps but for object composition */
export const withProps = (extension) => (state) => {
const ext = extension(state);
return {
nmccready /
Created Apr 23, 2019
argument collector
set -e
set -o pipefail
# collect arguments to forward on
while [[ "$#" > 0 ]]; do case $1 in
# example to save value
# -v|--data-volume) shift; dataVolume=$1;; # --data-volume someval
*) args[${#args[@]}]=$1;;
esac; shift; done
nmccready / Component.js
Created Apr 4, 2019
withContext HOC providing Contexts
View Component.js
// usage example
const ChildComponent = ({ CanvasContext }) => {
const { setCanvasEl } = useContext(CanvasContext);
return <canvas ref={setCanvasEl} />;
const Component = ({ CanvasContext }) => {
const {canvasEl } = useContext(CanvasContext);
const contexts = { CanvasContext };
// .. do something with canvasEl
nmccready / operators.js
Last active Feb 28, 2019
RxJS Operator Simplification / Creation 6.x
View operators.js
export const basic = (subscriber) => (origSource) =>
call(dest, source) {
return source.subscribe(subscriber(dest));
export const through = (cb) =>
basic((dest) => {
return {
nmccready / lodashExt.js
Created Feb 25, 2019
Lodash memoizeDebounce and throttle extensions
View lodashExt.js
import { debounce, throttle } from 'lodash';
import memoize from 'memoizee';
// Memoize to use unique args, and debounce to only get the last call
export const memoizeDebounce = (func, wait = 0, options = {}) => {
const { leading, maxWait, trailing, ...memoizeOptions } = options;
const mem = memoize(
() => debounce(func, wait, { leading, maxWait, trailing }),

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o

nmccready /
Created May 30, 2018
macOS HighSierra vbox

macOS High Sierra VBox

VM setup

  • create new virtual machince macOS and target HighSierra 64
  • ICH9 Chipset
  • Network should be (Intel PRO/1000 MT Server)
  • Display Memeory max out to 128mb
  • cpu memory ~ 4096
  • 2 cpus
You can’t perform that action at this time.