Skip to content

Instantly share code, notes, and snippets.

Weekly Review

Get clear

  • Weekly wipedown
  • Collect loose items and get into physical inbox
  • Inbox Zero
    • Physical inbox
    • Personal Gmail
    • Work email - Outlook
@Jaykul
Jaykul / WslInstall.psm1
Last active September 23, 2024 07:58
Install WSL2 distros non-interactively
function Add-WslUser {
<#
.SYNOPSIS
Adds a user to a WSL distro
#>
[CmdletBinding()]
param(
# The distro to add the user to
[Parameter(Mandatory)]
$Distribution,
@r00t-3xp10it
r00t-3xp10it / Invoke-WDigest.ps1
Last active July 25, 2024 04:46
WDigest credential caching [Memory]
<#
.SYNOPSIS
WDigest credential caching [Memory]
Author: @r00t-3xp10it
Credits: @wh0nsq [BypassCredGuard.exe]
Credits: @BenjaminDelpy [mi`mi`katz.exe]
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: Administrator privileges
Optional Dependencies: WDigest, BypassCredGuard.exe
@DaWe35
DaWe35 / Win11-context.md
Last active October 13, 2025 17:56
Windows 11 new context menu customization

If you like the design and the speed of the new context menu, but you find it useless, I have good news for you: you can customize it and make the new Win11 context more personalized.

Remove unused items

To remove unused items, you must remove items from the registry. You'll find some items in these folders, but you can also search for specific items you see in the context menu.

HKEY_CLASSES_ROOT\Folder\shell\ (Do NOT remove opennewwindow - it is required for file explorer to work on your windows tray.)

HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\

@deadlydog
deadlydog / PowerShellUtilities.psm1
Last active November 4, 2024 07:43
Powershell Invoke-ScriptBlockWithRetries function to execute arbitrary PowerShell code and automatically retry if an error occurs
function Invoke-ScriptBlockWithRetries {
[CmdletBinding(DefaultParameterSetName = 'RetryNonTerminatingErrors')]
param (
[Parameter(Mandatory = $true, HelpMessage = "The script block to execute.")]
[ValidateNotNull()]
[scriptblock] $ScriptBlock,
[Parameter(Mandatory = $false, HelpMessage = "The maximum number of times to attempt the script block when it returns an error.")]
[ValidateRange(1, [int]::MaxValue)]
[int] $MaxNumberOfAttempts = 5,
@r00t-3xp10it
r00t-3xp10it / Invoke-VaultCmd.ps1
Last active January 31, 2025 11:38
Manage Windows Password Vault Items
<#
.SYNOPSIS
Manage Windows Password Vault Items
Author: @r00t-3xp10it
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: VaultSvc, VaultCmd
Optional Dependencies: none
PS cmdlet Dev version: v1.3.8
@r00t-3xp10it
r00t-3xp10it / Find-Strings.ps1
Last active August 26, 2024 07:08
Search for strings inside files
<#
.SYNOPSIS
Search for Strings\Regex inside files
Author: @r00t-3xp10it (ssa redteam)
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: none
Optional Dependencies: VaultSvc, VaultCmd
PS cmdlet Dev version: v1.1.21
@jgeusebroek
jgeusebroek / readwise_obsidian_export.md
Created December 29, 2022 20:40
Readwise Obsidian export templates

File name

{{last_highlighted_date |date('Y-m-d')}} {{title|replace(""","")|replace(""","")|replace("'","")|replace("'","")|truncate(159)}} by {{author|replace("@","")|truncate(80)}}

Add date and sanitize filename.

Page Metadata

{% if image_url -%}
![rw-book-cover]({{image_url}})
@Ad-Shaikh
Ad-Shaikh / Microsoft.PowerShell_profile.ps1
Last active August 5, 2023 19:12
PowerShell Profile including Oh My Posh, Terminal Icons, PSReadLine IntelliSense, and z
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
@dancingfrog
dancingfrog / plumber-w-shiny.R
Created December 5, 2022 05:10
Plumber with proxy to Shiny (toy) app running in background cluster
library("future")
library("httr")
library("magrittr")
library("plumber")
library("shiny")
library("uuid")
library("websocket")
library("R6")
shiny_port <- 5174