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 :)
@monolit
monolit / config.conf
Last active January 16, 2023 00:03 — forked from m4xx1m/neofetch.conf
neofetch config
print_info() {
info title
info underline
info "Host" model &
info "OS" distro &
info "DE" de &
info "Locale" locale & # This only works on glibc systems.
info "Kernel" kernel &
info "Packages" packages &

ImportError: attempted relative import beyond top-level package

import sys, os
sys.path.append(os.popen('%cd%' if os.name == 'nt' else 'pwd').read())
# import smth from .. ->
import smth
  • and call from another file.py
@monolit
monolit / rudall-e_xl.ipynb
Last active December 22, 2021 16:56
ruDALL-E_xl.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.