pip install google-api-python-client
Key didapatkan dari Google Cloud
def_api_key = 'xxx'
import torch | |
from diffusers import SanaPipeline,StableDiffusion3Pipeline, FluxPipeline,Transformer2DModel, PixArtSigmaPipeline, AuraFlowPipeline, Kandinsky3Pipeline, LuminaText2ImgPipeline, HunyuanDiTPipeline, LuminaText2ImgPipeline | |
from app.sana_pipeline import SanaPipeline | |
from torchvision.utils import save_image | |
from models import SwittiPipeline | |
from onediffusion.diffusion.pipelines.onediffusion import OneDiffusionPipeline | |
# FLUX, SD, Aura, Hunay, Sana, Pix Sigma, | |
master_prompt = "A serene and emotive scene depicting a college girl weeping under a large, lush tree, with her loyal dog sitting close by, offering comfort. In the background, a small camp is situated , illuminated by the gentle glow of a campfire around which several people are gathered, sitting on benches and engaging in quiet conversation. The setting is in a forest clearing, during twilight, with the sky painted in soft shades of pink and blue, creating a tranquil yet poignant atmosphere," |
from moviepy.editor import VideoFileClip, TextClip, CompositeVideoClip | |
import whisper_timestamped as whisper | |
filename = "example.mp4" | |
screen_width = 1080 | |
screen_height = 1920 | |
def get_transcribed_text(filename): | |
audio = whisper.load_audio(filename) |
# Dependencies: pip install opencv-python-headless pytesseract numpy | |
import cv2 | |
import pytesseract | |
import matplotlib.pyplot as plt | |
# Path to Tesseract executable (change this according to your installation) | |
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe' | |
def capture_and_parse_text(): |
// Adapted from https://raddle.me/f/Privacy/3722/how-to-circumvent-cloudflare-s-email-protected-thing-without with the help of chatGPT | |
function fixObfuscatedEmails() { | |
const elements = document.getElementsByClassName('__cf_email__'); | |
for (let i = 0; i < elements.length; i++) { | |
const element = elements[i]; | |
const obfuscatedEmail = element.getAttribute('data-cfemail'); | |
if (obfuscatedEmail) { | |
const decodedEmail = decrypt(obfuscatedEmail); | |
element.setAttribute('href', 'mailto:' + decodedEmail); | |
element.innerHTML = decodedEmail; |
#!/bin/bash | |
# ========================================================================= | |
# Source: https://gist.github.com/lucaspar/27f5e108b80524b315be10b2a9049817 | |
# ========================================================================= | |
# This script will compile and install a static FFmpeg build with | |
# support for NVENC in Ubuntu. Developed in Ubuntu 23.10, | |
# with NVIDIA Drivers v535.129.03 and CUDA v12.2 with a GPU | |
# with CUDA capability 8.6 (RTX 3080) (see ccap below). | |
# It assumes NVIDA drivers are installed and that you have a | |
# CUDA-compatible GPU. You can check installed drivers with: |
March 2023
Inspired by this
More of my guides: Debloating MEMu - Debloating Nox (Updated)
This mainly applies to LDPlayer9. They will probably work on the low end options (like LDPlayer5) but not guaranteed.
This emulator seems to have less stability issues than MEMu. I think we get the shtick that these emulators do spooky stuff.
from PIL import Image | |
from scipy.ndimage import gaussian_filter | |
import numpy | |
import pytesseract | |
from PIL import ImageFilter | |
def solve_captcha(filename): | |
# thresold1 on the first stage | |
th1 = 140 | |
th2 = 140 # threshold after blurring |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from PyQt6.QtCore import QUrl | |
from PyQt6.QtWidgets import QApplication, QMainWindow, QWidget | |
from PyQt6.QtWebEngineWidgets import QWebEngineView #, QWebEngineSettings | |
from os import path | |
class MainWindow(QMainWindow): | |
def __init__(self): |