Skip to content

Instantly share code, notes, and snippets.

View wweevv-johndpope's full-sized avatar

John Pope wweevv-johndpope

View GitHub Profile
@huntfx
huntfx / reddit-user-downloader.py
Last active April 2, 2024 23:21
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.
@thedomeffm
thedomeffm / Dockerfile
Last active May 12, 2023 06:22
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
@fadhilaf
fadhilaf / youtube-shorts-remove-recommendation-on-restart.js
Created June 27, 2022 21:22
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
@vchernyshov
vchernyshov / BUILD
Created March 2, 2021 10:46
Telegram Firebase
load("@//Infra/Pods:apple_xcframework_import.bzl", "apple_static_xcframework_import")
apple_static_xcframework_import(
name = "GoogleMobileAds",
path = "Google-Mobile-Ads-SDK/GoogleMobileAds.xcframework",
development_prefix = "ios-arm64_x86_64-simulator/GoogleMobileAds.framework",
release_prefix = "ios-arm64_armv7/GoogleMobileAds.framework"
)
@ArnauMrJeff
ArnauMrJeff / AppleAuth.java
Last active November 24, 2023 13:17
Apple ID Sign In: GeneratePrivateKey
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.JwsHeader;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
import org.bouncycastle.openssl.PEMParser;
import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter;
import java.io.File;
import java.io.FileReader;
@lanfon72
lanfon72 / async_ydl.py
Created March 7, 2020 12:19
integrate youtube_dl with asyncio.
import asyncio
from datetime import datetime
from functools import partial
from concurrent.futures import ProcessPoolExecutor
from youtube_dl import YoutubeDL as YDL
PPE = ProcessPoolExecutor()