Skip to content

Instantly share code, notes, and snippets.

View MatthewSteeples's full-sized avatar

Matthew Steeples MatthewSteeples

View GitHub Profile
@HQJaTu
HQJaTu / trigger-Azure-CDN-certificate-update.ps1
Created June 18, 2019 18:57
Azure CDN certificate update trigger
#Requires -Version 6.0
<#
The MIT License (MIT)
Copyright (c) 2019 Jari Turkia (jatu@hqcodeshop.fi)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@gabrielgreen
gabrielgreen / AccountingEntities.cs
Created January 30, 2013 21:30
QuickBooks schema, code first EF
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Text;
namespace Accounting.Domain.Entities
{
@laszlomiklosik
laszlomiklosik / Git: undo git rm for a single file
Created October 4, 2012 14:43
Git: undo git rm for a single file
git checkout HEAD path/to/file
# Without HEAD it's not working because the file is not there anymore
@j3tm0t0
j3tm0t0 / Upload2Glacier.ps1
Created August 21, 2012 09:11
Upload a file to Glacier PowerShell script version
Add-Type -Path "C:\Program Files (x86)\AWS SDK for .NET\bin\AWSSDK.dll"
$region="ap-northeast-1"
$accesskey="ACCESSKEY"
$secretkey="SECRETKEY"
$vaultname="myvault"
$description="some binary file"
$file="c:\hoge\target.bin"
$endpoint = [Amazon.RegionEndpoint]::GetBySystemName($region)
@XeroAPI
XeroAPI / gist:1119628
Created August 2, 2011 04:54
XeroAPI.Net Mini App
static void Main(string[] args)
{
IOAuthSession session = new XeroApi.OAuth.XeroApiPrivateSession(
"XeroAPI Mini App",
"YOUR-CONSUMER-KEY",
new X509Certificate2(@"D:\Your-Certificate.pfx", "your-pfx-password"));
Repository repository = new Repository(session);
Console.WriteLine("You're connected to " + repository.Organisation.Name);