This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
# Pushes to gh-pages then switches back to master | |
pagespush = "!git add . && git commit -m 'Updated content.' && git push && git checkout gh-pages && git merge master && git push origin gh-pages && git checkout master" | |
# Update local/remote repo; delete gh-pages; and push dist folder to gh-pages. Great for Angular projects. | |
distpush = "!git add . && git commit -m 'Updated content.' && git push && git push origin --delete gh-pages && git subtree push --prefix dist origin gh-pages" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Forces a Windows PC to reboot automatically. | |
shutdown /r /t 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This build is used for live-reload development purposes. You MUST | |
## mount a volume back to your working directly upon creation. | |
FROM ubuntu:16.04 | |
MAINTAINER Duane Leem <duaneleem@alumni.ggu.edu> | |
## Making a random directory to -v mount the container to later. | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Automation | |
gitAll() { | |
git add . | |
git commit -m "$1" | |
git push | |
} | |
alias git-all=gitAll | |
gitPages() { | |
git checkout gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: This batch file uses Disk2vhd to make automated backups of the entire Windows computer. | |
:: Download Disk2vhd from: | |
:: https://technet.microsoft.com/en-us/sysinternals/ee656415.aspx?f=255&MSPPError=-2147217396 | |
:: Generate the file name. | |
$fileName = (get-date -uformat %d%b%y) + "_" ` | |
+ $Env:COMPUTERNAME + ".vhdx" | |
:: Drive letter to save the VHDX. | |
$driveLetter = "i:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
stylish = require('jshint-stylish'), | |
uglify = require('gulp-uglify'), | |
usemin = require('gulp-usemin'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
concat = require('gulp-concat'), |
NewerOlder