Skip to content

Instantly share code, notes, and snippets.

View yuyoyuppe's full-sized avatar

Andrey Nekrasov yuyoyuppe

View GitHub Profile
@sir-pinecone
sir-pinecone / disable_windows_defender.bat
Last active January 31, 2026 04:05
Disables the Windows Defender service in Windows 10
@echo off
setlocal enableextensions enabledelayedexpansion
rem NOTE: Defender may see this file as malware, so you might need to exclude this before things can be disabled.
rem Modified version of:
rem https://github.com/ggannann/win10_disable_defender
rem https://gist.github.com/xezrunner/a7a42dbc1096a40b0c78f09488fe5a2b (as of Jan 2026 this seems to have been deleted or made private)
rem ============================
#![feature(proc_macro_hygiene)]
use criterion::Criterion;
use criterion::ParameterizedBenchmark;
use criterion::{criterion_group, criterion_main};
use unicase::Ascii;
use strum_macros::EnumString;
use phf::phf_map;
#[derive(EnumString, Clone, Copy)]
@yarapavan
yarapavan / miui9-debloat.sh
Created June 27, 2018 09:11
miui debloat using adb shell
adb devices
adb shell
# enter shell prompt
pm uninstall -k --user 0 com.google.android.googlequicksearchbox
pm uninstall -k --user 0 com.xiaomi.mipicks
pm uninstall -k --user 0 com.android.browser
@bishboria
bishboria / springer-free-maths-books.md
Last active January 28, 2026 19:31
Springer made a bunch of books available for free, these were the direct links
@rygorous
rygorous / magic_ring.cpp
Created July 22, 2012 03:55
The magic ring buffer.
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <string.h>
#include <Windows.h>
// This allocates a "magic ring buffer" that is mapped twice, with the two
// copies being contiguous in (virtual) memory. The advantage of this is
// that this allows any function that expects data to be contiguous in
// memory to read from (or write to) such a buffer. It also means that