Skip to content

Instantly share code, notes, and snippets.

View vitali2y's full-sized avatar
🏠
/me @ ~/

Vitaliy Yermolenko vitali2y

🏠
/me @ ~/
View GitHub Profile
@itachi-re
itachi-re / android-debloating-guide.md
Created July 13, 2026 20:34
A comprehensive, safety-rated reference for debloating and cleaning Android devices without breaking core functionality — covers ADB/pm commands, UAD-ng, root-based removal (Magisk/KernelSU/APatch), OEM-specific package lists (Samsung, Xiaomi, OnePlus, Oppo/Realme/Vivo, Pixel, etc.), battery and privacy tooling, and a 50-question FAQ. 🟢 Safe / 🟡…

The Complete Android Debloating & Cleanup Guide (Android 8–16)

A practical, safety-first reference for reclaiming storage, battery, privacy, and performance on non-rooted and rooted Android devices.


Table of Contents

  1. Introduction
  2. Understanding Android Storage
@Shnatsel
Shnatsel / The unreasonable effectiveness of LLMs for auditing Rust code.md
Created June 20, 2026 18:31
The unreasonable effectiveness of LLMs for auditing Rust code

This is a mirror of my article which Medium apparently refuses to show to some people.

The unreasonable effectiveness of LLMs for auditing Rust code

As a lead of the Rust Secure Code Working Group, I got free access to GPT-5.5 via the Codex for Open Source. Since then I’ve found and reported dozens of issues of varying severity in widely used Rust crates.

Separately, the Rust Foundation security initiative got access to Mythos via Project Glasswing, and their report should also be coming soon. I’ve coordinated with them so that our audit targets would not overlap.

While I haven’t found any truly devastating vulnerabilities, I am very impressed with GPT-5.5 for aud

@blackopsrepl
blackopsrepl / main.rs
Last active August 11, 2026 19:02
microgpt: scalar autograd GPT in pure Rust, zero dependencies (port of @karpathy's Python original)
#!/usr/bin/env -S cargo +nightly -Zscript
---
[package]
name = "microgpt"
version = "0.1.0"
edition = "2024"
---
//! The most atomic way to train and run inference for a GPT in pure, dependency-free Rust.
//! This file is the complete algorithm.
//! Everything else is just efficiency.
@rmtbb
rmtbb / ChatGPT Canvas HTML Renderer from Clipboard.url
Last active August 2, 2026 10:23
Bookmarklet that lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard
@fbraz3
fbraz3 / openwrt_add_guest.sh
Last active August 30, 2026 03:48
[OpenWRT] Shell Script to Create a Fully Isolated Guest Network with Bandwidth Control
#!/bin/sh
#
# FOR USE IN OPENWRT
# This script creates a guest network fully isolated from the main one.
# Tested on a Xiaomi AX3000T router; should work on any OpenWRT-powered router.
#
# - Ensure the Wi-Fi interfaces retain their default names (radio0 and radio1).
# - For enable download/upload limits, you MUST install the sqm-scripts package on your OpenWRT router.
# - For enable roaming (aka wifi mesh):
@sts10
sts10 / rust-command-line-utilities.markdown
Last active October 30, 2026 05:57
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@kekeimiku
kekeimiku / rust-helloworld.rs
Last active March 26, 2022 07:27
The tiny rust-x64-helloworld experiment
#![no_std]
#![no_main]
use core::arch::asm;
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
@antonydevanchi
antonydevanchi / 00-all.txt
Last active April 25, 2026 10:23
List of values HTTP Header "User-Agent" which you may meet in the real world. Crafted by hands from nginx's access.log entire many high-loaded projects
"Mozilla/5.0
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
'Cloud mapping experiment. Contact research@pdrlabs.net'
'Mozilla/5.0 (compatible; Seekport Crawler; http://seekport.com/'
() { :; }; echo ; echo ; /bin/cat /etc/passwd
(CASE WHEN (1933=6210) THEN 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/531.4 (KHTML, like Gecko) Chrome/3.0.194.0 Safari/531.4' ELSE 1933*(SELECT 1933 FROM DUAL UNION SELECT 6210 FROM DUAL) END)
(CASE WHEN (3405=3405) THEN 3405 ELSE 3405*(SELECT 3405 FROM DUAL UNION SELECT 8193 FROM DUAL) END)
(CASE WHEN (5046=4939) THEN 5046 ELSE 5046*(SELECT 5046 FROM DUAL UNION SELECT 4939 FROM DUAL) END)
(CASE WHEN (7404=7404) THEN 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/531.4 (KHTML, like Gecko) Chrome/3.0.194.0 Safari/531.4' ELSE 7404*(SELECT 7404 FROM DUAL UNION SELECT 6679 FROM DUAL) END)
@Nemo157
Nemo157 / _Publishing crates to IPFS.md
Last active March 26, 2024 20:46
Publishing crates to IPFS

Publishing crates to IPFS

This was an experiment in seeing how feasible it would be to distribute crates on IPFS using the alternative registries feature combined with a local IPFS web gateway.

There was very little plan for this originally, and I wish I had kept more of the intermediate states as I went through multiple major design changes. My original goal was to publish my CLI utility [bs58-cli][] and its dependency tree.

@Ben-PH
Ben-PH / strace.md
Last active October 20, 2025 02:05
Comaprison of C and Rust syscalls on startup/shutdown.

Abstract

For some situations, understanding system calls made during processes start-up and shut-down can be valuable. For example, consider a shell-scripts long-running hot loop that runs a very short-running process. Thus it is perhaps reasonable to hypothesise that a difference in system calls during process start-up/shut-down has a non-negligable impact on the run time of said hot-loop.

This write-up looks at how C and Rust programs differ in terms of system-calls for start-up/shutdown. It is not intended as a performance analysis and only looks at one target system.

At the end, we take a quick look at using statically linked libraries by building with # cargo build --target x86_64-unknown-linux-musl --release and removing even more syscalls by removing the main function

System