Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 21:03
Microsoft-Band-Sync v1.3.1021.3 - Failed - 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\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>
---- 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)
@gaurav-bhardwaj29
gaurav-bhardwaj29 / transfer-file-via-scp.sh
Last active February 11, 2025 21:10
scp (secure copy protocol) securely transfers files between your local machine and a remote server over SSH
# 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
@lzybkr
lzybkr / Get-WinDbg.ps1
Created February 11, 2025 21:01
Download and extract the latest WinDbg without installing so you can run on systems like Windows Server
param(
$OutDir = ".",
[ValidateSet("x64", "x86", "arm64")]
$Arch = "x64"
)
if (!(Test-Path $OutDir)) {
$null = mkdir $OutDir
}
// ==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==
@donbr
donbr / gdelt_2025_v1.py
Created February 11, 2025 20:59
GDELT 2025 Prefect ETL process
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
@statonjr
statonjr / app.rb
Last active February 11, 2025 20:58 — forked from bbonamin/app.rb
Rails CSV report streaming
# 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
void Update()
{
// Speed Vertical
float step = floatSpeed * Time.deltaTime;
// Update the X coordinate
float newX = playerControls.MoveHorizontal.Move.ReadValue<Vector2>().x;
// Update the Y coordinate | Move player towards target
float newY = Vector2.MoveTowards(playerPos, targetPos, step).y;
@neiroc
neiroc / k8s_add_SAN_apiserver.md
Last active February 11, 2025 20:59
Add SAN to Kubernetes apiserver

kubernetes - add SANs to apiserver certificate

Tested in kubernetes version 1.32

kubectl -n kube-system get configmap kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' > kubeadm.yaml
  • Add to kubeadm.yaml
@knightcole
knightcole / void.md
Created February 11, 2025 20:58 — forked from dko1905/void.md
A guide to install void linux with encrypted root and unencrypted root, with lvm2. (AES-512, lvm)

Encrypted Void Linux setup w/o encrypted boot

This is a guide for installing Void Linux on an EFI system with non encrypted boot and encrypted root. The guide is based on practical paranoid article and official Void Linux article.

Before you start

I wrote this guide to help myself installing Void Linux w/o encrypted boot. I haven't checked it for grammar errors, so there might be some. I hope it will help you, and good luck. And I know that I use way to many pictures/terminal copy paste.

Disclaimer

I am not responsible for any actions you take! This guide was written 2/7/2020, so the info may be outdated. Please remember to use your own computer's partition names.

Required items