Skip to content

Instantly share code, notes, and snippets.

View lukegackle's full-sized avatar
😃

Luke Gackle lukegackle

😃
View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent]
"Compatible"="compatible"
"Version"="Windows NT 6.2"
"Platform"="MSIE 10.0"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"KeePass.exe"=dword:00002af8
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google]
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"ForceEphemeralProfiles"=dword:00000001
"SavingBrowserHistoryDisabled"=dword:00000001
"SyncDisabled"=dword:00000001
"PasswordManagerEnabled"=dword:00000000
"SigninAllowed"=dword:00000000
"HideWebStoreIcon"=dword:00000001
@lukegackle
lukegackle / rp.js
Created September 19, 2020 01:20
Request-Promise Standard Format
rp('http://www.google.com')
.then(function (htmlString) {
// Process html...
})
.catch(function (err) {
// Crawling failed...
});
@lukegackle
lukegackle / RPSimplified.js
Created September 19, 2020 01:27
Request-Promise Simplified
//Build the request
let req = {
method: "GET",
uri: "https://www.google.com.au",
port: 443,
resolveWithFullResponse: true
};
//Make the request
let resp = await rp(req);
@lukegackle
lukegackle / Redirect Standard Output of External Program to PowerShell
Last active February 27, 2021 04:26
Redirect standard output in PowerShell or standard error output, allowing you to capture output from another program in PowerShell. https://lukestoolkit.blogspot.com/2021/02/redirect-standard-output-from-external.html
# Setup redirection
$StartInfo = New-Object System.Diagnostics.ProcessStartInfo -Property @{
FileName = "$env:SystemRoot\System32\ping.exe"
Arguments = "127.0.0.1"
UseShellExecute = $false
RedirectStandardOutput = $true #If true redirects standard output from the application
RedirectStandardError = $true #If true redirects error output from the application
CreateNoWindow = $true #Should the process create its own window? Or should it be hidden?
}
@lukegackle
lukegackle / Google My Maps, enlarge icons CSS
Created June 21, 2021 08:59
Google My Maps, enlarge icons CSS
img[src*="/icon/name=icons"], #map-renderer-container div[role="group"] div{
width: 50px!important;
height: 50px!important;
}
@lukegackle
lukegackle / OutlookSharedMailboxSyncingFix.ps1
Last active March 30, 2022 13:03
This script deletes any instance of the reg key "0102663e" as advised by MS Support, this key can become corrupted, leading to emails not syncing for shared mailboxes.
#-----------------------------------------------------------
# Fix for Shared Mailboxes Not Syncing Outlook
#
# This script deletes any instance of the reg key "0102663e"
# as advised by MS Support, this key can become corrupted,
# leading to emails not syncing for shared mailboxes.
#
# MS bug log:
# https://admin.microsoft.com/#/servicehealth/history/:/alerts/EX316072
# https://support.microsoft.com/en-us/office/shared-mailbox-is-not-automatically-refreshing-for-new-email-in-outlook-94b97f45-c57c-45f3-9716-f3f6bec47c73