Skip to content

Instantly share code, notes, and snippets.

View trickster's full-sized avatar
🎯
Focusing

Sivaram Konanki trickster

🎯
Focusing
View GitHub Profile
╭─── Claude Code v2.1.12 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back Jonny! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ │
│ │ ───────────────────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity
@raikhan
raikhan / config.toml
Created January 8, 2026 12:28
Doom Emacs-like helix config with lots of external tools
theme = "modus_vivendi_tinted"
[editor]
line-number = "relative"
soft-wrap.enable = false
true-color = true
jump-label-alphabet = "jfkdls;aurieowpqnvmcxz" # changes the goto-word letters to focus on the main row
shell = ["nu", "--stdin","--env-config", "~/.config/nushell/config.nu", "-c"]
clipboard-provider = "pasteboard"
end-of-line-diagnostics = "hint"
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active May 8, 2026 22:26
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

//! This crate provides types for UCD’s `Blocks.txt`.
pub struct Blocks {
ranges: Vec<(RangeInclusive<u32>, String)>,
}
impl Blocks {
pub fn block_of(&self, c: char) -> &str {
self.ranges
.binary_search_by(|(range, _)| {
@CrockAgile
CrockAgile / earley_parsing_explained.md
Last active June 22, 2024 00:01
Earley Parsing Explained

Earley Parsing Explained

Twitter Follow

flowchart TD
0["sum"] --> 1["sum"]
1["sum"] --> 2["product"]
2["product"] --> 3["factor"]
3["factor"] --&gt; 4["number"]
@ericdallo
ericdallo / doom-emacs-setup (1).md
Last active May 8, 2026 14:11
Doom-Emacs Clojure setup

Doom Emacs setup

Doom-Emacs is a Emacs framework, Emacs is a huge software with multiple packages and ways to do everything, doom-emacs try to make that a little bit easier for most new users offering a simpler way to install and manage most important packages and configs, under the hood it's a lot of elisp code that install most useful Emacs packages, manage packages state, improves performance with multiple tweaks and offer all of that in a easy opt-in/out way to final users via modules. Doom uses under the hood the evil-mode package, which is a package that tries to bring Vim's commands and motion to Emacs, so knowing vim helps a lot how to use Doom emacs, although you don't need to understand vim to start using it.

Pre-requisites

@terasakisatoshi
terasakisatoshi / animation.jl
Last active May 31, 2021 00:01
Share your HTML generated by Pluto notebook
### A Pluto.jl notebook ###
# v0.14.7
using Markdown
using InteractiveUtils
# ╔═╡ c25a642a-c146-11eb-2198-d79dcea09223
using Plots
# ╔═╡ a69123f6-c718-4057-a370-1f8e2908f36d
use std::{
fs::File,
io::{Read, Write},
time::Instant,
};
use tokio::task::{self, JoinHandle};
async fn compute() {
let handles: Vec<JoinHandle<_>> = (0..1000)
.map(|_| {
@bcherny
bcherny / designing-data-intensive-application-notes.md
Last active April 6, 2026 06:27
Notes: Designing Data-Intensive Applications

Notes on Martin Kleppmann's excellent Designing Data-Intensive Applications.

Chapter 1: Reliable, Scalable, and Maintainable Applications

  • Data Systems
    • Dimensions to consider when thinking about data systems: access patterns, performance characteristics, implementations.
    • Modern data systems often blur the lines between databases, caches, streams, etc.
  • Reliability
    • Systems should perform the expected function at a given level of performance, and be tolerant to faults and user mistakes
  • Fault: One component of a system deviating from its spec. Prefer tolerating faults over preventing them (except for things like security issues). Faults stem from hardware failures, software failures, and human error (in a study, config errors caused most outages).
@iravid
iravid / MapReduce.scala
Created June 28, 2019 06:06
Map-Reduce with ZIO
import $ivy.`dev.zio::zio:1.0.0-RC8-12`
import $ivy.`dev.zio::zio-streams:1.0.0-RC8-12`
import zio._, zio.stream._
object Step1 {
import java.nio.file.{Files, Paths, Path}
import scala.collection.JavaConverters._
import zio.blocking._