This file contains hidden or 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
# MacOS Version 1.1 | |
# 03/09/2025 | |
# Requires MPV v0.38.0 or newer | |
############################################################################################################################################### | |
# Player GUI Options | |
############################################################################################################################################### |
This file contains hidden or 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 python | |
import multiprocessing | |
import random | |
import time | |
class Logger: | |
def __init__(self, num_lines, last_output_per_process, terminal_lock): | |
self.num_lines = num_lines |
This file contains hidden or 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 datadog.trace.api.DDTags | |
import io.opentracing.Span | |
import io.opentracing.Tracer | |
import io.opentracing.log.Fields | |
import io.opentracing.tag.Tags | |
import io.opentracing.util.GlobalTracer | |
suspend fun <T : Any, O> T.coRunTraced( | |
methodName: String, | |
block: suspend T.(Span) -> O, |
This file contains hidden or 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
$ ./pluspy -s modules/other/Qsort.tla | |
Enter input: poiuylkjhmnbvcdsxzafgtrewq | |
abcdefghijklmnopqrstuvwxyz | |
----------------------------- MODULE Qsort ----------------------------- | |
EXTENDS Naturals, Sequences, FiniteSets, TLC, Input | |
\* Specification (works reasonably well for sets of cardinality <= 6 | |
\* Takes a set as argument, produces a sorted tuple | |
Sort(S) == CHOOSE s \in [ 1..Cardinality(S) -> S]: |
This file contains hidden or 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 python3 | |
import argparse | |
from turtle import * | |
def hilbert_curve(step, parity, n): | |
if n < 1: | |
return |
⚠️ WARNING
The ordering of listed projects or documents is random and has no connection to relevance or maturity levels!
Extension | Description |
---|---|
pgaudit |
Postgres auditing extension |
I run several K8S cluster on EKS and by default do not setup inbound SSH to the nodes. Sometimes I need to get into each node to check things or run a one-off tool.
Rather than update my terraform, rebuild the launch templates and redeploy brand new nodes, I decided to use kubernetes to access each node directly.
This file contains hidden or 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
package main | |
import ( | |
"net/http" | |
"sync" | |
"time" | |
"github.com/gin-gonic/gin" | |
) |
NewerOlder