Skip to content

Instantly share code, notes, and snippets.

View wweevv-johndpope's full-sized avatar

John Pope wweevv-johndpope

View GitHub Profile
@wweevv-johndpope
wweevv-johndpope / reddit-user-downloader.py
Created July 12, 2023 21:49 — forked from huntfx/reddit-user-downloader.py
Download all the media on a Reddit user profile.
"""This is a basic script I mashed together to download all the media on a users profile.
Nothing else I found seemed to work well, so I added support for all the media types I came across.
The code isn't particularly clean or optimised, it just gets the job done.
Usage:
UserDownloader(username).download()
It will download to `current_dir/username/filename.ext`.
An SQLite database saved in the same folder is used to ignore duplicate urls and file hashes.
@wweevv-johndpope
wweevv-johndpope / youtube-shorts-remove-recommendation-on-restart.js
Created June 5, 2023 04:04 — forked from fadhilaf/youtube-shorts-remove-recommendation-on-restart.js
Youtube short automatically gives 10 video every time when clicking one youtube short video. This script just remove the 9 video we didnt ask and the navigation down button. On file can only deal with AJAX, and the other only when restarting
// ==UserScript==
// @name Remove Yt Shorts Recommendation on restart
// @namespace http://tampermonkey.net/
// @version 0.1
// @description The other script not fast enough to observe the fast query on restart so do this instead
// @author FadhilAF
// @match https://www.youtube.com/shorts/*
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Youtube_shorts_icon.svg/193px-Youtube_shorts_icon.svg.png
// @grant none
// @run-at document-idle
@wweevv-johndpope
wweevv-johndpope / Dockerfile
Created May 12, 2023 00:09 — forked from thedomeffm/Dockerfile
Symfony Messenger | Digitalocean App Platform | Dockerfile | Supervisor
FROM composer:2.5 AS build
WORKDIR /application
ENV APP_ENV=prod
COPY . .
RUN composer install --no-dev --no-scripts --ignore-platform-reqs --optimize-autoloader
@wweevv-johndpope
wweevv-johndpope / x-tt-token.js
Created November 20, 2022 23:35 — forked from fariswd/x-tt-token.js
x-tt-token
const CryptoJS = require("crypto-js");
const decrypt = (input) => {
const key = CryptoJS.enc.Utf8.parse("webapp1.0+202106");
const ciphertext = CryptoJS.enc.Base64.parse(input);
const encryptedCP = CryptoJS.lib.CipherParams.create({
ciphertext: ciphertext,
});
const decryptedWA = CryptoJS.AES.decrypt(encryptedCP, key, { iv: key });
const decryptedUtf8 = decryptedWA.toString(CryptoJS.enc.Utf8);