Skip to content

Instantly share code, notes, and snippets.

View dch's full-sized avatar
🛋️

Dave Cottlehuber dch

🛋️
View GitHub Profile
@dch
dch / 00_nocloud.cfg
Last active July 25, 2024 16:50
cloudinit 24.1.4 on FreeBSD fails to use NoCloud provider
datasource:
NoCloud:
seedfrom: file:///root/cloud/
network:
config: disabled
timeout: 1
@dch
dch / mlx5.md
Created June 12, 2024 08:55
mlx5
[12324] mce0: ERR: mlx5e_dump_err_cqe:75:(pid 12): Error CQE on CQN 0x22, CI 0x37d, QN 0xc5, OPCODE 0xd, SYNDROME 0x2, VENDOR SYNDROME 0x68
[12324] [0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[12324] [0x10] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[12324] [0x20] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[12324] [0x30] 00 00 00 00 04 10 68 02 65 00 00 c5 03 80 0e d2
[15596] mce0: ERR: mlx5e_dump_err_cqe:75:(pid 12): Error CQE on CQN 0x1b, CI 0x100, QN 0xa7, OPCODE 0xe, SYNDROME 0x4, VENDOR SYNDROME 0x32
[15596] [0] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[15596] [0x10] 00 00 00 00 00 00 e2 7e 06 00 00 00 00 00 00 00
[15596] [0x20] 00 00 00 00 00 00 92 32 00 00 00 00 00 00 01 f5
defmodule I do
def cls, do: IO.puts("\ec")
def qt(m, f \\ :_) do
:recon_trace.calls(
{m, f, :return_trace},
{100, 10000},
pid: :all,
scope: :local,
stack: :return
@dch
dch / .iex.exs
Created February 20, 2024 11:27
dch custom iex prompt, put in ~/.iexs
defmodule I do
def cls, do: IO.puts("\ec")
def qt(m, f) do
:recon_trace.calls(
{m, f, :return_trace},
{100, 10000},
pid: :all,
scope: :local,
stack: :return
@dch
dch / beetroot_risotto.md
Created February 1, 2024 15:01
beetrtoot risotto
  • fry a few onions
  • add salt and grated beetroot
  • add risotto rice and thyme
  • cook a few minutes
  • add red wine, stock, water slowly
  • stir in parmesan cheese or feta
  • serve with chopped walnuts or similar
  • rock a sprinkle of green chives or rucola
@dch
dch / pot-stickers.md
Last active January 7, 2024 22:12
Asian Dumplings or Piryogi
@dch
dch / chilli.md
Created January 7, 2024 21:47
chilli beans

ingredients

  • 2 red peppers, diced
  • 4 onions, sliced
  • 4 cloves garlic, chopped
  • 3 carrots, grated
  • 2 tins red beans, washed & drained
  • 1 tin white beans, washed & drained
  • 1 tin corn kernels, washed & drained
  • 2 tins peeled or diced tomatoes
@dch
dch / lentils.md
Last active January 7, 2024 21:37
Syrian shorbit adas lentil soup
@dch
dch / http_proxy.go
Created December 7, 2023 18:47 — forked from jim3ma/http_proxy.go
Register Dialer Type for HTTP&HTTPS Proxy in golang
package main
import (
"bufio"
"fmt"
"net"
"net/http"
"net/url"
"crypto/tls"
@dch
dch / spicey-rub.md
Last active July 15, 2023 11:49
Dave's magic Spicey Dry Rub

2023 Spicey Rub 2.0

  • measurements don't need to be precise

  • adjust chilli, cayenne & cumin to taste

  • leave your recommendations in the comments!

  • T Tablespoon

  • t teaspoon

  • C metric cup ~ 200mL