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
@abombss
abombss / sample.ps1
Created April 18, 2013 07:49
TFS and Powershell
# Load some types initially so the cmdlets work
Add-TFSApiAssembly
# Create a TFS TeamProjectCollection and extend it with some common service properties for easy access
$tfs = Get-Tfs -Uri https://tfs.somedomain.com/tfs/ProjectCollection -Services BS, VCS, TM -Verbose
# You can write cmdlets or you can use the built in API and add your own extensions
$buildDefinitions = Get-TfsBuildDefinition -Tfs $tfs -TeamProject MyProject
# $buildDefinitions = $tfs.BS.QueryBuildDefinitions('MyProject')
@cdhunt
cdhunt / Get-CredentialFromWindowsCredentialManager.ps1
Last active September 4, 2024 19:46 — forked from toburger/Get-CredentialFromWindowsCredentialManager.ps1
Gets a PowerShell Credential [PSCredential] from the Windows Credential Manager. This only works for Generic Credentials.
<#
.SYNOPSIS
Gets a PowerShell Credential (PSCredential) from the Windows Credential Manager
.DESCRIPTION
This module will return a [PSCredential] object from a credential stored in Windows Credential Manager. The
Get-StoredCredential function can only access Generic Credentials.
Alias: GSC
@j3tm0t0
j3tm0t0 / ShowLocaltimeInCWMC.user.js
Last active August 14, 2019 19:10
Show Localtime in CloudWatch Management Console
// ==UserScript==
// @name ShowLocaltimeInCWMC
// @namespace j3tm0t0.gmail.com
// @description Show Localtime in CloudWatch Management Console
// @include https://console.aws.amazon.com/cloudwatch/home*
// @version 1.1
// ==/UserScript==
$(document).ready(function(){
var f=function()
{
@kendellfab
kendellfab / golang-request
Created August 26, 2013 14:27
Golang Example for adding custom headers to a request.
client := &http.Client{]
req, err := http.NewRequest("POST", "http://example.com", bytes.NewReader(postData))
req.Header.Add("User-Agent", "myClient")
resp, err := client.Do(req)
defer resp.Body.Close()
@hofmannsven
hofmannsven / README.md
Last active September 25, 2025 11:20
Git CLI Cheatsheet
@diego898
diego898 / rd.md
Last active October 13, 2020 21:18
Enable Concurrent Remote Desktop Users in Windows 8.1 x64

thanks to @neurodyne and this link for updated instructions

This works with the following versions of termsrv.dll

x64 - termsrv.dll - 6.3.9600.17095

Find Replace
39813C0600000F849E310500 B80001000089813806000090
090085C07F078BD8 090085C090908BD8
@ijy
ijy / sublime-text-3-setup.md
Last active March 7, 2025 20:44
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@Ceda
Ceda / Greasemonkey cms textarea code highlight.js
Last active August 19, 2020 06:53
Greasemonkey cms textarea code highlight
// ==UserScript==
// @name Blueberry CMS
// @namespace http://blueberry.cz/user/ceda
// @description Highlights the HTML syntax for Textareas in block editor
// @include http://cms.blueberry.cz/*
// @require http://codemirror.net/lib/codemirror.js
// @require http://codemirror.net/addon/fold/foldcode.js
// @require http://codemirror.net/addon/fold/foldgutter.js
// @require http://codemirror.net/addon/fold/xml-fold.js
// @require http://codemirror.net/mode/xml/xml.js
@23maverick23
23maverick23 / font_awesome.rb
Last active September 24, 2024 14:47
Jekyll: Font Awesome icons Liquid tag
##
# The MIT License (MIT)
#
# Copyright (c) 2014 Ryan Morrissey
#
# 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
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@roundand
roundand / OpenWithSublimeText3.bat
Last active July 1, 2025 06:05 — forked from mrchief/LICENSE.md
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f