Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 22:32
texstudio v4.8.6 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\texstudio\texstudio.nupkg" checksum="A62961524BA7BA47EE7BB92A210A0657" />
<file path="C:\ProgramData\chocolatey\lib\texstudio\texstudio.nuspec" checksum="75E3ECC95AC4A9D9553C5BEEB6E339EB" />
</files>
</fileSnapshot>
@phenaproxima
phenaproxima / gist:182b7d5f23d3c3e17879057d20877bb1
Created February 11, 2025 22:32
Programmatically applying a recipe via batch job
<?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');
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 11, 2025 22:31
Text file created by Roblox
-- 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 ------------------
{
}
@andrecajuscarvalho
andrecajuscarvalho / worker.py
Last active February 11, 2025 23:07
Worker
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."""
@jcanfield
jcanfield / _mobile.scss
Created February 11, 2025 22:30
Older BlueprintCSS mobile.scss addon
<!-- Add to screen.scss -->
@media only screen and (max-width: 767px) {
.container {
}
}
@media only screen and (max-width: 479px) {
.container {}
}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 22:30
Rimworld output log published using HugsLib
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)
@balupton
balupton / 04-multi-experiments
Created February 11, 2025 22:30
Understanding order of bash redirections, rightmost inwards
#!/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 ==="
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
@mosure
mosure / gist:1dc89a4052ca4a275d75b4c3ef7b211c
Created February 11, 2025 22:30
tensorboard_images_to_videos.py
import glob
import os
import argparse
import cv2
import numpy as np
import tensorflow as tf
from tqdm import tqdm
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 22:29
Rimworld output log published using HugsLib
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)