Tested to work with builds: -
- ✅
231011-63f708417 - ✅
230923-e59851350 - ✅
230719-73fa7bbe8
Use this workaround until Photoprism implemented bulk-edit feature.
| #!/bin/bash | |
| # Inspired on https://david-kerwick.github.io/2017-01-04-combining-zsh-history-files/ | |
| set -e | |
| history1=$1 | |
| history2=$2 | |
| merged=$3 | |
| echo "Merging history files: $history1 + $history2" | |
| test ! -f $history1 && echo "File $history1 not found" && exit 1 |
This uses Linux kernel dyamic debug features
https://www.kernel.org/doc/html/latest/admin-guide/dynamic-debug-howto.html
This asumes that debugfs is mounted under /sys/kernel/debug
echo 'module wireguard +p' | sudo tee /sys/kernel/debug/dynamic_debug/control
| -- Accepted answer from here: https://stackoverflow.com/questions/5408156/how-to-drop-a-postgresql-database-if-there-are-active-connections-to-it | |
| SELECT pg_terminate_backend(pg_stat_activity.pid) | |
| FROM pg_stat_activity | |
| WHERE pg_stat_activity.datname = '[your database name goes here]' | |
| AND pid <> pg_backend_pid(); |
| #!/bin/bash | |
| # Expects Ubuntu 16.06 (xenial) and kernel 4.x. | |
| # Based upon a blog post by Zach at http://zachzimm.com/blog/?p=191 | |
| set -eux | |
| # Have the user call sudo early so the credentials is valid later on | |
| sudo whoami |
| if input volume of (get volume settings) = 0 then | |
| set level to 90 | |
| display notification "On" with title "Mic" | |
| tell application "System Events" | |
| tell appearance preferences | |
| set dark mode to false | |
| end tell | |
| end tell | |
| else | |
| set level to 0 |
| #!/bin/bash | |
| # Expects Ubuntu 16.06 (xenial) and kernel 4.x. | |
| # Based upon a blog post by Zach at http://zachzimm.com/blog/?p=191 | |
| set -eux | |
| # Have the user call sudo early so the credentials is valid later on | |
| sudo whoami |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys and look for sec, use the key ID for the next stepgit to use GPG -- replace the key with the one from gpg --list-secret-keys| rabbitmqctl add_user test test | |
| rabbitmqctl set_user_tags test administrator | |
| rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
| $ tmux attach | |
| protocol version mismatch (client 7, server 6) | |
| $ pgrep tmux | |
| 3429 | |
| $ /proc/3429/exe attach |