Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile
scoop alias add ls 'scoop list'
scoop alias add cc 'scoop cache rm *'
scoop alias add rm 'scoop uninstall $args[0]'
scoop alias add c 'scoop cleanup $args[0]'
scoop alias add s 'scoop search $args[0]'
scoop alias add i 'scoop install $args[0]'
scoop alias add ri 'scoop rm $args[0] && scoop cache rm $args[0] && scoop install $args[0]'
scoop alias add u 'scoop update $args[0]'
scoop alias add ru 'scoop cache rm $args[0] && scoop update $args[0]'
scoop alias add up 'scoop update * && scoop cleanup *'
@ly4096x
ly4096x / teamsautohang.js
Created November 14, 2021 07:23
Teams meeting auto hangup
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://teams.microsoft.com/*
// @icon https://www.google.com/s2/favicons?domain=teams.microsoft.com
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Generic Streaming Site Improvements
// @namespace http://onai.net/
// @version 0.2
// @description Removing junk for Generic Streaming Sites
// @author Kevin Gwynn
// @match https://dudestream.com/*
// @match http://dudestream.com/*
// @match https://embedstream.me/*
// @match https://crackstreams.biz/*
@Nothing4You
Nothing4You / dashboard.user.js
Last active November 29, 2023 23:57
hacky replacement dashboard script to show b/s and i/s values
// ==UserScript==
// @name betterDashboard
// @namespace Nothing4You
// @match https://tracker.archiveteam.org/*/
// @grant none
// @version 1.2.0
// @author Nothing4You
// @description adds more information to archive team tracker dashboards
// @updateURL https://gist.githubusercontent.com/Nothing4You/b127b3cc4d4fabe372dcf078dbe86070/raw/dashboard.user.js
// ==/UserScript==
@technion
technion / CVE-2021-40444Mit.ps1
Last active September 12, 2021 08:43
CVE-2021-40444 Mitigation Script
Set-Strictmode -Version 2
# Applies reg keys from https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-40444
# Although the above document is still "Revision 1.0", Microsoft has removed the WOW6432 section
for($i = 0; $i -le 3; $i++) {
$RegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\$i"
if (-not (Test-Path $RegPath)) {
New-Item $RegPath -Force
}
@lawndoc
lawndoc / HiveNightmareFix.ps1
Created July 21, 2021 18:28
HiveNightmare ACL Fix (and Shadow Copies)
#change permissions and delete shadows
$checkPermissions = icacls c:\Windows\System32\config\sam
if ($checkPermissions -like '*BUILTIN\Users:(I)(RX*)*') {
icacls c:\windows\system32\config\*.* /inheritance:e
vssadmin delete shadows /quiet /all
$vulnerable = $true
}
else {
$vulnerable = $false
}
@jtmoon79
jtmoon79 / python-embedded-for-Win10.md
Last active April 16, 2025 01:38
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@lukemurraynz
lukemurraynz / DattoRMMpowerShellAppDeploymentToolkitCommand.ps1
Last active July 19, 2021 02:12
DattoRMMpowerShellAppDeploymentToolkitCommand.ps1
#This is the name of the zip file in the component. Make sure that the PowerShell App Deployment Toolkit is zipped.
$ZipFile = "DesktopSOE.zip"
#This will create a folder called: C:\Temp (these folders can be changed to suit your requirements)
Mkdir c:\Temp -Force
#This will create a folder called: C:\Temp\DesktopSOE\ (these folders can be changed to suit your requirements)
Mkdir C:\Temp\DesktopSOE\ -Force
#This will then copy your PowerShellAppDeployment Toolkit to a folder, outside of the CentraStage Packagestore location.
Copy-Item -Path "$ZipFile" -Destination "C:\Temp\$ZipFile" -Recurse
$DestinationFolder = $ZipFile.Split(".")[0]
#This will then extract your PowerShell App Deployment Toolkit and run it.
@peterthehan
peterthehan / ClipboardToFile.ahk
Last active November 13, 2022 21:42
Paste into Explorer to save your clipboard as a webp, jpeg, png, or txt file.
#NoEnv
#SingleInstance, Force
SetWorkingDir %A_ScriptDir%
return
getActiveExplorerPath()
{
; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=69925
explorerHwnd := WinActive("ahk_class CabinetWClass")
@eddiezato
eddiezato / EdgeCheck.ps1
Last active November 5, 2024 07:02
PowerShell [5.1+]: script to get Microsoft Edge Offline Installers (can be extracted with 7zip)
# params
[CmdletBinding(DefaultParameterSetName="Casual")]
param (
[Alias("c")]
[Parameter(ParameterSetName = "Pro", Mandatory = $true)]
[ValidateSet("stable", "beta", "dev", "canary")]
[string]$Channel,
[Alias("v")]
[Parameter(ParameterSetName = "Pro", Mandatory = $true)]
[ValidateNotNullOrEmpty()]