Forked from JayFoxRox gist
https://gist.github.com/JayFoxRox/cf960bcf74c7f3cf8c7181354072b25d
| import random, time, sys | |
| def trybignumber(bignumber): | |
| num = random.getrandbits(bignumber) | |
| print(num) | |
| file = open("number.txt", "w") | |
| file.write("Current number : \n"+ str(num)) | |
| file.close | |
| loop = 0 | |
| start = time.time() |
| // ==UserScript== | |
| // @name placestart | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description credit to oralekin | |
| // @author oralekin | |
| // @match https://hot-potato.reddit.com/embed* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
| // @grant none | |
| // ==/UserScript== |
| // ==UserScript== | |
| // @name placestart | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description credit to oralekin | |
| // @author oralekin | |
| // @match https://hot-potato.reddit.com/embed* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
| // @grant none | |
| // ==/UserScript== |
| import bpy | |
| bpy.ops.mesh.primitive_monkey_add(size=2, enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1)) | |
| bpy.ops.object.modifier_add(type='SUBSURF') | |
| bpy.context.object.modifiers["Subdivision"].levels = 3 | |
| bpy.ops.object.modifier_apply(modifier="Subdivision") | |
| bpy.ops.object.modifier_add(type='ARRAY') | |
| bpy.context.object.modifiers["Array"].count = 50 | |
| bpy.ops.object.modifier_apply(modifier="Array") |
Forked from JayFoxRox gist
https://gist.github.com/JayFoxRox/cf960bcf74c7f3cf8c7181354072b25d
| from PyPDF2 import PdfReader, PdfWriter | |
| # Path to the password-protected PDF file | |
| input_pdf_path = 'path/to/protected/file.pdf' | |
| # Password for the PDF file | |
| password = 'yourPassword' | |
| # Path for the new PDF file without a password | |
| output_pdf_path = 'path/to/new/file.pdf' | |
| reader = PdfReader(input_pdf_path) |
| [ | |
| { | |
| "video_id": "w5V9a_xTqcI", | |
| "video_full_url": "https://www.youtube.com/watch?v=w5V9a_xTqcI", | |
| "video_title": "🗣️ Pourquoi avez-vous un mauvais accent ? (Mini Pourquoi)", |
| import requests | |
| from youtube_transcript_api import YouTubeTranscriptApi | |
| from youtube_transcript_api.formatters import SRTFormatter | |
| import json | |
| from datetime import timedelta | |
| def download_channel_videos(api_key, channel_id): | |
| base_url = "https://www.googleapis.com/youtube/v3" | |
| videos_url = f"{base_url}/search?key={api_key}&channelId={channel_id}&part=snippet,id&order=date&maxResults=50" | |
| video_details_list = [] |
| import os | |
| import subprocess | |
| import json | |
| import multiprocessing | |
| from tqdm import tqdm | |
| import time | |
| import tempfile | |
| import shutil | |
| import logging | |
| import glob |