This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get-SSLSigningAlgorithm { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory = $true, ValueFromPipeline = $true, Position = 0)] | |
[string]$URL, | |
[Parameter(Position = 1)] | |
[ValidateRange(1,65535)] | |
[int]$Port = 443, | |
[Parameter(Position = 2)] | |
[Net.WebProxy]$Proxy, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript | |
*/ | |
$('a').each(function(i){ | |
if ($.trim($(this).text()) == 'MOBI') { | |
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
document.getElementById('dl_iframe_'+i).src = $(this).data('web'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PARAM ([array]$Principals = ($env:USERNAME), $OSEmulation = $false, $Details = $false) | |
#************************************************ | |
# CheckMaxTokenSize.ps1 | |
# Version 2.0 | |
# Date: 9/18/2014 | |
# Author: Tim Springston [MS] | |
# Description: Query for all token items (groups, SIDs, SIDHistory) and calculate an | |
# estimated current token size for the logged on user. Calls out if the token is potentially too | |
# large for consistently successful use based on operating system defaults. | |
# KB http://support.microsoft.com/kb/327825 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smbus2 | |
import time | |
# Get I2C bus; SHT31 address 0x44(68) | |
bus = smbus2.SMBus(1) | |
bus.write_i2c_block_data(0x44, 0x2C, [0x06]) | |
time.sleep(0.5) | |
# SHT31 address 0x44(68) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/(?:and)(?:\s|(?:%20))(?:"|\'|(?:%27))?(\d)(?:"|\'|(?:%27))?(?:\s|(?:%20))?(?:=|(?:%3D))?(?:\s|(?:%20))?(?:"|\'|(?:%27))?(?:\s|(?:%20))?\1/gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE OperationsManager | |
GO | |
SELECT | |
CASE | |
WHEN LOWER(ManagedEntityGenericView.DisplayName) LIKE LOWER('%.%') | |
THEN REPLACE(SUBSTRING(ManagedEntityGenericView.DisplayName,1,CHARINDEX('.',ManagedEntityGenericView.DisplayName)),'.','') | |
ELSE ManagedEntityGenericView.DisplayName | |
END AS host, | |
CASE | |
WHEN InMaintenanceMode = 1 THEN 'Yes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT distinct | |
SYS.Name0 AS 'host', | |
SYS.User_Name0 AS 'sccm_login_name', | |
CASE | |
WHEN SYS.User_Domain0 = SYS.Name0 THEN 'WORKGROUP' | |
ELSE SYS.User_Domain0 | |
END AS 'sccm_domain', | |
CASE | |
WHEN SYS.Client0 = 1 THEN 'Yes' | |
WHEN SYS.Client0 = 0 THEN 'No' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
fcm.Name AS 'host', | |
cg.CollectionName AS 'sccm_collection_name', | |
fcm.CollectionID AS 'sccm_collection_id', | |
sw.Name AS 'sccm_mw_name', | |
CASE sw.ServiceWindowType | |
WHEN '1' THEN 'All Deployments' | |
WHEN '4' THEN 'Software Updates' | |
WHEN '5' THEN 'Task Sequences' | |
END AS 'sccm_mw_type', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
fcm.Name AS 'host', | |
fcm.CollectionID AS 'sccm_su_collection_id', | |
cg.CollectionName AS 'sccm_su_colection_name' | |
FROM v_FullCollectionMembership fcm | |
JOIN Collections_G cg ON cg.SiteID = fcm.CollectionID | |
WHERE cg.CollectionName LIKE 'SU-%' | |
ORDER BY host |
OlderNewer