Skip to content

Instantly share code, notes, and snippets.

View aidansteele's full-sized avatar
🏠
Working from home

Aidan Steele aidansteele

🏠
Working from home
View GitHub Profile
@aidansteele
aidansteele / automation.yml
Created September 4, 2017 00:21
aws-updatewindowsami in yaml
---
schemaVersion: '0.3'
description: Updates a Microsoft Windows AMI. By default it will install all Windows
updates, Amazon software, and Amazon drivers. It will then sysprep and create a
new AMI. Supports Windows Server 2008 R2 and greater.
assumeRole: "{{ AutomationAssumeRole }}"
parameters:
SourceAmiId:
type: String
description: "(Required) The source Amazon Machine Image ID."
# escape=`
FROM microsoft/windowsservercore
SHELL ["powershell", "-Command"]
RUN Set-ExecutionPolicy -ExecutionPolicy Bypass
ENV chocolateyUseWindowsCompression false
RUN iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
RUN choco feature enable -n allowEmptyChecksums
RUN choco install -y -r nuget.commandline
@aidansteele
aidansteele / Program.cs
Created October 26, 2016 05:01
docker shell shenanigans
using System;
using System.Diagnostics;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
var startInfo = new ProcessStartInfo {
def hockeyApiToken = '<elided>'
node('xcode8') { // node() is how we specify which build agent we want to run on
color {
stage('checkout') { // stage() is how we label parts of our pipeline. they can be visualised in the web ui.
checkout scm // we have to pull our code down from git first!
}
stage('bundler') {
// we use ruby's bundler to ensure our versions of cocoapods and fastlane are correct
@aidansteele
aidansteele / Dockerfile
Last active August 29, 2016 10:39
perfect template
FROM swiftdocker/swift:latest
RUN sudo sed -i 's/archive.ubuntu.com/au.archive.ubuntu.com/g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y \
libcurl3-dev \
openssl \
uuid-dev
WORKDIR /app
import maker
import streams
makeFormat(MachData):
f(firstField, int32, default: 4)
f(secondField, string, length: firstFiend)
f(thirdField, string, length: firstField + 6, value: abc)
let s = "\x05\x00\x00\x00abcxxxdefxxx"
let stream = newStringStream(s)
From 6eea25f98c361458e2840b03cea256f8a4e790fa Mon Sep 17 00:00:00 2001
From: Aidan Steele <[email protected]>
Date: Fri, 3 Jul 2015 09:58:37 +1000
Subject: [PATCH] change
---
compile.c | 13 ++++++++++---
load.c | 16 ++++++++++++++++
2 files changed, 26 insertions(+), 3 deletions(-)
# gem install guard
# gem install guard-shell
# guard - watch the Magic™
guard 'shell', :elixirc_bin => "/usr/local/elixirc" do
watch(/(.+\.ex$)/) { |m| `elixirc #{m[0]}` }
end
guard 'shell', :elixir_bin => "/usr/local/elixir" do
watch(/(.+\.exs)/) { |m| `elixir #{m[0]}` }
end
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MKMapView", referenced from:
objc-class-ref in Reveal(IBAMKMapViewSerializer.o)
l_OBJC_$_CATEGORY_MKMapView_$_IBASerializer in Reveal(IBAMKMapViewSerializer.o)
"_OBJC_CLASS_$_GLKView", referenced from:
objc-class-ref in Reveal(IBAGLKViewSerializer.o)
l_OBJC_$_CATEGORY_GLKView_$_IBASerializer in Reveal(IBAGLKViewSerializer.o)
"_OBJC_CLASS_$_MKAnnotationView", referenced from:
objc-class-ref in Reveal(IBAMKAnnotationViewSerializer.o)
l_OBJC_$_CATEGORY_MKAnnotationView_$_IBASerializer in Reveal(IBAMKAnnotationViewSerializer.o)
require 'cfpropertylist'
raise "#{$0}: Usage: #{$0} SourceSkin.bundle Customisations.bundle TargetSkin.bundle" unless ARGV.count == 3
source, custom, target = ARGV
CONFIG_NAME = "configuration.plist"
def plist_from_path(path)
CFPropertyList.native_types(CFPropertyList::List.new(:file => path).value) if File.exists?(path)
end