Skip to content

Instantly share code, notes, and snippets.

View joshualeduc's full-sized avatar

Joshua LeDuc joshualeduc

View GitHub Profile
@joshualeduc
joshualeduc / mongod.service
Created April 18, 2016 18:47 — forked from benileo/mongod.service
Systemd Service Script for Mongod On Ubuntu 15.04+
[Unit]
Description=High-performance, schema-free document-oriented database
Documentation=man:mongod(1)
After=network.target
[Service]
Type=forking
User=mongodb
Group=mongodb
@joshualeduc
joshualeduc / .gitignore
Last active July 16, 2017 20:06 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@joshualeduc
joshualeduc / .eslintrc
Created April 13, 2016 20:51 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify')
var uglifycss = require('gulp-uglifycss');
var ngAnnotate = require('gulp-ng-annotate');
var server = require('gulp-webserver');
var htmlmin = require('gulp-htmlmin');
var watcher = gulp.watch(['./src/js/**/*.js', './src/styles/*.scss', './src/views/**/**/*.html', './src/*.html'], ['default']);
watcher.on('change', function( event ) {
@joshualeduc
joshualeduc / OpenWithSublimeText2.bat
Created March 9, 2016 03:53 — forked from mrchief/LICENSE.md
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)
@echo off
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@joshualeduc
joshualeduc / gist:7a9c8d77603ceeabbf60
Created March 9, 2016 03:52 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master