Skip to content

Instantly share code, notes, and snippets.

View astiob's full-sized avatar

Oleg Oshmyan astiob

View GitHub Profile
@washedfs
washedfs / autodiff.py
Last active July 5, 2026 13:27
Script to clean Advanced SubStation Alpha (ASS) subtitle files and upload them to some comp site
"""
autodiff.py 1.0.2
Script to clean Advanced SubStation Alpha (ASS) subtitle files and upload them to some comp site.
Usage:
If you have muxtools installed, you should have all the dependencies for this script installed too.
When you run the script, it spits out a Diffchecker link after (not-so-)smart removal of non-dialogue events:
python autodiff.py "trashsubs.ass" "goodsubs.ass"
@GamingLiamStudios
GamingLiamStudios / shitpass.py
Last active May 3, 2026 19:42
Lowpass Detection
# This script is not meant to find a lowpass for you. It is supposed to assist in finding frame ranges of different lowpasses.
# Please don't blindly trust the script and check your delowpasses.
# Also this is somewhat vibecoded, so buyer beware
from vstools import core, vs
from vsmuxtools import src_file, SourceFilter
import itertools
import tqdm
import numpy as np
from numpy.lib.stride_tricks import sliding_window_view
import torch # For GPU acceleration, but can be replaced with just numpy/cupy if you'd like
@alvinhochun
alvinhochun / cfguard-for-mingw-w64.md
Last active October 13, 2025 02:25
Control Flow Guard (CFG/CFGuard) for mingw-w64

Control Flow Guard (CFG/CFGuard) for mingw-w64

Control Flow Guard is a security mitigation that verifies the target address of indirect calls. It works by having the compiler insert a check at indirect call sites to verify the validity of the call target, and also the linker write the necessary data and flags into the PE/COFF image to enable the feature on Windows' end.

@schrodyn
schrodyn / decompiler
Created April 26, 2017 13:27 — forked from anonymous/decompiler
Androguard decompilation script for APKs
#!/usr/bin/python
"""
Androguard decompilation script.
Feed it an APK and an output directory and it will dump the source for you.
I used this script to learn some androguard skillz.
by k3170makan
"""
from sys import argv
from sys import exit
@yancyn
yancyn / git-svn.md
Last active January 8, 2026 00:25
Migrate Archive Google Code SVN to Git

Migrate Archive Google Code SVN to Git

Requirements

  • git
  • git-svn

Setup¹

$ sudo apt-get install git
$ sudo add-apt-repository ppa:git-core/ppa
@kmaehashi
kmaehashi / README.md
Created February 19, 2017 08:43
アニメソングの歌詞ならここにおまかせ?データセット
@NathanSweet
NathanSweet / Reddit_Highlight_New_Comments.user.js
Created December 4, 2015 14:29
Highlight new Reddit comments with this GreaseMonkey user script.
// ==UserScript==
// @name Reddit: Highlight New Comments v3
// @description Highlights comments on Reddit that are new since your last visit.
// @author Chris H (Zren / Shade), Nathan Sweet
// @icon https://reddit.com/favicon.ico
// @namespace http://xshade.ca
// @version 1
// @include /https?:\/\/((www|pay|[a-z]{2})\.)?reddit\.com\/r\/[a-zA-Z0-9]+\/comments\/.*/
// @grant GM_addStyle
// ==/UserScript==
@imneme
imneme / randutils.hpp
Last active February 7, 2026 14:45
Addresses common issues with C++11 random number generation; makes good seeding easier, and makes using RNGs easy while retaining all the power.
/*
* Random-Number Utilities (randutil)
* Addresses common issues with C++11 random number generation.
* Makes good seeding easier, and makes using RNGs easy while retaining
* all the power.
*
* The MIT License (MIT)
*
* Copyright (c) 2015-2022 Melissa E. O'Neill
*
@nhatminhle
nhatminhle / stdatomic.h
Last active February 25, 2025 15:23
A portable version of stdatomic.h extracted from the FreeBSD libc, for Clang 3.1+ and GCC 4.7+.
/*
* An implementation of C11 stdatomic.h directly borrowed from FreeBSD
* (original copyright follows), with minor modifications for
* portability to other systems. Works for recent Clang (that
* implement the feature c_atomic) and GCC 4.7+; includes
* compatibility for GCC below 4.7 but I wouldn't recommend it.
*
* Caveats and limitations:
* - Only the ``_Atomic parentheses'' notation is implemented, while
* the ``_Atomic space'' one is not.