Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
@mark05e
mark05e / my_ie_proxy.ahk
Last active May 16, 2024 16:37
AHK Script with GUI to enable/disable proxy. Works on Win10 too!
; my_ie_proxy.ahk
;#################################################################################
; Enable/Disable IE Proxy with GUI
;#################################################################################
; ref: //autohotkey.com/board/topic/101854-switch-proxy-on-or-off/?p=634033
global AddressPort = "proxy.myproxyprovider.com:1234"
Gui, Add, Text, x20 cBlue, %AddressPort%
Gui, Add, Button, x26 y20 w100 h30 Gon , I'm at work
@mark05e
mark05e / set_ie_proxy.ahk
Created August 29, 2019 07:05
AHK Script to enable/disable proxy. Works on Win10 too!
; set_ie_proxy.ahk
;#################################################################################
; Enable/Disable IE Proxy
;#################################################################################
; ref: https://autohotkey.com/board/topic/101854-switch-proxy-on-or-off/?p=633874
SetProxy("proxy.myproxyprovider.com:1234",1)
,HostProxy=RegRead(,,"ProxyServer")
,ProxyStatus=RegRead(,,"ProxyEnable")
# ██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗██████╗
# ██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██║ ██║██╔══██╗
# ██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ██║█████╗ ███████║██████╔╝
# ██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██║██╔═══╝
# ██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗ ██║ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ ╚═╝ ╚═╝╚═╝
#
# ██████╗ ██╗ ██████╗ █████╗ ████████╗██╗ ██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██║ ██╔═══██╗██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██████╔╝██║ ██║ ██║███████║ ██║ ██║ █╗ ██║███████║██████╔╝█████╗
@mark05e
mark05e / apache-superset-on-windows10.md
Last active May 14, 2024 01:30
Installing Apache Superset on Windows 10

Installing Apache Superset on Windows 10

⚠️ WARN: This doc might be outdated. Use with caution. Only tested with Python v3.7

🙋‍♂️ INFO: If you have fixes/suggestions to for this doc, please comment below.

🌟 STAR: This doc if you found this document helpful.


# https://stackoverflow.com/questions/43690336/powershell-to-read-single-value-from-simple-ini-file
function Get-IniFile
{
param(
# Required parameter specifying the path to the INI file.
[parameter(Mandatory = $true)] [string] $filePath
)
$anonymous = "NoSection"
// Sheet 1 - Description,Category
// Sheet 2 - CC Transactions.
// Run main() with Sheet 2 active.
function insertTitle(sheet, destinationColumnName, title) {
console.log(destinationColumnName)
var titleCell = sheet.getRange(destinationColumnName + "1");
titleCell.setValue(title);
}
@mark05e
mark05e / Remove-HPbloatware.ps1
Last active May 4, 2024 23:40
Remove HP bloatware
# ██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗██████╗
# ██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██║ ██║██╔══██╗
# ██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ██║█████╗ ███████║██████╔╝
# ██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██║██╔═══╝
# ██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗ ██║ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ ╚═╝ ╚═╝╚═╝
#
# ██████╗ ██╗ ██████╗ █████╗ ████████╗██╗ ██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██║ ██╔═══██╗██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██████╔╝██║ ██║ ██║███████║ ██║ ██║ █╗ ██║███████║██████╔╝█████╗
@mark05e
mark05e / RemoveWebroot.ps1
Last active May 3, 2024 23:09
PowerShell script to forcefully remove Webroot SecureAnywhere. It is recommended to run the script twice, with a reboot after the first run.
# Removes Webroot SecureAnywhere by force
# Run the script once, reboot, then run again
# Webroot SecureAnywhere registry keys
$RegKeys = @(
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\WRUNINST",
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\WRUNINST",
"HKLM:\SOFTWARE\WOW6432Node\WRData",
"HKLM:\SOFTWARE\WOW6432Node\WRCore",
"HKLM:\SOFTWARE\WOW6432Node\WRMIDData",
@mark05e
mark05e / xml2incontactstudiomultilinestring.md
Created April 25, 2024 19:55
XML to inContact Studio Multiline String

XML to inContact Studio Multiline String

Example

Input

<?xml version="1.0"?>
<note date="12/11/99">
<to>Tove</to>
Jani
# RESET OFFICE ACTIVATION STATE
# https://docs.microsoft.com/en-us/office/troubleshoot/activation/reset-office-365-proplus-activation-state
# by: https://gist.github.com/mark05e
#
# Lines to look out for:
# > The four steps above can be automated using OLicenseCleanup.vbs. Simply download and run the script with elevated privileges.
# > To clear all WAM accounts associated with Office on the device, download and run the signoutofwamaccounts.ps1 script with elevated privileges.
# > To automate WPJ removal, download WPJCleanUp.zip, extract the folder, and run WPJCleanUp.cmd.