Skip to content

Instantly share code, notes, and snippets.

View dan-turner's full-sized avatar

Dan Turner dan-turner

View GitHub Profile
@dan-turner
dan-turner / Outlook-NineMSN-Remover.user.js
Last active October 7, 2015 20:49
Outlook.com: NineMSN bar remover - Greasemonkey Script
// ==UserScript==
// @name Outlook.com Ninemsn bar remover
// @namespace #DanTurner
// @description For users of Outlook.com.
// @include https://*.mail.live.com/*
// @version 1.0.6
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @homepage https://gist.github.com/dan-turner/3223401
// @updateURL https://gist.github.com/dan-turner/3223401/raw/Outlook-NineMSN-Remover.user.js
// ==/UserScript==
@dan-turner
dan-turner / SMH-Ad-Remover.user.js
Last active December 14, 2015 01:39
SMH Ad Remover - Greasemonkey Script
// ==UserScript==
// @name SMH Ad Remover
// @namespace #DanTurner
// @description For readers of SMH.
// @include http://www.smh.com.au/*
// @version 1.0.7
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @homepage https://gist.github.com/dan-turner/3224254
// @updateURL https://gist.github.com/dan-turner/3224254/raw/SMH-Ad-Remover.user.js
// ==/UserScript==
@dan-turner
dan-turner / News-Ad-Remover.user.js
Last active October 7, 2015 22:08
News.com.au Ad Remover - Greasemonkey Script
// ==UserScript==
// @name News.com.au Ad Remover
// @namespace #DanTurner
// @description For readers of News.com.au.
// @include http://www.news.com.au/*
// @version 1.0.2
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @homepage https://gist.github.com/dan-turner/3232291
// @updateURL https://gist.github.com/dan-turner/3232291/raw/News-Ad-Remover.user.js
// ==/UserScript==
@dan-turner
dan-turner / TripIt-Ad-Remover.user.js
Last active October 7, 2015 22:08
TripIt Ad Remover - Greasemonkey Script
// ==UserScript==
// @name TripIt Ad Remover
// @namespace #DanTurner
// @description For users of Tripit.
// @include http://www.tripit.com/*
// @version 1.0.1
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @homepage https://gist.github.com/dan-turner/3232415
// @updateURL https://gist.github.com/dan-turner/3232415/raw/TripIt-Ad-Remover.user.js
// ==/UserScript==
@dan-turner
dan-turner / gist:3662895
Last active October 10, 2015 08:28
Git Aliases
[alias]
st = status
ci = commit
br = branch
co = checkout
com = checkout master
fe = fetch origin
bn = !git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`
rb = rebase
rbm = rebase master
@dan-turner
dan-turner / .gitconfig
Last active February 24, 2016 23:42
Git Config
[core]
editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor
autocrlf = true
[credential]
helper = !\\\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\\\"
[user]
name = ####Your name here####
email = ####Your email here####
[merge]
tool = BeyondCompare4
@dan-turner
dan-turner / gist:9891688
Created March 31, 2014 12:55
ECC Certs OpenSSL
Eliptical Curve Cert
* openssl ecparam -out private.pem -name prime256v1 -genkey
* openssl req -new -key private.pem -x509 -nodes -days 365 -out public.cer
* openssl pkcs12 -export -in public.cer -inkey private.pem -out export.pfx -CSP "Microsoft Enhanced RSA and AES Cryptographic Provider"
@dan-turner
dan-turner / gist:f9930ddf9cf08861f0b9
Created November 12, 2014 07:45
LegacyAuthenticationMiddleware
using System;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Infrastructure;
using Owin;
namespace Identity.Web
@dan-turner
dan-turner / Microsoft.PowerShell_profile.ps1
Last active August 29, 2015 14:12
Powershell Profile
# Load posh-git example profile
. $env:USERPROFILE'\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1'
# Set environment variables for Visual Studio Command Prompt
pushd 'c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC'
cmd /c "vcvarsall.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
@dan-turner
dan-turner / cricket-australia-fullscreen.css
Created November 17, 2015 04:43
Cricket Australia Fullscreen - Stylish
.fat_score,
.fat-score {
z-index: -9999;
}
.mc-advert,
.current-players,
.fat-score,
.stream-switcher,
.MC-streamButtons,
.MC-statsNav {