Skip to content

Instantly share code, notes, and snippets.

View jimmcslim's full-sized avatar

James Webster jimmcslim

  • Brisbane, Australia
View GitHub Profile
@jimmcslim
jimmcslim / gist:1914126
Created February 26, 2012 06:04
MonoTouch install error
[2012-02-26 06:03:24.637] [Info] Installation ID: ac042fc5-c4b6-4f17-a538-3779028c6e2a
[2012-02-26 06:03:24.644] [Info] Operating system: Mac OS X v10.7.3 (10.7.3; Mac OS X 10.7.3 (10.7.3 build version: 11D50)), 32-bit
[2012-02-26 06:03:24.644] [Info] Installer for: MonoTouch
[2012-02-26 06:03:24.645] [Info] Installer version: 2.0.1.41918
[2012-02-26 06:03:24.645] [Info] Status: in progress
[2012-02-26 06:03:24.645] [Debug] Manifest retrieval task starting.
[2012-02-26 06:03:24.645] [Info] Retrieving installation manifest.
[2012-02-26 06:03:24.645] [Info] Downloading from 'http://xamarin.com/download/installer/Mac/MonoTouch/eval/InstallationManifest.xml'.
[2012-02-26 06:03:25.453] [Debug] Waiting for manifests to finish downloading.
@jimmcslim
jimmcslim / gist:4520910
Created January 12, 2013 22:58
MonoTouch upgrade error (OS X Mountain Lion): logged-in user is not an administrator, but has provided admin credentials to elevate when requested. still fails due to authorization issues?
13/01/13 8:30:57.584 AM Xamarin Update[57413]: Reading index file
13/01/13 8:30:57.586 AM Xamarin Update[57413]: Loaded 2 updates from index file
13/01/13 8:30:57.587 AM Xamarin Update[57413]: Requesting root authorization
13/01/13 8:31:02.113 AM Xamarin Update[57413]: Acquired root authorization
13/01/13 8:31:02.114 AM Xamarin Update[57413]: Updates require restart, terminating MonoDevelop and related apps
13/01/13 8:31:02.139 AM Xamarin Update[57413]: Installing update 1 of 2
13/01/13 8:31:02.139 AM Xamarin Update[57413]: Attaching disk image '/Users/jim/Library/Caches/MonoDevelop-3.0/TempDownload/a3140c14-ef90-4019-ae6c-9d93804d6611-30006000.dmg'
13/01/13 8:31:02.140 AM Xamarin Update[57413]: /usr/bin/hdiutil attach '/Users/jim/Library/Caches/MonoDevelop-3.0/TempDownload/a3140c14-ef90-4019-ae6c-9d93804d6611-30006000.dmg' -mountrandom /tmp -nobrowse -plist
13/01/13 8:31:03.480 AM Xamarin Update[57413]: Installing application '/private/tmp/dmg.gM65bv/MonoDevelop.app'
13/01/13 8:31:03.480 AM Xamarin Update[57
@jimmcslim
jimmcslim / consul.debug.log
Created February 18, 2015 04:23
Log of Consul Template
2015/02/18 14:08:52 [INFO] (runner) creating new runner (dry: false, once: false)
2015/02/18 14:08:52 [INFO] (runner) creating consul/api client
2015/02/18 14:08:52 [DEBUG] (runner) setting address to nas01:8500
2015/02/18 14:08:52 [INFO] (runner) creating Watcher
2015/02/18 14:08:52 [INFO] (runner) starting
2015/02/18 14:08:52 [DEBUG] (runner) running initial templates
2015/02/18 14:08:52 [INFO] (runner) running
2015/02/18 14:08:52 [DEBUG] (runner) checking template services.html.tmpl
2015/02/18 14:08:52 [INFO] (brain) getting data for catalog services
2015/02/18 14:08:52 [INFO] (runner) was not watching 1 dependencies
(defn my-test [x]
(.log js/console "I have run for " x)
(+ x 10)
)
(defn my-memoize [x]
(fn [a]
(let [my-memoize-atom (atom {})]
(let [my-atom @!my-memoize-atom]
(if (contains? my-atom a)
@jimmcslim
jimmcslim / RoyalTS-Helpers.ps1
Created September 22, 2015 06:30
A collection of Powershell functions that make the RoyalTS Powershell module a little more sane to work with.
function Load-RoyalDocument
{
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)] [string] $Path
)
$cred = Get-Credential
$store = New-RoyalStore -UserName $cred.UserName
$document = Open-RoyalDocument -Store $store -FileName $path -Password $cred.Password
@jimmcslim
jimmcslim / Grok.cs
Created October 28, 2015 07:11
Bare-bones Grok implementation in C#, translated from http://stackoverflow.com/a/23078970/28381
var Types = new Dictionary<string, string>
{
{"WORD", @"\w+"},
{"NUMBER", @"\d+"},
};
var grok = new Regex(@"%{(\w+):(\w+)}");
MatchEvaluator e = match => string.Format("(?<{0}>{1})", match.Groups[2].Value, Types[match.Groups[1].Value]);
var regex = new Regex(grok.Replace("%{WORD:method} %{NUMBER:bytes} %{NUMBER:duration}", e));
using System;
using System.Security;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Runtime.CompilerServices;
namespace net.visibleblue.util
{
public static class SecureStringExtensions
{
@jimmcslim
jimmcslim / gist:58d82277eaf82a3b8ec4
Created January 25, 2016 03:30
Quick demo of creating a spreadsheet
using System.IO;
using System.Linq;
using OfficeOpenXml; // comes from EPPlus
namespace SpreadsheetGenerationSample
{
class Program
{
static void Main(string[] args)
{

Keybase proof

I hereby claim:

  • I am jimmcslim on github.
  • I am jimmcslim (https://keybase.io/jimmcslim) on keybase.
  • I have a public key ASBT50ipVd_wUBR-tbIoW1n3GlKj380Bn7vqONIjGzACDgo

To claim this, I am signing this object:

@jimmcslim
jimmcslim / TestStack.Dossier.Parent.Child.cs
Created October 7, 2019 21:16
Demonstrating constructing parent/child relationships via TestStack Dossier.
using System;
using System.Collections.Generic;
using System.Linq;
using Shouldly;
using TestStack.Dossier;
using TestStack.Dossier.Lists;
using Xunit;
namespace Dossier
{