Skip to content

Instantly share code, notes, and snippets.

r-k-b /
Last active May 19, 2022
NixOS flakes and private repos in Azure DevOps / VSTS /

Examples of working Flake urls to private AzOps repos:

nix run 'git+'
nix run 'git+ssh://'
r-k-b /
Created Oct 27, 2021
take a thread dump from a docker container running a mono process

take a thread dump from a docker container running a mono process

...when the container has no shell, so docker exec -it won't work.


identify the Container ID of the problematic container

$ docker stats
r-k-b / highlight_source_hints.css
Last active Apr 7, 2021
highlight source hints
View highlight_source_hints.css
/* */
[data-src-hint] {
position: relative;
z-index: 1;
[data-src-hint]::before {
content: attr(data-src-hint);
position: absolute;
z-index: 2;
top: 0;
r-k-b / _use nixpkgs cypress binary before npms broken
Last active Dec 15, 2022
how to use NixOS's Cypress instead of npm's Cypress
View _use nixpkgs cypress binary before npms broken

Should help with avoiding errors like:

No version of Cypress is installed in: /home/rkb/.cache/Cypress/6.2.1/Cypress

Please reinstall Cypress by running: cypress install


Cypress executable not found at: /home/rkb/.cache/Cypress/6.2.1/Cypress/Cypress
View check if merged or
# quick way to see if the given local branch has already been merged (or
# rebased) into the "main" branch
# Usage:
#    isMerged branch-i-want-to-check
# Defaults to the current branch if none is specified.
View robotics
digraph G {
steel -> muscle [label=2]
press -> muscle [label=1]
iron -> hinge [label=0.5]
iron -> press [label=2]
iron -> motor [label=1]
elec_components -> motor [label=1]
steel -> repairkit [label=1]
robo_components -> repairkit [label=0.5]
muscle -> robo_components [label=1]
r-k-b / debugging OpenAPI Generator 5 mustache
Last active Nov 21, 2020
notes from an OpenAPI generator newcomer
View debugging OpenAPI Generator 5 mustache

unexpected globalProperty argument

$ openapi-generator generate -i ./swagger.json -g elm -t templates/ --global-property debugModels

[error] Found unexpected parameters: [--global-property, debugModels]

See 'openapi-generator help' for usage
r-k-b /
Last active Dec 11, 2020
helper for starting hippo review apps
#!/usr/bin/env bash
set -e
usage() { echo "$0 usage:" && grep " .)\ #" $0; exit 0; }
[ $# -eq 0 ] && usage
while getopts ":hb:p:" arg; do
case $arg in
p) # Specify port prefix value. Any of: 80, 83, 84, 85, 86, 87.
r-k-b / CodecStyleRoutes.elm
Last active Sep 6, 2020
how can we keep route encoding/decoding in sync?
View CodecStyleRoutes.elm
module RouteCodec exposing (..)
import Url exposing (Url)
import Url.Parser as UP exposing ((</>), Parser, s)
type Route
= Home
| Settings
| User String UserRoute
r-k-b /
Last active May 14, 2022
nix shell for a development environment for a Gradle project

I was getting errors like...

$ ./gradlew build
... snip ...
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildSearchableOptions'.
> A problem occurred starting process 'command '/home/rkb/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbrx-8u202-linux-x64-b1483.49/jre/bin/java''