citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 5f53c10ee4f9ec01f3e4a0c0e7703d89e64618a0
parent 37704d574651fbb0f2d373b9656e3da574106130
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 29 Sep 2020 13:30:32 -0700

bin: add recvalert, last_ss, etc

Diffstat:
Abin/edit-visual | 2++
Abin/iommu | 9+++++++++
Abin/last_ss | 3+++
Abin/recvalert | 3+++
Mnix-config/environment/default.nix | 2++
5 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/bin/edit-visual b/bin/edit-visual @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +exec nvim "$@" diff --git a/bin/iommu b/bin/iommu @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +shopt -s nullglob +for d in /sys/kernel/iommu_groups/*/devices/* +do + n=${d#*/iommu_groups/*}; n=${n%%/*} + printf 'IOMMU Group %s ' "$n" + lspci -nns "${d##*/}" +done diff --git a/bin/last_ss b/bin/last_ss @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +\ls -d -t -1 ~/var/img/ss/* | head -n1+ \ No newline at end of file diff --git a/bin/recvalert b/bin/recvalert @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +gpg --decrypt | xargs -I{} notify-send -u critical "{}" diff --git a/nix-config/environment/default.nix b/nix-config/environment/default.nix @@ -37,6 +37,7 @@ let jb55pkgs = import <jb55pkgs> { inherit pkgs; }; aspellDicts.en aspellDicts.en-computers aspellDicts.en-science + awscli bat bc binutils @@ -47,6 +48,7 @@ let jb55pkgs = import <jb55pkgs> { inherit pkgs; }; fzf git-tools gnupg + gnumake groff haskellPackages.una htop