Skip to content

Instantly share code, notes, and snippets.

View nixinator's full-sized avatar
❄️
nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}"

Lee Hughes nixinator

❄️
nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}"
View GitHub Profile
@nixinator
nixinator / shit.sh
Created September 27, 2021 16:16
runner get it
#!/bin/sh
registration_url="https://api.github.com/repos/ArdanaLabs/DanaSwapStats/actions/runners/registration-token"
echo "Requesting registration URL at '${registration_url}'"
payload=$(curl -sX POST -H "Authorization: token ${GITHUB_PAT}" ${registration_url})
#export RUNNER_TOKEN=$(echo $payload | jq .token --raw-output)
echo RUNNER_TOKEN=$(echo $payload | jq .token --raw-output)