Skip to content

Instantly share code, notes, and snippets.

View sjahl's full-sized avatar

Steve Jahl sjahl

View GitHub Profile
@sjahl
sjahl / configuration.nix
Last active November 11, 2023 04:04
WIP lazyvim-lite clone with native nixpkgs
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true;
configure = {
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
telescope-nvim
tokyonight-nvim
@sjahl
sjahl / docker-compose.yaml
Created March 11, 2023 13:33
docker compose file for a matrix sliding sync proxy
version: "3"
services:
sliding-proxy:
image: ghcr.io/matrix-org/sliding-sync:v0.99.1
restart: unless-stopped
ports:
- "127.0.0.1:8881:8881"
environment:
@sjahl
sjahl / shell.nix
Created September 28, 2021 14:36
reproducible python environment with nix
{ pkgs ? import <nixpkgs> {} }:
let
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix";
ref = "refs/tags/3.3.0";
}) {
pkgs = pkgs;
python = "python37";
pypiDataRev = "48f4b1841d11673822d3f42178480378d1a07a90"; # 2021-09-27T20:16:37Z
[ 225.650467s] TRACE ThreadId(02) daemon:admin{listen.addr=0.0.0.0:4191}: linkerd_proxy_transport::listen: Accepted server.addr=10.244.1.12:4191 client.addr=10.244.1.1:49996 orig.addr=None
[ 225.650612s] DEBUG ThreadId(02) daemon:admin{listen.addr=0.0.0.0:4191}:accept{client.addr=10.244.1.1:49996 target.addr=10.244.1.12:4191}: linkerd_tls::server: Peeked bytes from TCP stream sz=117
[ 225.650621s] TRACE ThreadId(02) daemon:admin{listen.addr=0.0.0.0:4191}:accept{client.addr=10.244.1.1:49996 target.addr=10.244.1.12:4191}: linkerd_tls::server::client_hello: parse_sni: failed to parse up to SNI
[ 225.650625s] TRACE ThreadId(02) daemon:admin{listen.addr=0.0.0.0:4191}:accept{client.addr=10.244.1.1:49996 target.addr=10.244.1.12:4191}: linkerd_tls::server: Not a matching TLS ClientHello
[ 225.650641s] TRACE ThreadId(02) daemon:admin{listen.addr=0.0.0.0:4191}:accept{client.addr=10.244.1.1:49996 target.addr=10.244.1.12:4191}: linkerd_detect: Starting protocol detection
[ 225.650646s] TRACE ThreadId(02) daem
@sjahl
sjahl / create.sh
Created March 2, 2021 14:15
linkerd edge-21.2.4 debugging
#!/bin/bash
set -eu
# preemptible is to keep cost down, i see the pg_dump hangs without it too
gcloud container clusters create --num-nodes=3 --preemptible linkerd-gh5593-test-cluster
gcloud container clusters get-credentials linkerd-gh5593-test-cluster
linkerd check --pre
linkerd install |kubectl apply -f -
time="2021-02-12T18:32:52Z" level=info msg="running version edge-21.2.2"
[ 0.008006s] INFO ThreadId(01) linkerd2_proxy::rt: Using single-threaded proxy runtime
[ 0.010947s] INFO ThreadId(01) linkerd2_proxy: Admin interface on 0.0.0.0:4191
[ 0.011214s] INFO ThreadId(01) linkerd2_proxy: Inbound interface on 0.0.0.0:4143
[ 0.011275s] INFO ThreadId(01) linkerd2_proxy: Outbound interface on 127.0.0.1:4140
[ 0.011359s] INFO ThreadId(01) linkerd2_proxy: Tap DISABLED
[ 0.011395s] INFO ThreadId(01) linkerd2_proxy: Local identity is default.gh-5539.serviceaccount.identity.linkerd.cluster.local
[ 0.011524s] INFO ThreadId(01) linkerd2_proxy: Identity verified via linkerd-identity-headless.linkerd.svc.cluster.local:8080 (linkerd-identity.linkerd.serviceaccount.identity.linkerd.cluster.local)
[ 0.011586s] INFO ThreadId(01) linkerd2_proxy: Destinations resolved via linkerd-dst-headless.linkerd.svc.cluster.local:8086 (linkerd-destination.linkerd.serviceaccount.identity.linkerd.cluster.
[ 110.955704s] TRACE ThreadId(01) outbound: linkerd2_proxy_transport::listen: Accepted local.addr=127.0.0.1:4140 peer.addr=10.48.0.36:48696 orig.addr=Some(10.51.241.58:5432)
[ 110.955769s] DEBUG ThreadId(01) outbound: linkerd2_cache: Caching new service
[ 110.955830s] TRACE ThreadId(01) outbound: linkerd2_cache: Dropping defunct service
[ 110.955857s] TRACE ThreadId(01) outbound: linkerd2_cache: Dropping defunct service
[ 110.955864s] DEBUG ThreadId(01) outbound: linkerd2_cache: services=1 dropped=2
[ 110.955934s] TRACE ThreadId(01) outbound:poll_profile: linkerd2_service_profiles::client: disconnected
[ 110.955961s] TRACE ThreadId(01) outbound:poll_profile: linkerd2_service_profiles::client: waiting
[ 110.956003s] TRACE ThreadId(01) outbound: linkerd2_timeout::failfast: Pending
[ 110.956048s] TRACE ThreadId(01) dst: linkerd2_buffer::dispatch: Dispatching request
[ 110.956075s] DEBUG ThreadId(01) dst: linkerd2_dns: resolve_srv name=linkerd-dst-headless.linkerd.svc.cluster.local
09:29:25.693157 IP 10.48.0.46.42698 > 10.48.1.19.5432: Flags [S], seq 1204653863, win 42600, options [mss 1420,sackOK,TS val 2125025423 ecr 0,nop,wscale 7], length 0
09:29:25.694671 IP 10.48.1.19.5432 > 10.48.0.46.42698: Flags [S.], seq 1523785516, ack 1204653864, win 43648, options [mss 1420,sackOK,TS val 1299201673 ecr 2125025423,nop,wscale 7], length 0
09:29:25.694712 IP 10.48.0.46.42698 > 10.48.1.19.5432: Flags [.], ack 1, win 333, options [nop,nop,TS val 2125025425 ecr 1299201673], length 0
09:29:25.694916 IP 10.48.0.46.42698 > 10.48.1.19.5432: Flags [P.], seq 1:282, ack 1, win 333, options [nop,nop,TS val 2125025425 ecr 1299201673], length 281
09:29:25.695115 IP 10.48.1.19.5432 > 10.48.0.46.42698: Flags [.], ack 282, win 339, options [nop,nop,TS val 1299201674 ecr 2125025425], length 0
09:29:25.695322 IP 10.48.1.19.5432 > 10.48.0.46.42698: Flags [P.], seq 1:91, ack 282, win 339, options [nop,nop,TS val 1299201674 ecr 2125025425], length 90
09:29:25.695351 IP 10.48.0.46.42698 > 10.48.1.19.5432: Flags [.]
# automatically add new windows to the current group
sticky yes
# snap windows to edges at 4 pixels distance
snapdist 4
gap 18 1 1 1
color menubg azure4
color menufg black
color selfont "#FFBF00"
ignore bar

Keybase proof

I hereby claim:

To claim this, I am signing this object: