/mysearch\c will match mysearch, MYSEARCH, mYSeArCh…
Posts tagged: tech
All posts with the tag "tech"
zfs list has a flag -r, but if you use zfs driver for docker then you’ll get flooded with every docker volume in the world. zfs list -r -d N will limit the dept of the print out, so zfs list -r -d 2 gives me tank, tank/encrypted, tank/encrypted/docker -> but then I don’t see all the continer volumes
I learned you can embed gifs and stuch in things other than GH personal pages!
So here I’ll keep ones I like and might use later
Bought some DDR4-3600 speed RAM but only seeing 2666? Load up the BIOS, find DRAM config or something similar, and make sure to load the XMP profile to get that advertised RAM speed!
ssh -v -i ~/.ssh/id_rsa nic@hogwarts
THen we can look at print outs
cat /var/log/auth.log also showed me that I had too wide permissions on files in ~/.ssh -> probably changed from an rsync job
Assuming you have a pool called tank…
And assuming you have an encrypted dataset (See Jim Saltar’s short intro)
- Create a group for permissions - in my case I have one called
home - Then if there’s anything in
/tank/encryptedhis it withchgrp -R home /tank/encryptedto give thehomegroup ownership - Next we need to make sure that the members of
homecan do the writing… sochmod 775 -R /tank/encryptedwill do the trick - Finally we want to make sure that all data created inside our dataset has
the same set of permissions with
chmod g+s /tank/encryptedandchmod g+w /tank/encrypted
sudo dmidecode -s bios-version
I use Tmux and Vim for most of my workflow, but I end up with a lot of dangling
tmux sessions that dont’ really need to persist… but killing them one at a
time is a pain so I wrote a little script-kitty nonsense to pipe multiple
choices from fzf into tmux kill-session
I defined a little function in my .zshrc
destroy() {
tmux list-sessions -F '#{session_name}' | fzf -m | xargs -d $'\n' sh -c 'echo "killing $0"; tmux kill-session -t "$0"; for arg;do echo "killing $arg";tmux kill-session -t "$arg"; done'
}
bindkey -s '^d' 'destroy \n'
tmux list-sessions -F '#{session_name}' prints all my active tmux sessions to the console with the format of just their name
pype.dev main ×1 via v3.8.11(pype.dev) on (us-east-1) proxy
❯ tmux list-sessions -F '#{session_name}'
session-01
session-02
session-03
...
Pipe that to fzf -m to allow multiple choices to be made using tab
Then the nasty bit in xargs… I echo killing @0 and killing $arg because the sh -c passes the first tmux session name to @0 (it’s just what bash does) and then the rest get handled in the for loop.
Basically then I get an fzf list to choose multiple tmux sessions to destroy to clean up some RAM!
TODO: change title - add –listen or –host or something as 0.0.0.0… that way it listens not on localhost or 127.0.0.1, but on all addresses!




