This file contains hidden or 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/local/bin/python3 | |
# | |
# Move files to directories 0-z based on 1st char of filename | |
# https://gist.github.com/idolpx/eadd12cb15daa61d9253f325a0381778 | |
# | |
# Jaime Idolpx | |
# | |
import os, re, py7zr |
This file contains hidden or 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
10 rem *** meatloaf icon sprite | |
20 rem *** -idolpx | |
30 rem *** | |
40 poke 53285,8: rem multicolor 1 | |
50 poke 53286,6: rem multicolor 2 | |
60 poke 53269,255 : rem set all 8 sprites visible | |
70 for x=12800 to 12800+383: read y: poke x,y: next x: rem sprite generation | |
75 x=30:y=54:poke 53264,peek(53264) and 0 : rem top left | |
76 rem x=56:y=54:poke 53264,peek(53264) or 255: rem top right | |
77 rem x=30:y=222:poke 53264,peek(53264) and 0 : rem bottom left |
This file contains hidden or 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
std::string byteSuffixes[9] = { "", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" }; | |
std::string formatBytes(uint64_t value) { | |
uint8_t i = 0; | |
double n = 0; | |
char *f = NULL; | |
do { | |
i++; | |
n = value / std::pow(1024, ++i); |
This file contains hidden or 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
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define ANSI_BLACK "\e[0;30m" | |
#define ANSI_RED "\e[0;31m" |
This file contains hidden or 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
<?php | |
// | |
// Meatloaf - A Commodore 64/128 multi-device emulator | |
// https://github.com/idolpx/meatloaf | |
// Copyright(C) 2022 James Johnston | |
// | |
// Meatloaf Server Script----------------------------------------- | |
// Create a directory listing as a Commodore Basic Program | |
// Responds with binary PRG file ready to load and list | |
// --------------------------------------------------------------- |
This file contains hidden or 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
version: "3.3" | |
networks: | |
proxy: | |
ipam: | |
driver: default | |
config: | |
- subnet: 17.100.0.0/16 | |
services: |
This file contains hidden or 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 Reddit Hide NSFW | |
// @namespace https://gist.github.com/idolpx | |
// @version 1.0.0 | |
// @description Removes NSFW content from the main feed | |
// @downloadURL https://openuserjs.org/install/idolpx/Reddit_Hide_NSFW.user.js | |
// @updateURL https://openuserjs.org/meta/idolpx/Reddit_Hide_NSFW.meta.js | |
// @author Jaime Idolpx | |
// @copyright 2020, idolpx (https://openuserjs.org/users/idolpx) | |
// @license MIT |
This file contains hidden or 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
<?php | |
/* | |
* Author: | |
* Robin Zon <https://github.com/ZonRobin> | |
* | |
* Credits to: | |
* https://github.com/cowboy/php-simple-proxy/ | |
* https://gist.github.com/iovar | |
* | |
* Usage: |
This file contains hidden or 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/python3 | |
# Jackett .magnet file loader for Transmission | |
# - Sometimes Jackett can't get a torrent file to save to the watch folder | |
# - and instead will save a .magnet file containing the magnet link. | |
# - Transmission does not recognize this file so it ignores it. | |
# - This script will feed it to Transmission via RPC. | |
# - Setup a cron job to run it every so often and you are good to go. | |
# | |
# author: Jaime Idolpx ([email protected]) |
This file contains hidden or 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== | |
// @namespace https://gist.github.com/idolpx | |
// @name Reddit Base64 EnDecoder | |
// @version 2.1.1 | |
// @description Automatically base64 decode links in reddit posts | |
// Encode/Decode selected text you enter when making a post | |
// - Use CTRL + [SPACE] to toggle encode/decode of text entered | |
// Decode selected text in page for people who post Base64 text without the trailing '==' | |
// - Highlight the text in the browser and then press CTRL + [SPACE] | |
// @downloadURL https://openuserjs.org/install/idolpx/Reddit_Base64_EnDecoder.user.js |
NewerOlder