Skip to content

Instantly share code, notes, and snippets.

Code Bash command prefix detection

This defines risk levels for actions that the ${K4} agent may take. This classification system is part of a broader safety framework and is used to determine when additional user confirmation or oversight may be needed.

Command prefix extraction examples

Examples:

  • cat foo.txt => cat
  • cd src => cd
@shubhamjain
shubhamjain / universe.md
Last active December 25, 2025 23:33
What is the Universe made up of? (by Issac Asimov) [1980]

What is the Universe made up of?

Part of Asimov's essay collection, this essay is the most accessible introduction to the standard model of atom. It was published on November 1980.

All the countless myriads of things, living and non-living, large and small, here and in the farthest galaxies, can't really be countless myriads. That would be too complex, too messy to suit our intuition which is that the Universe is basically simple, and that all we need is to be subtle enough to penetrate that simplicity.

The Greeks suggested the Universe was made up of a few "elements,*' and some supposed that each element was made up of invisibly small "atoms” (from a Greek word meaning "indivisible”) which, as the name implied, could not be divided into anything smaller.

Nineteenth-century chemists agreed in essence. But what nineteenth-century chemists found were elements by the dozens, each with its characteristic atoms. Again, too complex and too messy.

@rain-1
rain-1 / LLM.md
Last active December 29, 2025 09:47
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@calnix
calnix / Readme.md
Created September 6, 2022 02:17 — forked from Sebb767/Readme.md
Escape The Matrix (Dark Web Article)

This is the famous escape the matrix article from the hidden wiki. Since most mirrors are down and on the hidden wiki itself, the first chaper was replaced with a bitcoin scam, I thought I repost this here. Copyright goes to the original author and I'm not stating any opinion on this text except that it may or may not be an interesting read ;)

The .txt version is taken from here (there's also an intepretation where that came from), the markdown version was converted via some regexes by, well, me.

Have fun :)

@tarruda
tarruda / LICENSE-MIT
Last active January 25, 2026 01:01
LXD: Full Debian KDE desktop
Copyright 2026 Thiago de Arruda Padilha
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
@brian-mann
brian-mann / child.js
Created August 1, 2017 05:06
Fixed timers in electron
process.on('message', (obj = {}) => {
const { id, ms } = obj
setTimeout(() => {
try {
// process.send could throw if
// parent process has already exited
process.send({
id,
ms,
#!/bin/bash
# Prerequisites: http://wiki.openwrt.org/doc/howto/buildroot.exigence
# Additionally JDK is needed
generate_buildenv() {
# Prepare build enviroment
mkdir openwrt_build
cd openwrt_build
git clone --depth=1 git://git.openwrt.org/15.05/openwrt.git
@Sebb767
Sebb767 / Readme.md
Created August 6, 2015 01:22
Escape The Matrix (Dark Web Article)

This is the famous escape the matrix article from the hidden wiki. Since most mirrors are down and on the hidden wiki itself, the first chaper was replaced with a bitcoin scam, I thought I repost this here. Copyright goes to the original author and I'm not stating any opinion on this text except that it may or may not be an interesting read ;)

The .txt version is taken from here (there's also an intepretation where that came from), the markdown version was converted via some regexes by, well, me.

Have fun :)

@rauchg
rauchg / effective-es6.md
Last active July 11, 2023 09:38
Writing ES6 today, effectively.

Effective transpiling of ES6

After publishing my article on ECMAScript 6, some have reached out to ask how I exactly I make it all work.

I refrained from including these details on the original post because they're subject to immiment obsoletion. These tools are changing and evolving quickly, and some of these instructions are likely to become outdated in the coming months or even weeks.

The main tool

When evaluating the available transpilers, I decided to use 6to5, which has recently been renamed to Babel. I chose it based on:

@MichaelXavier
MichaelXavier / Gemfile
Last active December 18, 2015 21:29
Some ruby-based tooling for haskell projects that makes development easier for me. Sandboxing requires cabal >= 0.1.7
source "http://rubygems.org"
gem "guard-shell"
gem "rake"