Skip to content

Instantly share code, notes, and snippets.

View leo60228's full-sized avatar
🦀
🦀

leo60228 leo60228

🦀
🦀
View GitHub Profile
@leo60228
leo60228 / dl.py
Last active October 25, 2024 22:06
import libarchive
import requests
import pycdlib
import httpio
print('querying redirect')
url = "https://archive.org/download/microsoft-office-professional-plus-2007/Microsoft%20Office%20Professional%20Plus%202007.iso"
target = requests.head(url).headers['Location']
print('making request')
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash curl trurl openssl jq
set -ex
# KEY_ID="https://60228.dev/users/leo#main-key"
KEY_ID="${KEY_ID:?missing KEY_ID}"
# ssh 60228.dev 'sudo -u mastodon psql -tAc "SELECT private_key FROM accounts WHERE username = '\''leo'\'' AND domain IS NULL LIMIT 1;"' > key.pem
KEY_PATH="${KEY_PATH:?missing KEY_PATH}"
#!/usr/bin/env nix-shell
#!nix-shell -i python -p python3 python3Packages.yt-dlp python3Packages.mpd2 python3Packages.pyyaml
from yt_dlp import YoutubeDL
import sys
import mpd
from yaml import dump
pl = []
with YoutubeDL({'logtostderr': True, 'extract_flat': True}) as ydl:
#!/usr/bin/python3
import os, platform, time, shutil, binascii, sys, fs, codecs
VERSION = "v1.1"
def prgood(content):
print(f"[\033[0;32m✓\033[0m] {content}")
def prbad(content):
print(f"[\033[0;91mX\033[0m] {content}")
28K ./Nintendo - Nintendo Entertainment System/Pac-Man (USA) (Namco) (Virtual Console).nes
44K ./Nintendo - Nintendo Entertainment System/Super Mario Bros. (World).nes
260K ./Nintendo - Nintendo Entertainment System/Super Mario Bros. 2 (USA) (Rev 1) (Virtual Console).nes
388K ./Nintendo - Nintendo Entertainment System/Super Mario Bros. 3 (USA) (Rev 1) (Virtual Console).nes
512K ./Nintendo - Super Nintendo Entertainment System/F-Zero (USA, Europe) (Virtual Console, Classic Mini, Switch Online).sfc
512K ./Nintendo - Super Nintendo Entertainment System/Super Mario Kart (USA).sfc
512K ./Nintendo - Super Nintendo Entertainment System/Super Mario World (USA, Europe) (Virtual Console, Classic Mini, Switch Online).sfc
1.0M ./Nintendo - Game Boy Color/Pokemon Trading Card Game (USA, Australia) (SGB Enhanced) (GB Compatible).gbc
1.0M ./Nintendo - Game Boy/Pokemon - Blue Version (USA, Europe) (SGB Enhanced).gb
1.0M ./Nintendo - Game Boy/Pokemon - Red Version (USA, Europe) (SGB Enhanced).gb
This file has been truncated, but you can view the full file.
{
"Table": [
{
"Id": 1,
"ItemType": 5,
"IconName": "item_001",
"Price": 0,
"BP": 0,
"EquipEffect": 0,
"EquipPower": 0,
#workskin .test {
background-image: url(https://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  • ds
  • ds1
  • ds2
  • ds3
  • ds4
  • ds5
  • ds6
  • ds7
  • ds8
  • dsearch
#[cxx_qt::bridge]
mod instances_model {
use helixlauncher_core::config::Config;
use helixlauncher_core::game::{merge_components, prepare_launch, LaunchOptions};
use helixlauncher_core::instance::{Instance, InstanceLaunch, Modloader};
use helixlauncher_core::launcher::launch;
use tokio::runtime::Runtime;
unsafe extern "C++" {
include!(< QAbstractListModel >);
Bulbasaur
Ivysaur
Charmander
Charmeleon
Squirtle
Wartortle
Caterpie
Metapod
Weedle
Kakuna