Skip to content

Instantly share code, notes, and snippets.

View tombolide's full-sized avatar

Tommy K tombolide

  • Genesys
  • Ireland
View GitHub Profile
@roysubs
roysubs / what-function
Last active May 23, 2025 19:28
Try to give meaningful information about any Variable, Cmdlet, Function, Alias, External Script, Application
# Find definitions for any Cmdlet, Function, Alias, External Script, Application, or Variable
function what {
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[ArgumentCompleter({ [Management.Automation.CompletionResult]::Command })]
$cmd,
[switch]$Examples
)
# Previously declared $cmd as [string]$cmd but this was wrong as cannot then handle arrays or anything else
@BestPig
BestPig / analogue-pocket-game-patches.md
Last active October 29, 2025 15:08
Patches to convert GameBoy ROM to `.pocket` (Analogue Pocket ROM)

Patches

Those patches are to convert GameBoy ROM to .pocket ROM. This allows you to play games from the SD Card on your Analogue Pocket.
Feature like RTC and Link cable seems to be unsupported by the Analogue Pocket in GB Studio mode.

Legend of Zelda, The - Link's Awakening DX

GitHub: https://github.com/BestPig/LADX-Disassembly-Pocket

Zelda no Densetsu - Yume o Miru Shima DX

using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@roysubs
roysubs / ProfileExtensions.ps1
Last active May 23, 2025 19:19
Called from $profile to add functionality to console settings
########################################
#
# ProfileExtensions.ps1
#
# The profile extensions is normally called by a single line that is added to
# the end of $Profile, or can be dotsourced manually if required.
#
# The handler line in $Profile performs the following:
# a) It check if $($Profile)_extensions.ps1 exists, if not download it.
# b) It then runs (dotsource) $($Profile)_extensionss.ps1.
@mhudasch
mhudasch / Microsoft.PowerShell_profile.ps1
Last active May 23, 2025 19:32
The ultimate ps profile for devs
########################################
## Initial data collection inside the host
########################################
$OutputEncoding = [System.Text.Encoding]::Default;
[Console]::OutputEncoding = $OutputEncoding;
$InformationPreference = "Continue";
if ($([System.Environment]::GetCommandLineArgs() -join " ") -inotmatch "(?i)-(?:nologo|noniteractive|noecho)" -and
($([System.Environment]::GetCommandLineArgs() -join " ") -inotmatch "(?i)-command" -or
($([System.Environment]::GetCommandLineArgs() -join " ") -imatch "(?i)-command" -and $([System.Environment]::GetCommandLineArgs() -join " ") -inotmatch ('(?i)\' + $([io.path]::DirectorySeparatorChar) + '(?i)\\(?:.*?(?<!shellIntegration|hr))\.ps1')))) {
@pcgeek86
pcgeek86 / cheatsheet.ps1
Last active May 10, 2026 03:58
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
@fnky
fnky / ANSI.md
Last active May 9, 2026 22:02
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@msuchodolski
msuchodolski / README.md
Created September 14, 2018 09:10 — forked from magnetikonline/README.md
Bash array usage cheatsheet.
@matthewzring
matthewzring / markdown-text-101.md
Last active May 9, 2026 08:57
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@jchandra74
jchandra74 / PowerShell Customization.md
Last active December 25, 2025 13:11
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.