This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## AUTO RELABELER (EXPERIMENTAL) | |
# https://gist.github.com/sandorex/bc2fe949b68d47a67fc6dd300467b1a8 | |
# VERSION 0.1 | |
import FreeCAD, Draft | |
import PySide import QtGui | |
from pathlib import Path | |
# save backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from dasbus.connection import SessionMessageBus, SystemMessageBus | |
from dasbus.loop import EventLoop | |
bus = SessionMessageBus() | |
loop = EventLoop() | |
proxy = bus.get_proxy( | |
"org.freedesktop.portal.Desktop", # service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |