Skip to content

Instantly share code, notes, and snippets.

Jim Counts jamesrcounts

Block or report user

Report or block jamesrcounts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jamesrcounts / Dockerfile
Last active Nov 18, 2019
Snippets to illustrate container pipelines in Azure DevOps
View Dockerfile
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine
RUN apk update && apk upgrade --no-cache
COPY ./dist .
ENTRYPOINT ["dotnet", "parrot.dll"]
jamesrcounts /
Last active Oct 14, 2019
Snippets to illustrate getting started with Terraform in Azure DevOps
#!/usr/bin/env bash
set -euo pipefail
# Create unique name for storage account
STORAGE_ACCOUNT=$(echo "terraform-${ID}" | tr '[:upper:]' '[:lower:]' | sed 's/-//g' | cut -c1-24)
jamesrcounts / settings.json
Last active Nov 28, 2019
VSCode Settings
View settings.json
"files.autoSave": "afterDelay",
"workbench.colorTheme": "Visual Studio Light",
"cSpell.userWords": [
"workbench.iconTheme": "material-icon-theme",
jamesrcounts / boxstarter.ps1
Created Jan 9, 2019 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <>
# Last Updated: 2017-09-11
# Install boxstarter:
# . { iwr -useb } | iex; get-boxstarter -Force
# You might need to set: Set-ExecutionPolicy RemoteSigned
# Run this boxstarter by calling the following from an **elevated** command-prompt:
jamesrcounts /
Created Jun 11, 2015
Python Challenge 0
url = ""
print(url % 2**38)
jamesrcounts / starter.cmd
Last active Mar 11, 2019
Boxstarter: Windows 10
View starter.cmd
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-WindowsOptionalFeature -Online -FeatureName containers –All
choco install Microsoft-Hyper-V-All -source windowsFeatures
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
jamesrcounts /
Created Jun 5, 2015
Tortise Text Reporter for Python
from subprocess import call
from approvaltests.Reporter import Reporter
class TortoiseTextReporter(Reporter):
def get_command(approved_path, received_path):
return ['C:\\Program Files\\TortoiseSVN\\bin\\tortoisemerge.exe', received_path, approved_path]
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=$HOME/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
jamesrcounts /
Created Apr 16, 2015
Recursive Square Attempt
package org.teachingkidsprogramming.section05recursion;
import org.teachingextensions.logo.Tortoise;
public class RecursiveSquare
public static void main(String[] args) throws Exception
double length = 100.0;
jamesrcounts / starter.cmd
Created Mar 30, 2015
Minimal box starter
View starter.cmd
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
choco install googlechrome
Set-ExecutionPolicy -Force Unrestricted
You can’t perform that action at this time.