Skip to content

Instantly share code, notes, and snippets.

View MANICX100's full-sized avatar

Danny Kendall MANICX100

  • Nottingham, UK
  • 07:30 (UTC +01:00)
View GitHub Profile
@Nejat
Nejat / winget-updates.ps1
Last active March 14, 2023 11:48
Lists and optionally upgrades available updates. Skips Unknown versions or anything in the skip list
param(
# provide a configuration file to define package handling
[string] $skipFile = "wngt-cfg",
# true to upgrade eligible packages, false dry run
[switch] $upgrade = $false
)
# adjust buffer size of output, really don't know if this helps ¯\_(ツ)_/¯
if ($Host -and $Host.UI -and $Host.UI.RawUI) {
$rawUI = $Host.UI.RawUI
@andrewgodwin
andrewgodwin / QuakeTerminal.ahk
Created February 15, 2020 17:41
AutoHotkey script for making Windows Terminal appear/disappear with a single keypress
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
F12::ToggleTerminal()
ShowAndPositionTerminal()
{
WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS
@jimmywarting
jimmywarting / readme.md
Last active July 22, 2024 15:13
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@kkeybbs
kkeybbs / chrome_flags.updated.js
Last active February 5, 2024 07:47
Backup chrome flags to json and restore the backup on another machine.
// 2022-04-03, tested with Chrome 99.0.4844.84 on MacBook Pro m1
/*
Open chrome://flags/
F12 open developer console, swtich to tab "Console"
Paste below codes
- input backup() to download flags backup file
- input restore() to select one backup to restore
*/
function saveFile(filename, data) {