remove unused binaries
This commit is contained in:
parent
3fc07fbbe5
commit
8aa51d08ee
5 changed files with 0 additions and 76 deletions
16
bin/gren
16
bin/gren
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -ex
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Usage: $0 <branch name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hub sync
|
||||
|
||||
if git rev-parse --verify --quiet $1; then
|
||||
git checkout $1
|
||||
else
|
||||
git checkout -b $1 main
|
||||
git push -u origin $1
|
||||
fi
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
kubectl get pod --output json \
|
||||
| jq -r '[.items[].metadata.labels]|map(to_entries[]|(.key) + "=" + .value)|unique|.[]' \
|
||||
| fzf \
|
||||
| xargs kubectl tail "$@" -l
|
46
bin/pw
46
bin/pw
|
@ -1,46 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Author: Daniel Lundin <dln@arity.se>
|
||||
#
|
||||
# Convenience script to hide sensitive variables on the command line.
|
||||
# Uses keyctl to store secrets in the keyring.
|
||||
#
|
||||
# Example usage: mycommand --user=foo --password=$(pw mypass)
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
purge=0
|
||||
ttl=${PW_TTL:-259200}
|
||||
|
||||
usage() { echo "Usage: $0 [-t SECONDS] [-f] SECRET_NAME" 1>&2; exit 1; }
|
||||
|
||||
while getopts ":ft:" o; do
|
||||
case "${o}" in
|
||||
f)
|
||||
purge=1
|
||||
;;
|
||||
t)
|
||||
ttl=${OPTARG}
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift $((OPTIND-1))
|
||||
|
||||
var="$1"
|
||||
shift || usage
|
||||
[ -z "$1" ] || usage
|
||||
|
||||
key="pw.${var}"
|
||||
|
||||
if [ "${purge}" == "1" ]; then
|
||||
keyctl purge user "${key}" >>/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
out=$(systemd-ask-password --accept-cached --keyname="${key}" "${var}:")
|
||||
key_id=$(keyctl request user "${key}" 2>/dev/null)
|
||||
keyctl timeout "$key_id" "$ttl"
|
||||
|
||||
printf "%s" "$out"
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ef -o pipefail
|
||||
eval "$(direnv export bash)"
|
||||
eval "${BUILD_COMMAND:-echo 'BUILD_COMMAND not set'}" | bat --paging=always
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
tmux select-window -t1
|
||||
FILE="$1"
|
||||
shift
|
||||
exec nvr --remote "$@" $(readlink -f "$FILE")
|
Loading…
Reference in a new issue