Skip to content

Instantly share code, notes, and snippets.


Aaron Powell aaronpowell

View GitHub Profile
sgoguen /
Last active May 24, 2019
A Small Elm-like DSL in F#

Making Toys with F# - A Small Elm-like DSL in F#

A Small Elm-Like DSL in F#

I've been working on a talk about the virtues of building toy examples for the purpose of communicating ideas with simple interactive examples.

The toys I talk about in my presentation are based my interest in tools that allow programmers to quickly build web applications that allow them to explore their architecture. So to kickstart this series off, I want to introduce a simple

tathamoddie / configuration.xml
Created Mar 22, 2017
Office Deployment Tool channel configuration
View configuration.xml
<!-- Office 365 client configuration file sample. To be used for Office 365 ProPlus 2016 apps,
Office 365 Business 2016 apps, Project Pro for Office 365 and Visio Pro for Office 365.
For detailed information regarding configuration options visit:
To use the configuration file be sure to remove the comments
For Office 365 client apps (verion 2013) you will need to use the 2013 version of the
Office Deployment Tool which can be downloaded from
The following sample allows you to download and install Office 365 ProPlus 2016 apps
ipbastola /
Last active Sep 14, 2020
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64


Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
View CampJS ESP8266

Building Wearables Session at CampJS

Programming ESP8266 with EspruinoJS

Getting set up

The boards are flashed with Espruino. Install the CP2102 driver and Espruino IDE from the Chrome extensions store. See Anna's blog for more details.

Use the GPIO pin numbers in the code e.g. pin 4 not D2.

View AzureAutoSettings.cs
using System;
using System.Collections;
using System.Configuration;
using System.Reflection;
using System.Web;
[assembly: PreApplicationStartMethod(typeof(EnvSettings.SettingsProcessor), "Start")]
namespace EnvSettings
View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
adamralph / notes.csx
Last active Aug 29, 2015
Create release notes from GitHub issues with power of scriptcs and Octokit!
View notes.csx
var owner = "scriptcs";
var repo = "scriptcs";
var milestone = "v0.10";
var labels = new Dictionary<string, string>{ { "feature", "New" }, { "bug", "Fixed" } };
var username = "adamralph";
var oAuthToken = "secret";
var client = Require<OctokitPack>().CreateWithOAuth("ScriptCs.ReleaseNotesScript", username, oAuthToken);
var issues = client.Issue.GetForRepository(owner, repo, new RepositoryIssueRequest { State = ItemState.Closed, }).Result;
robdmoore / Add-ToHostsFile.ps1
Created Jul 23, 2014
Script to set up ASP.NET development environment in IIS with SQL Express using Network Service
View Add-ToHostsFile.ps1
# Originally from
function Add-ToHostsFile {
This function checks to see if an entry exists in the hosts file.
If it does not, it attempts to add it and verifies the entry.
Add-ToHostsFile -IPAddress -HostName MyMachine
robdmoore / setup-cordova-phonegap.ps1
Last active Apr 26, 2020
Scripted/Automated installation script to set up Cordova/PhoneGap and Android on Windows
View setup-cordova-phonegap.ps1
# Run this in an elevated PowerShell prompt
<# This script worked on a fresh Windows Server 2012 VM in Azure and the following were the latest versions of each package at the time:
* Chocolatey
* java.jdk
* apache.ant 1.8.4
* android-sdk 22.6.2
* cordova 3.5.0-0.2.6
* nodejs.install 0.10.29
# Note: there is one bit that requires user input (accepting the Android SDK license terms)
ducas / Octopus-Umbraco.psm1
Last active Aug 29, 2015
Umbraco helpers for Octopus Deploy
View Octopus-Umbraco.psm1
function Set-UmbracoPermissions($SitePath, $AppPoolAccount, $PathOverrides)
$readExecute = $AppPoolAccount,"ReadAndExecute","ContainerInherit, ObjectInherit","None","Allow"
$read = $AppPoolAccount,"Read","ContainerInherit, ObjectInherit","None","Allow"
$modify = $AppPoolAccount,"Modify","ContainerInherit, ObjectInherit","None","Allow"
$fileModify = $AppPoolAccount,"Modify","Allow"
$objects = @{}
$objects["App_Browsers"] = $readExecute
$objects["App_Code"] = $modify
You can’t perform that action at this time.