Skip to content

Instantly share code, notes, and snippets.

@brianbolger
brianbolger / gist:7506e6f32e8aee60bc80
Last active August 29, 2015 14:11
Tampermonkey script to load jQuery to a page
addJQuery(main);
function addJQuery(callback)
{
var script = document.createElement("script");
script.setAttribute("src", "https://code.jquery.com/jquery-1.11.1.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
@brianbolger
brianbolger / gist:2007169
Created March 9, 2012 15:45
Check a list of machines for PowerShell remoting access
function CheckMachineForRemoteAccess()
{
$enabled
$session
try
{
$ErrorActionPreference = 'SilentlyContinue'
$session = New-PSSession -ComputerName $_
$enabled = $session.Availability
@brianbolger
brianbolger / AutoHotkey Google Search
Created February 22, 2012 13:13
Search Google from any app via AutoHotkey & clipboard contents