This is part of a blog post I wrote: https://debugging.works/blog/tpm-explained/
- I use it on Arch Linux (systemd 257.3-1)
- Install dependency:
yay tpm2-tools(5.7-1)
This is part of a blog post I wrote: https://debugging.works/blog/tpm-explained/
yay tpm2-tools (5.7-1)This was much trickier than I had originally anticipated and have spent a few hours testing.
The config from samba wiki absolutely works, but it wasn't ranked higher in search engine and it's not general enough. https://github.com/zfsonlinux/zfs-auto-snapshot/wiki/Samba
Tested on ubuntu 22.04LTS, samba 4.15.9 and windows 11.
iperf3 serverwg-quick down wg0/etc/wireguard/wg0.conf file| #!/bin/bash | |
| POOLS=$(df -PT | awk '$2~"zfs" && $7~path {print $1}' path="^$(realpath ${1:-/mnt})" | awk -F'/' '{print $1}' | sort | uniq) | |
| USED=0 | |
| AVAIL=0 | |
| for pool in ${POOLS[@]}; do | |
| (( USED += $(zfs get -o value -Hp used $pool) )) | |
| (( AVAIL += $(zfs get -o value -Hp available $pool) )) |
| APT::Periodic::Update-Package-Lists "1"; | |
| APT::Periodic::Download-Upgradeable-Packages "1"; | |
| APT::Periodic::AutocleanInterval "3"; | |
| APT::Periodic::Verbose "1"; | |
| APT::Periodic::Unattended-Upgrade "1"; |
sudo useradd -g nogroup -s /bin/false -m tunnel
sudo -u tunnel mkdir -p ~tunnel/.ssh # and copy your private key here
sudo -u tunnel nano ~tunnel/.ssh/config # add host and key configs here and a myhostsshconf (or other name)
sudo -u tunnel ssh myhostsshconf # just make sure to add your host to `known_hosts`
| #!/bin/bash | |
| unifi_username=USERNAME | |
| unifi_password='PASSWORD' | |
| unifi_controller=https://EXAMPLE.COM:8443 | |
| wifi_id=YOUR_WIFI_ID | |
| cookie=/tmp/cookie | |
| curl_cmd="curl -s -S --cookie ${cookie} --cookie-jar ${cookie} --insecure " |
Sometimes a python script will simply hang forever with no indication of where things went wrong. Perhaps it's polling a service that will never return a value that allows the program to move forward. Here's a way to see where the program is currently stuck.
Install gdb.
# Redhat, CentOS, etc| Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options | |
| This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full. | |
| usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}… | |
| Getting help: | |
| -h — print basic options | |
| -h long — print more options | |
| -h full — print all options (including all format and codec specific options, very long) |