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
import os.path | |
import requests | |
import shutil | |
import hashlib | |
import logging | |
def validate_file(file_path, hash): | |
""" | |
Validates a file against an MD5 hash value | |
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 Instagram Media Deprotect | |
// @version 1.0.5 | |
// @description Removes elements protecting images & videos from download | |
// @downloadURL https://openuserjs.org/install/idolpx/Instagram_Media_Deprotect.user.js | |
// @updateURL https://openuserjs.org/meta/idolpx/Instagram_Media_Deprotect.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
// ==UserScript== | |
// @name Scoreholio Dashboard Scraper | |
// @namespace http://techknowpro.com/ | |
// @version 0.1 | |
// @description Scrape data to send to electronic boards via MQTT | |
// @author James Johnston | |
// @match https://app.scoreholio.com/dashboard.html?account=* | |
// @match https://app.scoreholio.com/dashboard-bracket.html?account=* | |
// @match https://app.scoreholio.com/dashboard-finals.html?account=* | |
// @grant none |
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
#!/bin/bash | |
DELAY=${DELAY:-10} | |
LOOP=${LOOP:-0} | |
r=`realpath $1` | |
d=`dirname $r` | |
pushd $d > /dev/null | |
f=`basename $r` | |
n=`webpinfo -summary $f | grep frames | sed -e 's/.* \([0-9]*\)$/\1/'` | |
dur=`webpinfo -summary $f | grep Duration | head -1 | sed -e 's/.* \([0-9]*\)$/\1/'` |
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
#!/bin/sh | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: nsw_eject /path-to-mounted-sdcard/" | |
exit 1 | |
fi | |
# Change attributes so files show up on switch | |
sudo chflags -R arch "$1/!install" |
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 |
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
<?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
// ==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
version: "3.3" | |
networks: | |
proxy: | |
ipam: | |
driver: default | |
config: | |
- subnet: 17.100.0.0/16 | |
services: |
OlderNewer