Skip to content

Instantly share code, notes, and snippets.

View ekoontz's full-sized avatar

Eugene Koontz ekoontz

View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active September 21, 2025 15:05
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@flaviovs
flaviovs / README.md
Last active September 4, 2025 10:10
How to use TARPIT in Linux without consuming (your) resources

Iptables(8) TARPIT is a useful security mechanism that can slow down or stop attacks on a network. If everyone used TARPIT to block attackers, in theory their resources would be exhausted as their connection attempts would be delayed, which would discouraged people from attempting unauthorized access. Here's a brief description of how TARPIT works:

To achieve this tar pit state, iptables accepts the incoming TCP/IP connection and then switches to a zero-byte window. This forces the attacker's system to stop sending data, rather like the effect of pressing Ctrl-S on a terminal. Any attempts by the attacker to close the connection are ignored, so the connection remains active and typically times out after only 12–24 minutes. This consumes resources on the attacker's system but not

@onlurking
onlurking / programming-as-theory-building.md
Last active September 1, 2025 23:55
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@enforser
enforser / lazy-side-effects.clj
Last active August 1, 2023 18:31
Lazy side effects in clojure - overcoming chunking
;; Unlike fully lazy languages such as Haskell, Clojure seqs often implement chunking.
;; This means that when accessing the first element of a sequence, 32 members will be evaluated.
;; An example of this can be seen by implementing some side effect in a map.
(first (map (fn [x] (prn x) x) (range 5))) ;; prints 0 through 4, then returns 0
;; The above example will return 0 (as expected), but you'll notice it prints off all 5 elements
;; of (range 5).
;; In the next case we can see that the evaluation caused by the access of the first element stops after
;; the first 32 elements are evaluated.
@cgrand
cgrand / core.cljc
Last active October 14, 2020 12:18
Mixing macros and code in cljc and supporting clj, cljs and self-hosted cljs, see https://github.com/cgrand/macrovich
;; SEE: https://github.com/cgrand/macrovich
;; macros and code in a single cljc working across clj, cljs and self-hosted cljs
;; require clojurescript from master
(ns foo.core
#?(:cljs (:require-macros
[net.cgrand.meta-macros :refer [macros no-macros]]
[foo.core :refer [add]])
:clj (:require
@fogus
fogus / fp.dot
Created May 2, 2012 13:34
early influence graph of fp languages -- this is not meant to be a complete time line. I'm mostly concerned with the root and inner nodes.
digraph G {
ranksep=1.0;
ratio=0.6;
APL [color=Blue, shape=box];
Simula [color=Blue, shape=box];
LISP [color=Blue, shape=box];
ALGOL [color=Blue, shape=box];
Planner [color=Blue, shape=box];
ACTOR [shape=hexagon];
@ekoontz
ekoontz / gist:1772396
Created February 8, 2012 19:16
Make Sun/Oracle's java the default rather than OpenJDK
#do all as root:
#(download and install jdk-6u26-linux-amd64.rpm from Oracle)
alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1500
alternatives --set java /usr/java/latest/bin/java
alternatives --install /usr/lib/jvm/jre-1.6.0 jre_1.6.0 /usr/java/latest 1500
alternatives --set jre_1.6.0 /usr/java/latest
@ekoontz
ekoontz / repeat.sh
Created October 31, 2011 23:33
repeat a given Zookeeper test
#!/bin/sh
# TODO: fold into ant (current) or maven (future).
# example usage (run from top-level zookeeper directory) :
#
# src/repeat.sh ZooKeeperTest
test_output=yes
testcase=$1
i=0
ant test-init
@ekoontz
ekoontz / repeat.sh
Created October 14, 2011 19:01
repeat a given HBase test
#!/bin/sh
# example usage (run in top-level HBase directory) :
#
# src/repeat.sh TestRegionServerCoprocessorExceptionWithAbort
testcase=$1
# see also http://hbase.apache.org/book/hbase.tests.html
i=0
mvn clean
while [ "$?" -eq "0" ] ; do
@ghoseb
ghoseb / ns-cheatsheet.clj
Last active August 7, 2025 20:59 — forked from alandipert/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.