Skip to content

Instantly share code, notes, and snippets.

@bskinner
bskinner / VSCode.containerfile
Created March 4, 2024 17:49
VSCode dev env containerfile
FROM node:20-bullseye
ARG GITHUB_ID
EXPOSE 22
WORKDIR /workspace
# Add Microsoft's VSCode repository to apt's sources
RUN apt-get update && apt-get install -y \
wget \
gpg \
@bskinner
bskinner / start-factorio.sh
Last active February 14, 2024 13:03
Launch factorio server
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
PREFIX="$HOME"
FACTORIO_CFG="$PREFIX/.factorio"
WORLD_NAME="my-world-name"
WORLD_PATH="$FACTORIO_CFG/$WORLD_NAME"
@bskinner
bskinner / .gitignore
Created December 16, 2023 22:00
My default gitignore
## https://github.com/github/gitignore/blob/main/Global/Linux.gitignore
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
@bskinner
bskinner / dst-dedicated-server.md
Last active January 21, 2023 23:20
Don't Start Together dedicated server setup

Don't Starve Together Dedicated Server

Requirements

  • Server token from Klei needs work

Getting a server token

  • Visit Klei's Games page
    • link your Steam account with them, if you haven't already
  • Click on the Game Servers button
@bskinner
bskinner / studybuilder-run-task.sh
Created August 19, 2022 19:18
studybuilder-cli "Run Task..." helper
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
STUDY="${STUDY:-""}"
TASK="${TASK:-""}"
set-value() {
local param_name=$1
@bskinner
bskinner / provider.sh
Last active April 5, 2024 16:20
git-secrets pattern provider
#!/usr/bin/env bash
set -eu
# Patterns
patterns=(
# SSH private keys
"[-]----BEGIN\\sRSA\\sPRIVATE\\sKEY-----"
"[-]----BEGIN\\sDSA\\sPRIVATE\\sKEY-----"
"[-]----BEGIN\\sEC\\sPRIVATE\\sKEY-----"
@bskinner
bskinner / basic-sourdough.md
Last active June 9, 2023 16:55
Starter care & feeding, and basic sourdough

So you have a sourdough starter

Care & Feeding

Containers

Ideally, a glass container should be used for the starter's home. I've had the best luck with an wide-mouth, amber 1qt mason jar (a clear jar would be fine, as well). I typically leave my starter on the countertop and use a coffee filter retained by the metal band in place of the metal lid.

Feeding Ratios

The starter will grow happily on a 1:1:1 or 2:2:1 ratio (by weight) of flour:water:starter (I typically use 2:2:1). For example, if your usual bread recipe calls for 150g of starter, a good feeding mix would be:

  • 150g water
@bskinner
bskinner / Pepitas-granola.md
Created November 23, 2019 18:35
Pepitas & chia seed granola

Pepitas Granola

Ingredients

  • 12 oz raw pepitas
  • 90g (3 oz, 0.5 cup) chia seeds
  • 4oz hemp seeds
  • 4oz raw sunflower
  • 0.5 tbsp cinnamon
  • 0.5 tsp hickory liquid smoke
  • 0.5 cups honey
@bskinner
bskinner / Flourless-Almond-Cake.md
Created June 1, 2019 16:32
Flourless Almond Cake

Flourless Almond Cake

Equipment

  • 8-in round cake pan

Ingredients

  • 250g (≈2 cups) fine almond flour
  • 1 pinch salt
  • 100g (≈ 0.66 cups) confectioners sugar
  • 115g (≈0.5 cups) granulated sugar
  • 2 large egg, beaten