Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@wojteklu
wojteklu / clean_code.md
Last active December 18, 2025 13:03
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@CommandLeo
CommandLeo / mods.md
Last active December 18, 2025 13:03
CommandLeo's Mods

CommandLeo's 1.20.2 Mods

Libraries

Icon Mod Mod Page Description
Fabric API Modrinth Library required for a lot of mods
Fabric Language Kotlin Modrinth Library required for Zoomify
MaLiLib Modrinth Library required for Masa's mods
MagicLib Modrinth Library required for MasaGadget
OwoLib [Modrinth](https://modrinth.com/
@DreierF
DreierF / DataTableResizeContainer.tsx
Last active December 18, 2025 13:00
Tanstack Table v8 feature extension to support mixing fractional and pixel based sizes in tables with column resizing enabled.
export function TableResizeContainer<T extends RowData>({
table,
children,
...props
}: { table: TableInstance<T> } & ComponentPropsWithoutRef<'div'>) {
const { ref, width } = useElementSize();
useEffect(() => table.setIntrinsicAvailableWidth(width), [table, width]);
return (
<div {...props} ref={ref}>
{table.getState().intrinsicAvailableWidth === 0 ? null : children}
@NeoTheFox
NeoTheFox / compatdata.sh
Last active December 18, 2025 12:57
Link Steam's Proton prefixes by name for ease of use
#!/usr/bin/env bash
help() {
echo NAME
echo " compatdata.sh - create \"by-game\" symlink folder for every compatdata folder on this machine"
echo
echo SYNOPSIS
echo " compatdata.sh [-h] [-p]"
echo
echo OPTIONS
@jacquarg
jacquarg / create
Created December 26, 2013 21:26
Create a new git repository. To put in git-shell-commands, to be used with git-shell. Forked from http://planzero.org/blog/2012/10/24/hosting_an_admin-friendly_git_server_with_git-shell
#!/bin/sh
# If no project name is given
if [ $# -eq 0 ]
then
# Display usage and stop
echo "Usage: create <project.git>"
exit 1

Affected Entity

  • Meatmeet Pro Mobile Application v1.1.2.0

Impact

The mobile application is configured to allow clear text traffic to all domains and communicates with an API server over HTTP. As a result, an adversary located "upstream" can intercept the traffic, inspect its contents, and modify the requests in transit. This may result in a total compromise of the user's account if the attacker intercepts a request with active authentication tokens or cracks the MD5 hash sent on login.

References

  • CWE-319: Cleartext Transmission of Sensitive Information
@ItzLevvie
ItzLevvie / README.md
Last active December 18, 2025 12:52
All of the flashable factory images for Google Pixel devices running Android Canary builds.

Android Canary (202512) — ZP11.251121.010 (14518957)

Device Flash Download SHA-256 Checksum
Pixel 6
(oriole)
Link Link 77d0e1417bcf66cb2f58db9e4963f680c8f9c2b67fefb7d0488d4af0b31e6579
Pixel 6 Pro
(raven)
Link Link a19907851ee29b65886fab27ac597e4564e0f2a108b1ab15739d2c1fff3ca0e2
Pixel 6a (bluejay) Link Link 1293c84be822c4c75c8c7b6283f7c991426c733eb11f74019
@ryankurte
ryankurte / main.c
Last active December 18, 2025 12:50
Simple C FIFO Queues (aka Ring Buffers)
#define QUEUE_SIZE 16
int main(int argc, char** argv) {
queue_t example = {0, 0, QUEUE_SIZE, malloc(sizeof(void*) * QUEUE_SIZE)};
// Write until queue is full
for (int i=0; i<QUEUE_SIZE; i++) {
int res = queue_write(&example, (void*)(i+1));
assert((i == QUEUE_SIZE - 1) ? res == -1: res == 0);
}
@mathix420
mathix420 / medium.user.js
Last active December 18, 2025 12:44
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 3.0
// @inject-into content
"""
Copyright 2025 James David Clarke <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software