Skip to content

Instantly share code, notes, and snippets.

View josephb4224's full-sized avatar
:octocat:

Joseph Baker josephb4224

:octocat:
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josephb4224
josephb4224 / Create-Cacher-Server.ps1
Last active October 24, 2025 00:50
These commands are for setting up and starting a Cacher CLI Server to be abe to run commands from Cacher to my local machine.
# 1. confirm node & npm
node -v
npm -v
# 2. create folder and server file
mkdir $env:USERPROFILE\Projects\NodeProjects\node-test
cd $env:USERPROFILE\Projects\NodeProjects\node-test
notepad server.mjs # paste your ESM server code and save
# 3. run server
@josephb4224
josephb4224 / README.md
Created October 13, 2025 21:24 — forked from zadjii-msft/README.md
Terminal 1.18 Selfhost Settings

Terminal 1.18 Selfhost Settings

Collection of settings for our 1.18 bug bash. Last updated for 1.18.833

There's also a collection of files for your shell config as well. I made them all separate, especially the pwsh ones, so people could combine as needed. I know folks have complicated shell prompts already. The one I have there is fairly trivial, but should include all the marks you need to get started. Wrap your own prompt as needed.

Shell-completion integration

Make sure that the key in Set-MappedKeyHandlers matches the contents of the sendInput command bound in the actions. In this sample, the Terminal internally passes F12b to pwsh to drive the menu.

@josephb4224
josephb4224 / 7-Zip Compression Settings Guide.md
Created October 11, 2025 21:59 — forked from ZelnickB/7-Zip Compression Settings Guide.md
Contains descriptions of the various configurable settings used when compressing files in 7-Zip

7-Zip Compression Settings Guide

Archive Format

For the purposes of this document, we will be using 7-Zip's own 7z archive format

Compression level

Dictates the amount the file(s) should be compressed, on a scale from Store (no compression, fastest speed) to Ultra (highest compression, slowest speed).

Compression method

Determines the algorithm to be used in compressing the files. The best algorithm is generally considered to be LZMA2 (Lempel–Ziv–Markov Chain Algorithm version 2).

Dictionary size

Dictates the dictionary size to be used when compressing the files.

@josephb4224
josephb4224 / PowerShellSingleFileScriptTemplate.ps1
Created October 1, 2025 07:26 — forked from deadlydog/PowerShellSingleFileScriptTemplate.ps1
PowerShell template for a single-file script
<#
.SYNOPSIS
PUT SHORT SCRIPT DESCRIPTION HERE AND ADD ANY ADDITIONAL KEYWORD SECTIONS AS NEEDED (.PARAMETER, .EXAMPLE, ETC.).
#>
[CmdletBinding()]
param (
# PUT PARAMETER DEFINITIONS HERE AND DELETE THIS COMMENT.
)
process {
@josephb4224
josephb4224 / README.md
Created September 24, 2025 01:17 — forked from roachhd/README.md
Cool Notepad tricks for Windows

Cool Notepad tricks for Windows

Notepad, the text editor that comes bundled in Windows is an excellent tool for text editing. But that is not the only thing for which notepad is famous. It is also famous for its tricks and hacks. Here is a roundup of some of the best and coolest tricks that you can try using Notepad.

![][1]

Matrix Falling Code Effect - Notepad CMD (.BAT) Tricks

function Get-InstalledSoftware {
<#
.SYNOPSIS
Get all installed from the Uninstall keys in the registry.
.DESCRIPTION
Read a list of installed software from each Uninstall key.
This function provides an alternative to using Win32_Product.
.EXAMPLE
Get-InstalledSoftware
@josephb4224
josephb4224 / magic-wormhole-relay.md
Created July 8, 2025 04:44 — forked from iamkominn/magic-wormhole-relay.md
Setting up a Relay for Magic Wormhole

To set up a relay server for Magic Wormhole (a secure peer-to-peer file transfer tool), you need to deploy a transit relay component. This relay helps peers establish direct connections when they cannot communicate directly due to NAT/firewalls. Here's how to set it up:


1. Install the Transit Relay

Magic Wormhole’s transit relay is a separate Python-based server. Install it using pip:

# Install Python and pip (if not already installed)
sudo apt install python3 python3-pip # Debian/Ubuntu
@josephb4224
josephb4224 / Domain Enumeration Commands
Created June 20, 2025 06:29 — forked from insi2304/Domain Enumeration Commands
Common Domain Enumeration commands in Windows, Mac, and LDAP
Domain: TEST.local
User Enumeration:
Windows:
net user
net user /domain
net user [username]
net user [username] /domain
wmic useraccount
Mac:
dscl . ls /Users
@josephb4224
josephb4224 / wmic_cmds.txt
Last active August 28, 2025 00:16 — forked from insi2304/wmic_cmds.txt
Useful Wmic queries for host and domain enumeration
## Host Enumeration:
--- OS Specifics ---
```batch
wmic os LIST Full # (* To obtain the OS Name, use "caption" property)
wmic computersystem LIST full
```