Skip to content

Instantly share code, notes, and snippets.

View sandorex's full-sized avatar

Sandorex sandorex

View GitHub Profile
@sandorex
sandorex / darken_images.user.js
Last active April 22, 2024 17:43
Darken images on website plugin
// ==UserScript==
// @name Darken Images
// @match *://*/*
// @grant GM_getValue
// @version 1.1
// @homepageURL https://gist.github.com/sandorex/88579385948333aa733a35d295ff0031
// @downloadURL https://gist.github.com/sandorex/88579385948333aa733a35d295ff0031/raw/7065b74d82971fa0c4a5addcb1b89ddd19ad36c8/darken_images.user.js
// @author Sandorex
// @description Darkens images
// ==/UserScript==
@sandorex
sandorex / build-gsi.sh
Last active March 29, 2024 05:58
Script to build GSI AP file for odin
#!/bin/bash
# build-gsi.sh - https://gist.github.com/sandorex/031c006cc9f705c3640bad8d5b9d66d2
# other files needed:
# otatools-mini - https://mega.nz/file/TLgHDD6L#Kwxb04VoJDtXa6XLHxsxbHAIusXc0VHM12dqAbvRWlQ
# vbmeta.img - https://mega.nz/file/HGoGzC5J#VZUJ6n_GVCaGRzgaO2up0FhFx52swhcO0T6ewlUW5Mk
#
# Copyright 2023 Aleksandar Radivojevic (https://github.com/sandorex)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
@sandorex
sandorex / clean_youtube_playlist.user.js
Last active September 3, 2023 16:12 — forked from qoomon/youtube_clean_watch_later_videos.js
Clean YouTube Playlist Videos
// ==UserScript==
// @name Clean Youtube Playlist
// @match *://www.youtube.com/playlist*
// @grant GM_registerMenuCommand
// @grant GM_getValue
// @homepageURL https://gist.github.com/sandorex/6bdd51ef467a079c87f19ba469a8bc7c
// @downloadURL https://gist.githubusercontent.com/sandorex/6bdd51ef467a079c87f19ba469a8bc7c/raw/clean_youtube_playlist.user.js
// @noframes
// @version 1.1.5
// @author Sandorex
@sandorex
sandorex / python-script-template
Created January 28, 2022 10:08
Python script that includes module from previous directory
#!/usr/bin/env python3
#
# PROJECT HERE
#
# LICENSE HERE
#
# python-script-template.py: Template for python scripts
# hack to include modules from previous directory, edit to your liking
import os, sys
@sandorex
sandorex / label-maker.py
Last active December 20, 2021 07:51
Script for templating SVGs
#!/usr/bin/env python3
# label-maker.py: A little script i wrote to template SVGs and convert them to
# images so i could make custom labels without knowing how to
# use inkscape, photoshop and the like
from string import Template
import csv, os
# NOTE: pyvips needs vips-dev to be installed and in PATH
import pyvips
@sandorex
sandorex / kelco-price-sort.user.js
Last active July 17, 2021 04:49
Kelco component sort by price
// ==UserScript==
// @name Kelco Price Sort
// @namespace https://sandorex.xyz/
// @homepageURL https://gist.github.com/sandorex/a222ca6c0d6bba783c12fc7b312a536b
// @downloadURL https://gist.githubusercontent.com/sandorex/a222ca6c0d6bba783c12fc7b312a536b/raw/kelco-price-sort.user.js
// @match http://www.kelco.rs/katalog/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_registerMenuCommand
// @noframes