Skip to content

Instantly share code, notes, and snippets.

{
/**
* ESLint: http://eslint.org/docs/user-guide/configuring
*/
// "env:" supplies predefined global variables
"env": {
"browser": true,
"es6": true,
"node": true,
[user]
email = jeffreymahmoudi@gmail.com
name = Jeffrey Mahmoudi
[core]
safecrlf = false
[alias]
ec = config --global -e
# init
int = init
# logs
md () { [ $# = 1 ] && mkdir -p "$@" && cd "$@" || echo "Error - no directory passed!"; }
alias ls="ls -la"
alias hs="http-server"
# added by travis gem
[ -f C:/Users/Jeffrey/.travis/travis.sh ] && source C:/Users/Jeffrey/.travis/travis.sh
# ----------------------
# Git Aliases
# ----------------------
alias g='git'
# if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
# fi
# function_exists() {
# declare -f -F $1 > /dev/null
# return $?

'use strict';

require('dotenv').config();

const express = require('express'); const morgan = require('morgan'); const mongoose = require('mongoose'); const passport = require('passport');

const { PORT, MONGODB_URI } = require('./config');

@jeffreymahmoudi
jeffreymahmoudi / cicd-config-clicker.md
Created August 20, 2018 08:41 — forked from cklanac/cicd-config-clicker.md
CICD: Travis CI and Heroku Instructions: 2 Versions - Point-n-Click and CLI Ninja

Setup Travis and Heroku CICD: Point-n-Click

Continuous Integration with Travis CI

Configure travis.yml

  • Run npm test to ensure tests are working correctly locally
  • Create .travis.yml file in repo
  • Add the following to configure for node

Text Snippets

JavaScript (ES6) code snippets

  • ecl - Export Default Class
  • ece - Export Default Class w/Extension
  • edf - Export Default ES6 Function

ES7 React/Redux/GraphQL/React-Native

  • imr - Import React
  • imrd - Import ReactDOM

Node Packages

  • dotenv
  • lodash
  • nodemon
  • npx
  • moment
  • faker

Command Language Interpreter

A command-line interface or command language interpreter (CLI), also known as command-line user interface, console user interface and character user interface (CUI), is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines). A program which handles the interface is called a command language interpreter or shell (computing).

  • Unix -> Shell (/bin/sh)