Skip to content

Instantly share code, notes, and snippets.

@tehybel
tehybel / StableDiffusionXLLoRAModelLoader.py
Created March 13, 2025 11:12
Enabling tiled decode for SDXL in OneTrainer
# ... some lines from this file are left out ...
def load(
self,
model_type: ModelType,
model_names: ModelNames,
weight_dtypes: ModelWeightDtypes,
) -> StableDiffusionXLModel | None:
base_model_loader = StableDiffusionXLModelLoader()
lora_model_loader = StableDiffusionXLLoRALoader()
embedding_loader = StableDiffusionXLEmbeddingLoader()
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
https://docs.google.com/forms/d/e/1FAIpQLSfjpxgN7YzapkuIx08fjTNgZcxBd0kv6kxtj7MbimBFDip67w/viewform?usp=pp_url&entry.1484138189=Tr%C3%AAn&entry.121682481=Mobile&entry.157793273=C%C3%B3&entry.267934656=Kh%C3%B4ng&entry.549814315=T%C3%ACm%20tr%E1%BA%ADn%20%C4%91%E1%BA%A5u&entry.1306610310=H%E1%BB%87%20th%E1%BB%91ng%20gi%E1%BA%A3i%20%C4%91%E1%BA%A5u&entry.265400379=Kh%C3%B4ng&entry.1341543129=10&entry.160580779=Kh%C3%B4ng&entry.528895588=Kh%C3%B4ng&entry.1832775166=10&entry.828962514=C%C3%B3&entry.134355125=Game%20%C4%91a%20d%E1%BA%A1ng&entry.591215025=8&entry.1915247020=Th%E1%BA%BB%20ng%C3%A2n%20h%C3%A0ng&entry.205099306=9&pageHistory=0,1,2,3
https://docs.google.com/forms/d/e/1FAIpQLSfjpxgN7YzapkuIx08fjTNgZcxBd0kv6kxtj7MbimBFDip67w/viewform?usp=pp_url&entry.1484138189=18%20-%2024&entry.121682481=Mobile&entry.157793273=Ch%C6%B0a%20quy%E1%BA%BFt%20%C4%91%E1%BB%8Bnh&entry.267934656=Kh%C3%B4ng&entry.549814315=K%E1%BA%BFt%20n%E1%BB%91i%20b%E1%BA%A1n%20b%C3%A8&entry.1306610310=%C4%90%E1%BB%95i%20th%C6%B0%E1%BB%9Fng&e
@sahalali
sahalali / footlight-import-events-by-ids.sparql
Last active March 13, 2025 11:17
Sparql query to fetch events from artsdata by id
PREFIX schema: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
CONSTRUCT {
?event_adid a ?event_type .
?event_adid schema:name ?name ;
schema:description ?description ;
schema:location ?place_coalesced ;
schema:startDate ?startDate ;
schema:endDate ?endDate ;
@jdeane
jdeane / gpg-ssh-setup.md
Created March 13, 2025 11:11 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpXVlUyN0xxdUFNT2VYbVllU3RJODk3@sto3.g.edgeservers.org:32448#telegram%20%40boootech%20%D8%AA%D9%84%DA%AF%D8%B1%D8%A7%D9%85
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpueFMxYTdKTmxJY2JzTjhRNEVLTDV0@sto1.g.edgeservers.org:36632#telegram%20%40boootech%20%D8%AA%D9%84%DA%AF%D8%B1%D8%A7%D9%85
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpkMGZhM2E5Yi0yMTE1LTRjYzAtYThmNS03ZjRmN2NhZjZlYzE%3D@92.223.2.77:8080#telegram%20%40boootech%20%D8%AA%D9%84%DA%AF%D8%B1%D8%A7%D9%85
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpablU4eU9ZNEF6VjNmUjNFN2lOQm00@flank4.g.edgeservers.org:7584#telegram%20%40boootech%20%D8%AA%D9%84%DA%AF%D8%B1%D8%A7%D9%85
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTp4OUNMbXZ0U3RuVUlUb3ZYQkNseGh1@flank3.g.edgeservers.org:54590#telegram%20%40boootech%20%D8%AA%D9%84%DA%AF%D8%B1%D8%A7%D9%85
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created March 13, 2025 11:10
Rimworld output log published using HugsLib
Log uploaded on Thursday, March 13, 2025, 7:10:40 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
Gear Up And Go(Uuugggg.GearUpAndGo): GearUpAndGo(1.0.0)
Meals On Wheels(Uuugggg.MealsOnWheels): Meals_On_Wheels(1.0.0)
Pick Up And Haul(Mehni.PickUpAndHaul): IHoldMultipleThings(1.0.0), PickUpAndHaul(1.0.0)
Mining Priority(Uuugggg.MiningPriority): Mining_Priority(1.0.0)
Replace Stuff(Uuugggg.ReplaceStuff): Replace_Stuff(av:1.0.0,fv:1.1.0)
@sahalali
sahalali / footlight-import-events-by-ids.sparql
Last active March 13, 2025 11:18
This is a sparql query to fetch events from Artsdata by Artsdata ids
PREFIX schema: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
CONSTRUCT {
?event_adid a ?event_type .
?event_adid schema:name ?name ;
schema:description ?description ;
schema:location ?place_coalesced ;
schema:startDate ?startDate ;
schema:endDate ?endDate ;
This is a test application and will not be published on the App Store.
App Privacy Policy Description (or Additional Notes):
This application is intended solely for testing purposes and will be distributed only via TestFlight to selected users. It will not be released on the App Store.
Currently, the app is not passing TestFlight distribution due to a review issue, causing errors such as "app is broken or cannot be installed." To resolve this, I am completing the distribution-related fields. However, this app is not intended for public release and is only meant for private testing.
Please proceed with the review process accordingly.