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
@qb20nh
qb20nh / canon_map.py
Last active August 14, 2025 07:21
Unicode alphanumeric lookalikes
canon_map = {
"a": ["Ã", "å", "Ă", "ą", "ƛ", "ǟ", "ɑ", "Δ", "Λ", "ά", "α", "λ", "Д", "а", "Թ", "ค", "მ", "ል", "Ꭿ", "Ꮧ", "ᕱ", "ᗅ", "ᗩ", "ᴀ", "ᴬ", "ᵃ", "ₐ", "₳", "⍺", "ⓐ", "卂", "ꁲ", "ꋫ", "ꋬ", "ꍏ", "ꪖ", "a", "ム", "𝐚", "𝑎", "𝒂", "𝒶", "𝓪", "𝔞", "𝕒", "𝖆", "𝖺", "𝗮", "𝘢", "𝙖", "𝚊", "𝛂", "𝛼", "𝜶", "𝝰", "𝞪", "🄰", "🅐", "🅰", "🇦\u200c",],
"b": ["ß", "Ɓ", "Ƅ", "ɓ", "ɮ", "ʙ", "β", "ϐ", "Ϧ", "Б", "Ь", "б", "в", "ҍ", "Յ", "฿", "๒", "๖", "Ⴆ", "ჩ", "ც", "ጌ", "Ꮟ", "Ᏸ", "ᑲ", "ᖯ", "ᗷ", "ᙘ", "᥇", "ᴮ", "ᵇ", "ⓑ", "♭", "乃", "ꃃ", "ꃲ", "ꃳ", "ꋰ", "ꌃ", "ꍗ", "ꪉ", "b", "𐒈", "𝐛", "𝑏", "𝒃", "𝒷", "𝓫", "𝔟", "𝕓", "𝖇", "𝖻", "𝗯", "𝘣", "𝙗", "𝚋", "🄱", "🅑", "🅱", "🇧\u200c",],
"c": ["¢", "ç", "Ć", "Č", "Ƈ", "ƈ", "ȼ", "ς", "ϲ", "с", "Շ", "८", "૮", "ე", "ᄃ", "ር", "ፈ", "Ꮯ", "Ꮳ", "ᑕ", "ᑢ", "ᑤ", "ᝯ", "ᥴ", "ᨶ", "ᴄ", "ᶜ", "₡", "₵", "ℂ", "ⅽ", "ⓒ", "☾", "ⲥ", "ㄈ", "匚", "ꀯ", "ꇃ", "ꉓ", "ꉔ", "ꏳ", "ꏸ", "꒝", "ꮯ", "c", "𐐽", "𐒨", "𝐜", "𝑐", "𝒄", "𝒸", "𝓬", "𝔠", "𝕔", "𝖈", "𝖼", "𝗰", "𝘤", "𝙘", "𝚌", "🄲", "🅒", "🅲", "🇨\u200c",],
"d": ["Ð", "Ď", "ď", "Đ", "Ɗ", "
@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)
@marco79cgn
marco79cgn / dm-toilet-paper-wheat-flour.js
Last active October 6, 2025 12:04
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 <[email protected]>
//
@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
@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
@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.
@EvieePy
EvieePy / error_handler.py
Last active July 7, 2025 05:48
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__)
@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.