Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Drupal\Core\Batch\BatchBuilder; | |
use Drupal\Core\Extension\ThemeExtensionList; | |
use Drupal\Core\Recipe\Recipe; | |
use Drupal\Core\Recipe\RecipeRunner; | |
// Do this in a form submit function that runs when your button is clicked | |
$theme_path = \Drupal::service(ThemeExtensionList::class)->getPath('MIKE_THE_THEME'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- AH POST-SERVER LOGS -- | |
-- ServerID: 087dc83d-7457-4f45-810e-5c9ed6d00434 | |
-- Server started: February 11, 2025 10:31 PM UTC | Server uptime: 29 seconds | |
------------------ LOADB LOGS ------------------ | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from typing import List | |
async def worker_main( | |
worker_id: int, | |
jobs_queue: asyncio.Queue, | |
semaphore: asyncio.Semaphore, | |
stop_event: asyncio.Event | |
): | |
"""Processes model execution requests while ensuring VRAM availability.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add to screen.scss --> | |
@media only screen and (max-width: 767px) { | |
.container { | |
} | |
} | |
@media only screen and (max-width: 479px) { | |
.container {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Log uploaded on Tuesday, February 11, 2025, 4:30:15 PM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) | |
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies) | |
Vanilla Backgrounds Expanded(vanillaexpanded.backgrounds): VBE(1.0.0) | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
out="$(mktemp)" | |
rm -f "$out" | |
clear | |
# results in jumbled lines: printf '%s\n' "stdout" > >(cat >> "$out"; echo a >> "$out") > >(cat >> "$out"; echo b >> "$out") | |
# this works, from rightmost to leftmost, >>/dev/tty has no effect | |
echo "=== $LINENO ===" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.eclipse.jgit.api.Git; | |
import org.eclipse.jgit.transport.JschConfigSessionFactory; | |
import org.eclipse.jgit.transport.OpenSshConfigSessionFactory; | |
import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider; | |
// In a Quarkus resource class: | |
@Path("/git") | |
public class GitController { | |
@GET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import os | |
import argparse | |
import cv2 | |
import numpy as np | |
import tensorflow as tf | |
from tqdm import tqdm | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Log uploaded on Tuesday, February 11, 2025, 5:29:20 PM | |
Loaded mods: | |
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0) | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Faster Game Loading(Taranchuk.FasterGameLoading): FasterGameLoading(1.0.0), System.Drawing(av:4.0.0,fv:4.6.57) | |
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Performance Fish(bs.performance): PerformanceFish(0.6.2) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
const cheerio = require("cheerio"); | |
async function krakenfiles(url) { | |
return new Promise(async(resolve, reject) => { | |
if (!/krakenfiles.com/.test(url)) return new Error("Input Url from Krakenfiles !") | |
await axios.get(url).then(async(a) => { | |
let $ = cheerio.load(a.data); | |
let result = { | |
metadata: {}, |