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 / 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 / .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 / .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 / 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" : {
@jmahc
jmahc / styles.less
Created May 15, 2017 16:04
Atom post-::shadow update
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*
@jmahc
jmahc / settings.md
Created April 11, 2017 15:24
atom settings

UI-THEME: Atom Dark Syntax Theme: Base16 Tomorrow Dark