Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name vmware open console in new tab
// @namespace http://agartner.com
// @version 0.2
// @description opens vmrc console in new tab rather than window. also forces html5 console if html5 = true. forces external if externalConsle = true
// @match https://vcloud.ialab.us/cloud/org/*
// @copyright 2014-2017, Alex Gartner
// ==/UserScript==
unsafeWindow.openPopoutConsole = function(vmName, vmId, vAppName, vmDevicesAvailable, buttonLabels, miscLabels, confirmationLabels, isVmrc) {
// ==UserScript==
// @name Auto Steam Discovery Queue
// @namespace http://steamcommunity.com/id/zetx/
// @description Go to next game queued as soon as page is done loading.
// @include http://store.steampowered.com/app/*
// @include http://store.steampowered.com/explore/*
// @include http://store.steampowered.com/agecheck/app/*
// @version 2.01
// @run-at document-end
// @grant none
@drautb
drautb / CMake: Variable Dump
Created July 3, 2013 20:11
This snippet will dump all CMake variables to the build output
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
@refractalize
refractalize / decrypt.rb
Created January 4, 2012 20:11
Decrypt HTTP Live Streaming TS files
def read_m3u8(m3u8)
File.open(m3u8, 'r') do |file|
keyfile = nil
iv = 0
file.each_line do |line|
line.chomp!
if line =~ /^#EXT-X-KEY:METHOD=AES-128,URI="(.*?)"(,IV=0x(.*))?/
keyfile = $1
if $2
iv = $3