Skip to content

Instantly share code, notes, and snippets.

View irwinwilliams's full-sized avatar

Irwin irwinwilliams

View GitHub Profile
@irwinwilliams
irwinwilliams / on-vm.sh
Created May 3, 2016 04:18
Start/Stop a classic Azure VM using the azure cli (needs jq installed)
azure login -u <username>
azure config mode asm
export vm_name=<vmname>
export vm_state="$1"
azure vm $vm_state $vm_name
azure vm show $vm_name --json | jq -s .[].InstanceStatus
azure config mode arm
@irwinwilliams
irwinwilliams / gh-pages-deploy.md
Created April 10, 2016 00:23 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).