Skip to content

Instantly share code, notes, and snippets.

View maxmckenzie's full-sized avatar

Max McKenzie maxmckenzie

View GitHub Profile
@maxmckenzie
maxmckenzie / project-outline.md
Created July 13, 2019 09:31
project outline guideline

Project Specification Outline

AKA the most important part of the whole thing, whatever that thing maybe!

tree-swing-project-management-large.png

Description:

give a detailed description of what the project is, why the client/user needs it, and what solution this aims to provide.

Client:

@maxmckenzie
maxmckenzie / .zshrc
Created July 13, 2019 09:32
many aliases/alias's...
alias dev="cd ~/Development"
eval "$(direnv hook zsh)"
# repo shortcuts
alias seam="cd ~/Development/seam"
# Editor
export EDITOR='vim'
# ExpressVPN
@maxmckenzie
maxmckenzie / sublime-todo-json
Created July 13, 2019 09:32
sublime todo plugin settings
{
"patterns": {
"TODO": "TODO[\\s]*?[\\s]*(?P<todo>.*)$"
},
"patterns_weight": {
},
"exclude_folders": [
"*.git*",
"node_modules/**"
],
@maxmckenzie
maxmckenzie / vue-server.js
Created July 13, 2019 09:33
vue express server with history fallback
var express = require('express')
var path = require('path')
const history = require('connect-history-api-fallback')
const app = express()
app.use(express.static(path.join(__dirname, 'static')))
app.use(express.static(path.join(__dirname, 'dist')))
app.use(history({
@maxmckenzie
maxmckenzie / gitlab-ci.yml
Last active July 29, 2019 09:05
gitlab-ci deploy to heroku #ci
stages:
- deploy
deploy to development:
stage: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --strategy=api --app=example-dev --api-key=$HEROKU_API_KEY
@maxmckenzie
maxmckenzie / editor.conf
Created July 13, 2019 09:34
default editor config
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@maxmckenzie
maxmckenzie / eslint.rc
Last active July 29, 2019 09:02
eslint config #config
module.exports = {
"extends": "standard",
"plugins": [
"standard",
"promise"
],
"rules": {
// i know... i'm happy to omit them
// but mi dios, its like walking down the street wearing real fur
"semi": ["error", "always"]
@maxmckenzie
maxmckenzie / logger.js
Created July 13, 2019 09:35
logger example with sentry
/* eslint-disable no-console */
import raven from 'raven';
/*
To Use
import logger from './logger';
logger.error('test error');
logger.debug('test debug');
logger.warning('test warning');
logger.fatal('test fatal');
> This example uses global environment configurations
@maxmckenzie
maxmckenzie / god-damn-it-apple.sh
Created July 13, 2019 09:36
god-damn-it-apple i'll install what i want use this to install apps from anywhere.
sudo spctl --master-disable
@maxmckenzie
maxmckenzie / spread-operators.js
Last active July 29, 2019 09:05
spread operators snippet #esnext
// Spread operators baby
var Array = [[1, 2],[3, 4, 5], [6, 7, 8, 9]];
var result = [].concat(...Array);
console.log(result);