Skip to content

Instantly share code, notes, and snippets.

View jmahc's full-sized avatar
🏠
Working from home

Jordan McArdle jmahc

🏠
Working from home
View GitHub Profile
@jmahc
jmahc / MySQL_5-7_macOS.md
Created September 16, 2020 22:46 — forked from robhrt7/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@jmahc
jmahc / README.md
Created September 16, 2020 18:18
Cheatsheet for youtube-dl

Cheatsheet for youtube-dl

If you have ever wanted to download YouTube videos or just the audio, or both - this is the cheatsheet for [youtube-dl]

youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]'  https://www.youtube.com/watch?v={videoID}

There is also a [YouTubed-DL GUI] for it.

@jmahc
jmahc / webpack.config.js
Created September 10, 2020 09:12
Angular2 + Webpack DLL's
var webpack = require('webpack');
var LiveReloadPlugin = require('webpack-livereload-plugin');
const DllBundlesPlugin = require('webpack-dll-bundles-plugin').DllBundlesPlugin;
// @see https://stackoverflow.com/a/42561686
module.exports = {
entry: __dirname + '/assets/app/app.ts',
output: {
@jmahc
jmahc / express-validator-util.js
Created January 23, 2020 07:43
Express Validator function collector
/**
* Validate with the provided `express-validator` function options.
*
* @export {Function} A function that will utilzie `express-validator` methods to validate parameters.
* @param {Functions} fns The `express-validator` methods to validate parameters.
* @returns {Array} An array of functions with the `express-validator` middleware provided.
*/
export function validateWith(...fns) {
return [...fns, validatorMiddleware]
}
@jmahc
jmahc / settings.json
Last active November 6, 2019 23:07
VS Code Solution for Fira Code and Flottflott - based on the Medium article: https://medium.com/@docodemore/an-alternative-to-operator-mono-font-6e5d040e1c7e#.jq6tb618c
// `File > Preferences > User Settings`(WINDOWS)
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 14,
"editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontWeight": "normal",
"editor.tabSize": 2,
"editor.formatOnSave": true,
@jmahc
jmahc / .browserslistrc
Last active March 2, 2019 22:28
Project files that I use across various JavaScript projects.
# Browsers that we support.
# @see https://github.com/browserslist/browserslist
last 1 version
> 1%
maintained node versions
not dead
@jmahc
jmahc / SchemaModel.cs
Created February 26, 2019 18:48
Example for walter
using Newtonsoft.Json;
namespace MyProject {
public class ExampleSchema
{
[JsonProperty("objetOne")
public ObjectOne ObjectOne {get; set;}
[JsonProperty("objetTwo")
@jmahc
jmahc / .zshrc
Last active December 5, 2018 18:40
jmahc's oh-my-zsh plugins
plugins+=(
# ...other plugins
zsh-autosuggestions
zsh-better-npm-completion
zsh-nvm
zsh-syntax-highlighting
)
@jmahc
jmahc / style.css
Last active September 6, 2017 15:05
Operator Mono Collection & Styling for Atom Text Editor (Operator Mono/Pro/ScreenSmart)
/* CSS for VS Code */
/*
Feel free to remove these comments - just documenting why we do what we do...
*/
/* This is the left-hand pane or "tree-view" */
.monaco-split-view,
/* These are for any `.js` or `.jsx` files */
.editor-container[data-mode-id~="javascript"],
.editor-container[data-mode-id~="javascriptreact"] {
@jmahc
jmahc / settings.json
Created August 30, 2017 21:35
iTerm2 Settings - 8/30/2017
{
"Working Directory" : "\/Users\/jordanmcardle",
"Prompt Before Closing 2" : false,
"Selected Text Color" : {
"Blue Component" : 0.5636365413665771,
"Green Component" : 0.5648583769798279,
"Red Component" : 0.5059919357299805
},
"Rows" : 25,
"Ansi 11 Color" : {