Discover gists
This file has been truncated, but you can view the full file.
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, 9:03:05 PM | |
Loaded mods: | |
Prepatcher(zetrith.prepatcher): 0DataAssembly(1.0.0), 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) | |
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) | |
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210) | |
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
from functools import cache | |
from typing import TypeVar | |
T = TypeVar("T") | |
@cache | |
def foo(x: type[T]) -> list[type[T]]: | |
return [x] | |
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
<?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\Microsoft-Band-Sync\microsoft-band-sync.nupkg" checksum="A276E4BCB9CA2D14CB9A989864D090A8" /> | |
<file path="C:\ProgramData\chocolatey\lib\Microsoft-Band-Sync\microsoft-band-sync.nuspec" checksum="4FDC982C34D78FC52284EF6A3531D375" /> | |
<file path="C:\ProgramData\chocolatey\lib\Microsoft-Band-Sync\tools\chocolateyInstall.ps1" checksum="79D584008531D104FA7437D7589AA387" /> | |
</files> | |
</fileSnapshot> |
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
---- Minecraft Crash Report ---- | |
// Don't be sad. I'll do better next time, I promise! | |
Time: 11/2/25 18:02 | |
Description: Unexpected error | |
java.lang.IllegalStateException: Renderer not initialized | |
at Not Enough Crashes deobfuscated stack trace.(1.17+build.13) | |
at me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer.getInstance(SodiumWorldRenderer.java:78) | |
at net.minecraft.client.particle.ParticleManager.handler$zzm000$preRenderParticles(ParticleManager:603) |
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
# Transfer a file to a remote server using SCP | |
scp -i /path/to/your-key.pem /local/path/file.txt ubuntu@[instance-public-ip]:/remote/path/ | |
# Replace placeholders: | |
# - /path/to/your-key.pem: Path to your PEM key | |
# - /local/path/file.txt: Local file to transfer | |
# - [instance-public-ip]: Remote server's public IP | |
# - /remote/path/: Destination directory on the remote server |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int num; | |
const int rows = 5; | |
const int cols = 5; | |
cout << "Enter 1 number:"; | |
cin >> num; | |
int arr[rows][cols]; |
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
param( | |
$OutDir = ".", | |
[ValidateSet("x64", "x86", "arm64")] | |
$Arch = "x64" | |
) | |
if (!(Test-Path $OutDir)) { | |
$null = mkdir $OutDir | |
} |
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
// ==UserScript== | |
// @name Twitter Auto-Moderate Unengaged Posts | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Automatically clicks "Not interested in this post" on Twitter posts you scroll past without liking. It should only work when you scroll down (never up). | |
// @author Your name | |
// @match https://twitter.com/* | |
// @match https://x.com/* | |
// @grant none | |
// ==/UserScript== |
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 os | |
import asyncio | |
from prefect import flow, task, get_run_logger | |
from prefect.tasks import task_input_hash | |
from prefect.blocks.system import Secret, JSON | |
from prefect.task_runners import ConcurrentTaskRunner | |
from prefect.concurrency.sync import concurrency | |
from pathlib import Path | |
import datetime | |
from datetime import timedelta |
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
# From https://shift.infinite.red/fast-csv-report-generation-with-postgres-in-rails-d444d9b915ab | |
# Storing here in case the original post ever goes down. | |
# concern | |
module DatabaseQueryStreaming | |
def stream_query_rows(sql_query, options="WITH CSV HEADER") | |
conn = ActiveRecord::Base.connection.raw_connection | |
conn.copy_data "COPY (#{sql_query}) TO STDOUT #{options};" do | |
while row = conn.get_copy_data |