Skip to content

Instantly share code, notes, and snippets.

View nonchris's full-sized avatar
๐Ÿ‘€
Why isn't it moving?

Chris G nonchris

๐Ÿ‘€
Why isn't it moving?
View GitHub Profile
@leximayfield
leximayfield / retroarch.md
Last active May 4, 2025 05:38
Setting up RetroArch on a Raspberry Pi

Setting up RetroArch on a Raspberry Pi

I just put the finishing touches on my Raspberry Pi 3 emulation machine running RetroArch. I was not a huge fan of RetroPie due to the reliance on Emulation Station - more moving parts meant that there were more things that could potentially break. I just wanted something that would run raw RetroArch, no frills.

This tutorial is mostly recreated from memory and was most recently tested with a Raspberry Pi 3 running Raspbian Stretch and RetroArch 1.7.7. If there is a mistake or a broken link, PLEASE message me and I will fix it.

Step 1: Install Raspbian

I used Raspbian Stretch Lite from this page. Write the image to your SD card using something like Win32 Disk Imager, or if you're using OSX/Linux follow a tutorial on how to write the image using dd.

@EvieePy
EvieePy / error_handler.py
Last active February 18, 2026 14:54
Simple Error Handling for Prefix and App commands - discord.py
import logging
import discord
from discord import app_commands
from discord.ext import commands
LOGGER: logging.Logger = logging.getLogger(__name__)
@EvieePy
EvieePy / bot_example.py
Last active August 4, 2025 01:32
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.
@brentjanderson
brentjanderson / Howto.md
Created February 20, 2018 17:55
SSH Tunneling with Firefox

Sometimes it is useful to route traffic through a different machine for testing or development. At work, we have a VPN to a remote facility that we haven't bothered to fix for routing, so the only way to access a certain machine over that VPN is via an SSH tunnel to a machine that is reachable over the VPN. Other times, I have used this technique to test internet-facing requests against sites I am developing. It is pretty easy, and if you don't use firefox regularly, you can treat Firefox as your "Proxy" browser and other browsers can use a normal configuration (Although you can also configure an entire system to use the proxy, other articles exists that discuss this potential).

  1. Open a terminal
@vmandic
vmandic / batch install vscode extensions
Created July 25, 2018 14:08
Batch install vscode extensions with PowerShell
# Script for batch installing Visual Studio Code extensions
# Specify extensions to be checked & installed by modifying $extensions
$extensions =
"DotJoshJohnson.xml",
"EditorConfig.EditorConfig",
"HookyQR.beautify",
"Leopotam.csharpfixformat",
"ecmel.vscode-html-css",
"formulahendry.auto-close-tag",
@nonchris
nonchris / discord-custom-help-command.py
Last active August 13, 2024 03:40
A kinda advanced custom "help" command for your Discord.py bots!
import discord
from discord.ext import commands
from discord.errors import Forbidden
"""This custom help command is a perfect replacement for the default one on any Discord Bot written in Discord.py!
However, you must put "bot.remove_command('help')" in your bot, and the command must be in a cog for it to work.
Original concept by Jared Newsom (AKA Jared M.F.)
[Deleted] https://gist.github.com/StudioMFTechnologies/ad41bfd32b2379ccffe90b0e34128b8b
Rewritten and optimized by github.com/nonchris
@marco79cgn
marco79cgn / dm-toilet-paper-wheat-flour.js
Last active April 16, 2026 18:40
iOS Widget, das die Anzahl an Klopapier und Mehl Packungen in deiner nรคchsten dm Drogerie anzeigt (fรผr die scriptable.app)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: gray; icon-glyph: magic;
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: magic;
// dm Klopapier & Mehl Widget
//
// Copyright (C) 2020 by marco79 <marco79cgn@gmail.com>
//
@BobDotCom
BobDotCom / breaking-changes-pyc.md
Last active July 8, 2022 23:13
Breaking changes in Pycord 2.0

Breaking Changes of pycord 2.0

These are the breaking changes of pycord version 2.0. This gist is copied from breaking-changes-dpy.md and will be maintained for pycord.

"Breaking change" includes:

  • [R]emoval: a feature is removed.
  • [N]ame changes: a feature is renamed.
  • [B]ehavior: something does not behave the way they did in 1.x.
  • [T]yping: types of arguments, attributes or return values changes in an incompatible way. (e.g. None disallowed for argument)
@qb20nh
qb20nh / canon_map.py
Last active August 14, 2025 07:21
Unicode alphanumeric lookalikes
canon_map = {
"a": ["รƒ", "รฅ", "ฤ‚", "ฤ…", "ฦ›", "วŸ", "ษ‘", "ฮ”", "ฮ›", "ฮฌ", "ฮฑ", "ฮป", "ะ”", "ะฐ", "ิน", "เธ„", "แƒ›", "แˆ", "แŽฏ", "แ—", "แ•ฑ", "แ—…", "แ—ฉ", "แด€", "แดฌ", "แตƒ", "โ‚", "โ‚ณ", "โบ", "โ“", "ๅ‚", "๊ฒ", "๊‹ซ", "๊‹ฌ", "๊", "๊ช–", "๏ฝ", "๏พ‘", "๐š", "๐‘Ž", "๐’‚", "๐’ถ", "๐“ช", "๐”ž", "๐•’", "๐–†", "๐–บ", "๐—ฎ", "๐˜ข", "๐™–", "๐šŠ", "๐›‚", "๐›ผ", "๐œถ", "๐ฐ", "๐žช", "๐Ÿ„ฐ", "๐Ÿ…", "๐Ÿ…ฐ", "๐Ÿ‡ฆ\u200c",],
"b": ["รŸ", "ฦ", "ฦ„", "ษ“", "ษฎ", "ส™", "ฮฒ", "ฯ", "ฯฆ", "ะ‘", "ะฌ", "ะฑ", "ะฒ", "า", "ี…", "เธฟ", "เน’", "เน–", "แ‚ฆ", "แƒฉ", "แƒช", "แŒŒ", "แ", "แฐ", "แ‘ฒ", "แ–ฏ", "แ—ท", "แ™˜", "แฅ‡", "แดฎ", "แต‡", "โ“‘", "โ™ญ", "ไนƒ", "๊ƒƒ", "๊ƒฒ", "๊ƒณ", "๊‹ฐ", "๊Œƒ", "๊—", "๊ช‰", "๏ฝ‚", "๐’ˆ", "๐›", "๐‘", "๐’ƒ", "๐’ท", "๐“ซ", "๐”Ÿ", "๐•“", "๐–‡", "๐–ป", "๐—ฏ", "๐˜ฃ", "๐™—", "๐š‹", "๐Ÿ„ฑ", "๐Ÿ…‘", "๐Ÿ…ฑ", "๐Ÿ‡ง\u200c",],
"c": ["ยข", "รง", "ฤ†", "ฤŒ", "ฦ‡", "ฦˆ", "ศผ", "ฯ‚", "ฯฒ", "ั", "ี‡", "เฅฎ", "เซฎ", "แƒ”", "แ„ƒ", "แˆญ", "แˆ", "แŸ", "แฃ", "แ‘•", "แ‘ข", "แ‘ค", "แฏ", "แฅด", "แจถ", "แด„", "แถœ", "โ‚ก", "โ‚ต", "โ„‚", "โ…ฝ", "โ“’", "โ˜พ", "โฒฅ", "ใ„ˆ", "ๅŒš", "๊€ฏ", "๊‡ƒ", "๊‰“", "๊‰”", "๊ณ", "๊ธ", "๊’", "๊ฎฏ", "๏ฝƒ", "๐ฝ", "๐’จ", "๐œ", "๐‘", "๐’„", "๐’ธ", "๐“ฌ", "๐” ", "๐•”", "๐–ˆ", "๐–ผ", "๐—ฐ", "๐˜ค", "๐™˜", "๐šŒ", "๐Ÿ„ฒ", "๐Ÿ…’", "๐Ÿ…ฒ", "๐Ÿ‡จ\u200c",],
"d": ["ร", "ฤŽ", "ฤ", "ฤ", "ฦŠ", "

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W