From 6a7a5ce04eb60d49c0c24e1f5214880dfc0a4a28 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 12 Dec 2023 00:31:51 +0100 Subject: [PATCH] scripts: cleanup --- home/programs/scripts/bdfr | 10 ++++++++++ .../scripts/update-nedeco-devshell-cache | 20 ------------------- 2 files changed, 10 insertions(+), 20 deletions(-) create mode 100755 home/programs/scripts/bdfr delete mode 100755 home/programs/scripts/update-nedeco-devshell-cache diff --git a/home/programs/scripts/bdfr b/home/programs/scripts/bdfr new file mode 100755 index 0000000..b677235 --- /dev/null +++ b/home/programs/scripts/bdfr @@ -0,0 +1,10 @@ +#!/usr/bin/env nu + +def main [ + --subreddit: string + --sort: string = "hot" +] { + let url = $"https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?args[subreddit]=($subreddit)&args[sort]=($sort)" + + http get $url | ignore +} diff --git a/home/programs/scripts/update-nedeco-devshell-cache b/home/programs/scripts/update-nedeco-devshell-cache deleted file mode 100755 index fa47f1d..0000000 --- a/home/programs/scripts/update-nedeco-devshell-cache +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p git fd ripgrep -# shellcheck disable=SC1008 - -if git remote -v | rg -q nedeco; then - nix path-info -r "$(fd '^flake-profile-[a-z0-9]+$' ./.direnv/)" | while read -r dir; do - echo "Uploading $dir ..." - - if attic push nedeco:devshells "$dir"; then - continue - else - echo "Ignoring error ..." - fi - done -else - echo "Doesn't look like a work repository" - exit 1 -fi - -# vim: set ft=sh: