Skip to content

Instantly share code, notes, and snippets.

View monolit's full-sized avatar
:electron:
t.me/uwun3ss

monolit

:electron:
t.me/uwun3ss
View GitHub Profile
#!/usr/bin/env python3
# coding=utf-8
import os, re, sys, time
import requests
import gdown
import lxml.html
# Solve the limit of 50 on the maximum number of files downloaded in single folder on Google Drive. You can use this script to recursively download a folder, including all the files and subfolders on Google Drive.
# based on https://gist.github.com/DaniDipp/744b52adb341e41fdf871346a59e442c. thanks to @DaniDipp
# fixed the utf-8 folder name problem, by fish4terrisa-MSDSM
# really a dirty hack :)
import os, re, sys, time
import requests
import gdown
# Solve the limit of 50 on the maximum number of files downloaded in single folder on Google Drive. You can use this script to recursively download a folder, including all the files and subfolders on Google Drive.
# based on https://gist.github.com/DaniDipp/744b52adb341e41fdf871346a59e442c. thanks to @DaniDipp
def recursive_gdown(folder_id, current_path=''):
url = f"https://drive.google.com/embeddedfolderview?id={folder_id}"
response = requests.get(url)

Waifu Diffusion 1.4 Overview

An image generated at resolution 512x512 then upscaled to 1024x1024 with Waifu Diffusion 1.3 Epoch 7.

Goals

  • Improving image generation at different aspect ratios using conditional masking during training. This will allow for the entire image to be seen during training instead of center cropped images, which will allow for better results when generating full body images, portraits, and improving the composition.
  • Expanded the input context from 77 tokens to 231 tokens or perhaps to an unlimited amount of tokens. Out of 77 tokens for input, only 75 are useable. This does not give nearly enough room for complex prompting that requires a lot of detail.
@jogerj
jogerj / Genshin Impact 5.x Wish URL Android.md
Last active October 2, 2025 18:04
Get Wish URL in Genshin Impact 5.3 on Android using Android Debugging Tools

Usage

These instructions are for users with Genshin Impact installed on Android. For installations on PC, see other guide.

Using Termux on Android

  1. Open and Download Termux (Do not download from Play Store as it is not up-to-date)
    • Android 11 and above: Enable Wireless Debugging on your Android phone.
    • Android 10 or below: You need a PC to enable port 5555, follow these instructions to connect then skip step 5-7.
  2. Open Termux and run pkg update && pkg install android-tools termux-api (if failed, run apt update && apt install android-tools termux-api instead)
  3. Open Settings > System > Developer Options > Wireless Debugging. Open the app switcher then tap and hold the Settings app icon. Select "Split top", then select Termux as the bottom half.
  4. Tap on "Pa
@shawnli87
shawnli87 / download_gofile.sh
Last active January 15, 2026 03:44 — forked from MCOfficer/README.md
Bash script to download files from gofile.io
#!/bin/bash
url="$1"
#prompt for url if not provided
until [ ! -z "$url" ] ; do
read -p "url=" url
done
id=$(sed 's|.*gofile.io/d/||g' <<< "$url")
@m4xx1m
m4xx1m / neofetch.conf
Last active March 15, 2024 13:41
neofetch config
# Edited by @m4xx1m :P
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline
info "OS" distro
info "DE" de
# info "Locale" locale # This only works on glibc systems.
@D4n13l3k00
D4n13l3k00 / VanityGenPlus.ipynb
Last active December 18, 2021 05:44
VanityGenPlus on Google Colab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Yukaii
Yukaii / READMD.md
Last active October 19, 2024 08:15
A Tampermonkey script to make YouTube dislike count back

(Deprecated) Make YouTube dislike count BACK!

Deprecated Attention

This script is no longer working. Please use https://chrome.google.com/webstore/detail/return-youtube-dislike/gebbhagfogifgggkldgodflihgfeippi instead, which is open sourced at https://github.com/Anarios/return-youtube-dislike.

Developers: If you’re using the YouTube API for dislikes, you will no longer have access to public dislike data beginning on December 13th ref: https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts?hl=en

@Priler
Priler / cv2_face_detection.py
Last active July 20, 2022 10:22
Face detection using Python OpenCV2
import cv2
import sys
imgPath = input("Введите путь к картинке:")
faceCascade = cv2.CascadeClassifier(
cv2.data.haarcascades+'haarcascade_frontalface_default.xml')
img = cv2.imread(imgPath)
imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)