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
# 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 <aidan.steele@rea-group.com>
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
function getSafeID() {
var idLen = 50;
var vResult = '';
var browser1 = navigator.userAgent || '98d879sd7fIUODCOISAUCA9s8d7fs98d7fs98fd7s';
var browser2 = navigator.appVersion || '7sJKSFHKSJFDd98f7sdf98s7df9s8d7f9';
var browser3 = navigator.vendor || 'oa87f98s7df98sd7f98dsfs9e';
var browser4 = navigator.platform || 'gHHpldsf987s0fs0d9fs0fdease';
var hashMe = browser1 + browser2 + browser3 + browser4 + '00000000000000000000000000000000000000000000000000';