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 | |
# Keybase publishes a JSON file concurrent with every nightly build upload to their public download web server, | |
# though they're real cute in the way they parse the timestamp as a UNIX epoch...in milliseconds :-/ That means | |
# we need to fuss with rounding errors in Bash built-in computations on top of using jq as a parser for the raw | |
# file instead of what I expected to be some quick "awk-to-humantime-to-apt" pipeline-foo. Still it came out | |
# fairly snappy and is solid as a rock. | |
# Set this up as a cron job at the interval of your choosing, it won't do anything until it sees that the | |
# installed version reported by apt has an older timestamp than the one in the JSON file. When that happens it |
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
#!/bin/vbash | |
# shellcheck shell=bash | |
# file: 99-git-commit | |
# description: Saves config commands & config json to files, commits to local | |
# git repo. Repo stored in /config/user-data/$CONFIG_REPO. Completes | |
# process with a push to the remote repo. | |
# | |
# This script is intended to be used as a post-commit hook, allowing | |
# for automated config backup in a git repo. |
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
[ | |
{ | |
"type": "A", | |
"name": "@", | |
"value": "SOMEIP" | |
}, | |
{ | |
"type": "A", | |
"name": "*", | |
"value": "SOMEIP" |
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
# Add this to your ~/.config/fish/config.fish | |
# Syntax: | |
# To just rerun your last command, simply type '!!' | |
# This forked version supports "sudo !!" via two functions. | |
function !! | |
eval $history[1] $argv | |
end function | |
function sudo | |
if test $argv |