This file contains 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
# ~/.config/fish/functions/nin.fish | |
function nin | |
set installed (nix profile list) | |
if string match "" "$argv" | |
set argv (cat ~/.config/nix/nin.conf) | |
end |
This file contains 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
#!/bin/sh | |
# Copyright (c) 2021 Scott Bonds <scott@ggr.com> | |
# ISC License, see https://en.wikipedia.org/wiki/ISC_license | |
# inspired by: https://github.com/idris-lang/Idris-dev/blob/master/scripts/runidris | |
# This is a script that runs a Haskell program, suitable for use in a shebang | |
# line. We cache the executables by naming them after the SHA hash of the | |
# Haskell source and looking for it before compiling. |
This file contains 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
#!/bin/sh | |
# This script allows you to use the gps function of a Lenovo H5321 (aka | |
# Ericsson H5321) mobile broadband module under OpenBSD 6.1. | |
# | |
# Requires: gpsd, socat, access to port 2947 on localhost (i.e. pf.conf) | |
# Usage: gps_on [interval] [tempfile] | |
# | |
# Forked from: | |
# |
This file contains 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
#!/bin/sh | |
gpspipe -w 2>&1 | grep --line-buffered lon | jq -c "{time: .time|todateiso8601, latitude: .lat, longitude: .lon}" |