Skip to content

Instantly share code, notes, and snippets.

View sheldonhull's full-sized avatar
👋
Hi! Who keeps their github status up to date? You get a 🌮 just for reading this

sheldonhull sheldonhull

👋
Hi! Who keeps their github status up to date? You get a 🌮 just for reading this
View GitHub Profile
@sheldonhull
sheldonhull / MobyLinux.ps1
Last active May 30, 2018 20:39 — forked from biggyspender/MobyLinux.ps1
Set DockerNAT switch to be a private network
# See comment lines prefixed with ADDED
# It might be necessary to delete the existing DockerNAT switch in hyper-v manager
<#
.SYNOPSIS
Manages a MobyLinux VM to run Linux Docker on Hyper-V
.DESCRIPTION
Creates/Destroys/Starts/Stops A MobyLinux VM to run Docker on Hyper-V
.PARAMETER VmName
@sheldonhull
sheldonhull / Add_TakeOwnership_ContextMenu.reg
Created November 18, 2017 05:15 — forked from aielwaste/Add_TakeOwnership_ContextMenu.reg
Add Take Ownership to Explorer Context Menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
/*! Github Dark Theme v1.13.0 (5/15/2015) *//*
* https://github.com/StylishThemes/GitHub-Dark
* http://userstyles.org/styles/37035
* License: http://sam.zoy.org/wtfpl/
*/
/* AGENT_SHEET */
body {
background-color: #222 !important;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAgMAAAANjH3HAAAACVBMVEUaGhohISElJSUh9lebAAAB20lEQVRIx4XWuZXDMAwE0C0SAQtggIIYoAAEU+aKOHhYojTrYP2+QfOW/5QIJOih/q8HwF/pb3EX+UPIveYcQGgEHiu9hI+ihEc5Jz5KBIlRRRaJ1JtoSAl5Hw96hLB1/up1tnIXOck5jZQy+3iU2hAOKSH1JvwxHsp+5TLF5MOl1/MQXsVs1miXc+KDbYydyMeUgpPQreZ7fWidbNhkXNJSeAhc6qHmHD8AYovunYyEACWEbyIhNeB9fRrH3hFi0bGPLuEW7xCNaohw1vAlS805nfsrTspclB/hVdoqusg53eH7FWot+wjYpOViX8KbFFKTwlnzvj65P9H/vD0/hibYBGhPwlPO8TmxRsaxsNnrUmUXpNhirlJMPr6Hqq9k5Xn/8iYQHYIuQsWFC6Z87IOxLxHphSY4SpuiU87xJnJr5axfeRd+lnMExXpEWPpuZ1v7qZdNBOjiHzDREHX5fs5Zz9p6X0vVKbKKchlSl5rv+3p//FJ/PYvoKryI8vs+2G9lzRmnEKkh+BU8yDk515jDj/HAswu7CCz6U/Mxb/PnC9N41ndpU4hUU7JGk/C9PmP/M2xZYdvBW2PObyf1IUiIzoHmHW9yTncliYs9A9tVNppdShfgQaTLMf+j3X723tLeHgAAAABJRU5ErkJ
@sheldonhull
sheldonhull / gists-solarized-dark.css
Created August 5, 2017 20:03 — forked from RomkeVdMeulen/gists-solarized-dark.css
CSS for styling embedded gists in Solarized Dark
/* Solarized Dark for embedded gists
http://ethanschoonover.com/solarized
*/
.gist .highlight, .gist .blob-code-inner { font-size: inherit !important }
.gist .highlight { line-height: 1.25em !important }
.gist .gist-meta { background-color: #073642 !important; color: #93a1a1 !important }
.gist .gist-meta a { color: #268bd2 !important }
.gist .gist-data, .gist .highlight { background-color: #002b36 !important; color: #93a1a1 !important }
@sheldonhull
sheldonhull / Open-Registry.ps1
Created April 25, 2017 16:45 — forked from DBremen/Open-Registry.ps1
Description for Open-Registry.ps1
function Open-Registry{
[CmdletBinding()]
[Alias("regJump")]
param(
[Parameter(Position=0)]
$regKey
)
#check for clipbaord only if no argument provided
if (!$regKey){
#split the clipboard content by crlf and get of trailing crlf in case clipboard populated via piping it to clip.exe
@sheldonhull
sheldonhull / GoAwayModalDialogs.ahk
Created January 12, 2017 23:44 — forked from noahcoad/GoAwayModalDialogs.ahk
Automates away pesky modal dialogs.
; ==========================================================================================
; == Modal Dialog Automation
; ==
; == Automates away pesky modal dialogs by applying a default response when they pop up
; == Helper functions are at the bottom
; ==========================================================================================
; Defaults to fast no-regex title matching
SetTitleMatchMode, 2
@sheldonhull
sheldonhull / Outlook Column Formula
Created June 7, 2016 16:07 — forked from peteristhegreat/Outlook Column Formula
Relative Date Time in Outlook and Excel (minutes ago, hours ago, days ago), like Gmail
Go to:
Ribbon > View > View Settings > Columns... > New Column...
Name: "Ago"
Type: Formula
Formula:
IIF( Now() - [Received] <1/24, MINUTE( Now()-[Received] ) & " minutes ago",IIF( Now()-[Received] <1, HOUR( Now()-[Received] ) & " hours ago",IIF( Now()-[Received] <31, INT( Now()-[Received] ) & " days ago", "months ago")))