Skip to content

Instantly share code, notes, and snippets.

@olivertappin
olivertappin / eof-line.md
Last active November 2, 2026 21:22
Why You Should Always End Files With a Newline (EOF Line)

📄 Why You Should Always End Files With a Newline

One of the most common (and often misunderstood) code review comments is:

“Please add a newline at the end of the file.”

In GitHub, you’ll see a little "⛔ no entry" icon at the end of a file when this is missing. This Gist explains why it matters, when it's necessary, and how to fix or automate it in your editor or workflow.


@TameemS
TameemS / debloatNox.md
Last active October 20, 2026 11:38 — forked from Log1x/debloatNox.md
Debloating & Optimizing Nox (Updated)

More of my guides: Debloating MEMu - Debloating LDPlayer

Log1x's guide is pretty outdated, so I have made an updated version

Debloating Nox (Updated)

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

This guide is mainly targeted at Android 12. It may work on Android 5, 7 and 9 inst

from nicegui import ui, page
from dataclasses import dataclass
from typing import Callable
@dataclass
class Route:
path: str
callback: Callable
@JustSteveKing
JustSteveKing / pint.json
Last active September 14, 2026 09:29
Laravel Pint configuration
{
"preset": "per",
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
@xt0rted
xt0rted / README.md
Last active January 9, 2026 19:26
Auto-merge Dependabot PRs for minor & patch updates

README

Note

I'm now using a newer version of this workflow that supports an allow list for individual packages and update groups which can be found here:

If you're using a workflow like this and need to manage secrets in multiple repos xt0rted/secrets-sync can simplify that. This lets you add secrets to one repo and sync them to many repos. There's also a template you can fork to get started quickly with it.

Personal Access Token

@smvd
smvd / FlappyBird.c
Last active August 7, 2026 18:23
flappy bird writen in c running in the terminal
/*
_ _ _ _____ _ ____ _
| \ | | ___ | |_ | ___| | __ _ _ __ _ __ _ _ | _ \ _ _ ___| | __
| \| |/ _ \| __| | |_ | |/ _` | '_ \| '_ \| | | | | | | | | | |/ __| |/ /
| |\ | (_) | |_ | _| | | (_| | |_) | |_) | |_| | | |_| | |_| | (__| <
|_| \_|\___/ \__| |_| |_|\__,_| .__/| .__/ \__, | |____/ \__,_|\___|_|\_\
|_| |_| |___/
compiler : GCC
command : gcc source.c -o FlappyBird.exe -Werror -Wall -W -s
license : www.unlicense.org (Please credit my channel tho)
@TameemS
TameemS / debloatMEmu.md
Last active November 8, 2026 08:44
Debloating & Optimizing MEmu

Inspired by this

More of my guides: Debloating LDPlayer - Debloating Nox (Updated)

Edit 22/8/2021: I have updated MEmu and it seems like it reinstalls the apps and re-enables the services. Repeat steps 5, 7, 8, and 9 if you update MEmu.

Debloating MEmu

In my experience, Nox can be quite slow and choppy, and looks like I'm not the only person with this problem. A lot of people say that MEmu performs better than Nox, and I could agree with that. I have no chopping issues with it so far. But like Nox, there are kinda shady stuff going on.

@nicfit
nicfit / disable-gnome-extensions.sh
Last active April 11, 2025 12:18
Disable all gnome-shell extensions from command line.
for ext in $(/usr/bin/ls ~/.local/share/gnome-shell/extensions); do
gnome-shell-extension-tool -d $ext;
done