Skip to content

Instantly share code, notes, and snippets.

@JustinGrote
JustinGrote / Start-MSIEmulator.ps1
Last active December 23, 2025 05:14
A Managed Identity Emulator for testing Managed Identities locally. Returns a token from your currently logged in Azure PowerShell context
#requires -Module Az.Accounts
$verbosePreference = 'continue'
function ConvertFrom-JWTtoken {
<#
.NOTES
Lovingly borrowed from: https://www.michev.info/blog/post/2140/decode-jwt-access-and-id-tokens-via-powershell
#>
[cmdletbinding()]
param([Parameter(Mandatory = $true)][string]$token)
@iscgar
iscgar / kdz.py
Last active December 23, 2025 05:13
A correct extractor for LG's KDZ Android image files
# A simple and correct LG KDZ Android image extractor, because I got fed up
# with the partially working one from kdztools.
#
# Copyright (c) 2021 Isaac Garzon
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@hamoid
hamoid / justTheDocsToPDF.bash
Last active December 23, 2025 05:05
Downloads a just-the-docs website and converts it into a PDF file for offline reading
#!/bin/bash
filename="openrndr-guide"
domain="guide.openrndr.org"
path="" # /some/folder/ if the guide is not located at /
mkdir -p /tmp/manual
cd /tmp/manual || exit
# curl downloads the index page of the website

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@dimitribouniol
dimitribouniol / main.swift
Created December 22, 2025 11:58
ISO8601 Date Formatter Benchmarks
import AppKit
@main
struct DateFormatters {
static func main() {
let iterations = 100_000
let startInterval: TimeInterval = 780_000_000
time("Create Date Baseline") {
var results: [Date] = []
@teocci
teocci / how-to-ssh-into-windows.md
Created October 13, 2022 08:07
How to SSH into Windows 10 or 11?

How to SSH into Windows 10 or 11?

The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.

OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.

@CypherpunkSamurai
CypherpunkSamurai / LDPlayer AIO.md
Last active December 23, 2025 04:47
LDPlayer AIO (Debloat Ad-Block, Root, Custom Rom, Magisk, LSPosed)
title tags
LDPlayer AIO (Debloat, AdBlock, Magisk Root, Custom Rom, Burp Suite, Mitmproxy)
ldplayer, android

LDPlayer AIO (Debloat, AdBlock, Magisk Root, Custom Rom, Burp Suite, Mitmproxy)

Requirements

  • Brain 🧠 [NOT OPTIONAL]
  • LDPlayer
  • ADB (optional, included in LDPlayer Root Folder)
@osipxd
osipxd / !paper-versions.md
Last active December 23, 2025 04:47
Paper versions links