Skip to content

Instantly share code, notes, and snippets.

View akatakritos's full-sized avatar

Matt Burke akatakritos

View GitHub Profile
@akatakritos
akatakritos / msbuild.rake
Last active August 29, 2015 14:28 — forked from anonymous/msbuild.rake
Example Rake tasks for @avdi (.NET Web Development with Cygwin)
sln = Dir.glob("*.sln").first
msbuild = "/cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe"
desc "msbuild the solution"
task :build do
sh msbuild, sln
end
desc "runs nunit on valid UnitTests.*.dll assemblies"
task :test => [:build] do
@akatakritos
akatakritos / Rollbar.targets
Last active August 29, 2015 14:20 — forked from matt-hensley/Rollbar.targets
Rollbar.targets for Azure - pull Rollbar settings from Azure environment variables
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="NotifyRollbarOfDeploy" AfterTargets="MSDeployPublish;CopyAllFilesToSingleFolderForPackage">
<Exec Command="git log -1 --format=%%H" ConsoleToMSBuild="true" EchoOff="true">
<Output TaskParameter="ConsoleOutput" PropertyName="GitSHA" />
</Exec>
<Exec Command="git config user.email" ConsoleToMSBuild="true" EchoOff="true" WorkingDirectory="$(ProjectDir)\..">
<Output TaskParameter="ConsoleOutput" PropertyName="GitEmail" />
</Exec>
@akatakritos
akatakritos / root-based-category-urls.php
Last active December 16, 2015 10:29 — forked from mikeschinkel/root-based-category-urls.php
Added PREG_DELIM to stop warning about unknown modifier
<?php
/*
* Plugin Name: Root-based Category URLs
* Description: Enables root-based Category URLs, i.e. Makes /category/my-category/ URLs route as /my-category/
* Author: Mike Schinkel
* Author URI: http://about.me/mikeschinkel
* Plugin URI: https://gist.github.com/1421235
* Version: 0.1.1
* License: GPL 2+
*/