Skip to content

Instantly share code, notes, and snippets.

View tuxracer's full-sized avatar
💭
Don't be afraid of new ideas, be more afraid of old ones

Derek Petersen tuxracer

💭
Don't be afraid of new ideas, be more afraid of old ones
View GitHub Profile
@Hellisotherpeople
Hellisotherpeople / fk_top_p_and_top_k.md
Last active August 24, 2026 23:20
The Conspiracy Against High Temperature LLM Sampling

The Conspiracy Against High Temperature Sampling

Or: Why Your LLM Outputs Are Boring and Whose Fault It Really Is


There's a quiet war being waged in the machine learning inference space, and most of you don't even know you're losing it. Every day, millions of people interact with large language models through sanitized, corporatized interfaces that offer them a single "creativity" slider at best. Often they get nothing at all. Meanwhile, a small cabal of researchers and hobbyists has been pushing the boundaries of what's actually possible with modern sampling techniques. Yes, this includes the much maligned "coomer" community.

We live in a time of revealed conspiracies. The Epstein files have shown us what happens when powerful institutions coordinate to suppress information and protect their interests. Flight logs that sat in plain sight for years. Connections that "serious people" dismissed as paranoid speculation until the documents dropped. The pattern is always the same! Information asymme

@peterc
peterc / Caddyfile
Last active July 1, 2025 10:22
Caddyfile for running Mastodon – November 2022 edition
put.your.domain.here {
@local {
file
not path /
}
log {
output file /var/log/caddy/mastodon.log
}
@mueslimak3r
mueslimak3r / jellyfin-caddy-fail2ban-auth
Last active June 16, 2026 10:25
caddy jellyfin fail2ban authentication ban
**caddy config for jellyfin:**
jellyfin.mydomain.com {
reverse_proxy http://192.168.0.1212:2121
log {
output file /var/log/caddy/JellyfinProxy.log {
roll_size 2MiB # Set max size 5 MB
roll_local_time true # Use localhost time
roll_keep 4 # Keep at most 2 log files
@hmil
hmil / tuples.ts
Created September 20, 2018 16:34
Well-typed variable-length tuples in TypeScript
/**
* Arbitrary-length tuples
* =======================
*
* Working with tuples of unknown length in TypeScript is a pain. Most library authors fall back on enumerating all possible
* tuple lengths up to a threshold (see an example here https://github.com/pelotom/runtypes/blob/fe19290d375c8818d2c52243ddc2911c8369db37/src/types/tuple.ts )
*
* In this gist, I'm attempting to leverage recursion to provide support for arbitrary length tuples. This has the potential
* to make some kinds of declarative APIs nicer and enhance type inference in some cases.
* This example shows how to take a variable-length tuple as an input, transform each of its types and use the resulting
/**
* Illustrates how to clone and manipulate MediaStream objects.
*/
function makeAudioOnlyStreamFromExistingStream(stream) {
var audioStream = stream.clone();
var videoTracks = audioStream.getVideoTracks();
for (var i = 0, len = videoTracks.length; i < len; i++) {
audioStream.removeTrack(videoTracks[i]);
}
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active November 4, 2026 21:17
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitH
mkdir ~/.ssh
cd ~/.ssh
PASSWORD=$(openssl rand -base64 30)
if [ "${#PASSWORD}" -ge 20 ]; then
ssh-keygen -b 4096 -P "$PASSWORD" -f id_rsa -o
echo "echo $PASSWORD" > /tmp/askpass.sh
chmod +x /tmp/askpass.sh
export DISPLAY=":0"
export SSH_ASKPASS="/tmp/askpass.sh"
ssh-add -K $HOME/.ssh/id_rsa </dev/null
@amitmerchant1990
amitmerchant1990 / stylish.css
Last active December 28, 2018 00:32
GitHub Fixed Header for better accessibility.
/**
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome.
2. Open up extension options and paste the whole CSS mentioned below.
3. Specify the domain name to be `github.com`.
4. Add a title and save.
*/
.header {
padding-top: 10px;
padding-bottom: 10px;
@vbsessa
vbsessa / chrome-devtools.md
Last active February 28, 2025 03:42
How to customize Chrome devtools fonts
  1. Enable #enable-devtools-experiments flag in chrome://flags section.

  2. Open Chorme Devtools and check Settings > Experiments > Allow extensions to load custom stylesheets.

  3. Create the following four files in a dedicated folder.

    3.1. devtools.html

    <html>
    <head></head>
    <body><script src="devtools.js"></script></body>
@cosmith
cosmith / GeolocationModule.java
Created November 1, 2015 23:07
RN Geolocation
package com.yourapp.rctgeolocation;
import android.location.Location;
import android.os.Bundle;
import android.util.Log;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;