This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

pkgs: vendor kpaste, cyberlocker-tools and untilport from stockholm

+64 -7
+4 -4
configs/default.nix
··· 6 6 ... 7 7 }: 8 8 let 9 - stockholmPkgs = self.inputs.stockholm.packages.${pkgs.stdenv.hostPlatform.system}; 9 + selfPkgs = self.packages.${pkgs.stdenv.hostPlatform.system}; 10 10 in 11 11 { 12 12 ··· 187 187 #neat utils 188 188 file 189 189 xkcdpass 190 - stockholmPkgs.kpaste 191 - stockholmPkgs.cyberlocker-tools 190 + selfPkgs.kpaste 191 + selfPkgs.cyberlocker-tools 192 192 pciutils 193 193 pop 194 - stockholmPkgs.untilport 194 + selfPkgs.untilport 195 195 (pkgs.writers.writeDashBin "urgent" '' 196 196 printf '\a' 197 197 '')
+28
pkgs/cyberlocker-tools/package.nix
··· 1 + # Copied from stockholm krebs/5pkgs/simple/cyberlocker-tools (cc283503). 2 + { 3 + curl, 4 + symlinkJoin, 5 + writers, 6 + }: 7 + symlinkJoin { 8 + name = "cyberlocker-tools"; 9 + paths = [ 10 + (writers.writeDashBin "cput" '' 11 + set -efu 12 + path=''${1:-$(hostname)} 13 + path=$(echo "/$path" | sed -E 's:/+:/:') 14 + url=http://c.r$path 15 + 16 + ${curl}/bin/curl -fSs --data-binary @- "$url" 17 + echo "$url" 18 + '') 19 + (writers.writeDashBin "cdel" '' 20 + set -efu 21 + path=$1 22 + path=$(echo "/$path" | sed -E 's:/+:/:') 23 + url=http://c.r$path 24 + 25 + ${curl}/bin/curl -f -X DELETE "$url" 26 + '') 27 + ]; 28 + }
+12
pkgs/kpaste/package.nix
··· 1 + # Copied from stockholm krebs/5pkgs/simple/kpaste (cc283503). 2 + { 3 + curl, 4 + gnused, 5 + writers, 6 + }: 7 + 8 + writers.writeDashBin "kpaste" '' 9 + ${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" \ 10 + -H "Content-Type-Override: ''${KPASTE_CONTENT_TYPE-}" | 11 + ${gnused}/bin/sed '$ {p;s|http://p.r|https://p.krebsco.de|}' 12 + ''
+19
pkgs/untilport/package.nix
··· 1 + # Copied from stockholm krebs/5pkgs/simple/untilport (cc283503). 2 + { libressl, writers }: 3 + 4 + writers.writeDashBin "untilport" '' 5 + set -euf 6 + 7 + usage() { 8 + echo 'untiport $target $port' 9 + echo 'Sleeps until the destinated port is reachable.' 10 + echo 'ex: untilport google.de 80 && echo "google is now reachable"' 11 + } 12 + 13 + 14 + if [ $# -ne 2 ]; then 15 + usage 16 + else 17 + until ${libressl.nc}/bin/nc -z "$@"; do sleep 1; done 18 + fi 19 + ''
+1 -3
configs/services/radio/news.nix
··· 6 6 let 7 7 send_to_radio = pkgs.writers.writeDashBin "send_to_radio" '' 8 8 ${pkgs.vorbis-tools}/bin/oggenc - | 9 - ${ 10 - self.inputs.stockholm.packages.${pkgs.stdenv.hostPlatform.system}.cyberlocker-tools 11 - }/bin/cput news.ogg 9 + ${self.packages.${pkgs.stdenv.hostPlatform.system}.cyberlocker-tools}/bin/cput news.ogg 12 10 ${pkgs.curl}/bin/curl -fSs -X POST http://localhost:8002/newsshow 13 11 ''; 14 12