Skip to content

Instantly share code, notes, and snippets.

View obsessedcake's full-sized avatar
🍰

Obsessed Cake obsessedcake

🍰
  • Brazil
View GitHub Profile
#!/usr/bin/env bash
getFinalFilename () {
local -r filename="${1}"
local -r ext="${2}"
local -r idx="${3}"
if [[ -z "${idx}" ]]; then
local -r newFilename="${filename}.${ext}"
#!/usr/bin/python3
# coding=utf-8
import pickle
import os.path
from telethon.sync import TelegramClient
from telethon.tl.types import InputMessagesFilterPhotoVideo
''' Settings '''
import io
import pickle
import os.path
import traceback
from apiclient.http import MediaIoBaseDownload
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
@obsessedcake
obsessedcake / wget-dummy.sh
Created April 14, 2024 04:15
A bunch of simple bash functions to dowload links listed in files.
function dl {
return 0
}
function dl-sort {
return 0
}
buku -a http://example.org/search/creator_name tag1, tag 2, tag3 --title 'creator_name' -c
buku -a http://example.org/search/creator_name tag1, tag 2, tag3 --title 'creator_name' -c 'comment'
# still disable internet, so it can't use it