Skip to content

Instantly share code, notes, and snippets.

View lbussell's full-sized avatar

Logan Bussell lbussell

View GitHub Profile
@mthalman
mthalman / Dockerfile.md
Created April 12, 2024 00:54
Chiseled PowerShell
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS installer

RUN mkdir /pwsh-symlink \
    && ln -s /usr/share/powershell/pwsh /pwsh-symlink/pwsh

FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled

COPY --from=installer /usr/share/powershell /usr/share/powershell
COPY --from=installer ["/pwsh-symlink", "/usr/bin"]
@SonoSooS
SonoSooS / DMGCPU.MD
Last active November 12, 2024 22:18
Game Boy CPU internals

This document is intended to document certain inner workings of the CPU.

There have been efforts by emu-russia and gekkio to have the CPU decapped, and so we have the decode ROM accessible to us. This means, that we know exactly what each opcode does (besides some nuanced behavior related to HALT, STOP, and some state management related to interrupts and power saving which are hard to untangle).

Table of contents

@mort3za
mort3za / git-auto-sign-commits.sh
Last active May 28, 2024 20:51
Auto sign your git commits
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands)
gpg --gen-key
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null`
# check current keys:
gpg --list-secret-keys --keyid-format LONG
# See your gpg public key:
gpg --armor --export YOUR_KEY_ID
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333)