This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nu | |
def main [target: string] { | |
cd $env.FILE_PWD | |
let flakemeta = nix flake metadata --json | from json | |
let flakepath = $"path:($flakemeta.path)?($flakemeta.locked | select -i lastModified narHash rev revCount | url build-query)" | |
let sshopts = [-q -oCompression=yes -oControlMaster=auto -oControlPath=/tmp/ssh-check-nix-build-%C -oControlPersist=60] | |
$env.NIX_SSHOPTS = $sshopts | str join " " | |
nix copy --to ssh://($target) $flakemeta.path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
!flake.nix | |
!flake.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use flake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result | |
*.bsp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/target | |
/Cargo.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgbase = prometheus-node-exporter-rapl-cfg | |
pkgdesc = powercap group and read access for intel_rapl_common /sys files | |
pkgver = 0.1.0 | |
pkgrel = 1 | |
arch = any | |
license = Apache | |
makedepends = rust | |
source = modules-load.d | |
source = prometheus-node-exporter.d | |
source = sysusers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place at the head of your main file | |
import sys | |
import atexit | |
def function_identifier(frame): | |
code = frame.f_code | |
name = code.co_name | |
file = code.co_filename | |
return "{}:{}".format(file, name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euxo pipefail | |
kernelver="$(pacman -Qi linux-ec2 | grep Version)" | |
paccache -r | |
pacman -Syu --noconfirm | |
if test "$(( $(date +%s) / 86400 % 14 ))" -eq 0 || test "$(pacman -Qi linux-ec2 | grep Version)" != "$kernelver"; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/target |
NewerOlder