sudo adduser --system --no-create-home --shell /usr/sbin/nologin btopuser
sudo addgroup --system procview
sudo usermod -a -G procview btopuser
sudo usermod -a -G video btopuser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ensure tmux is storing history properly | |
| HISTFILE=~/.bash_history | |
| export HISTCONTROL=ignoredups:erasedups,ignoreboth | |
| if [ -n "$TMUX" ]; then | |
| HISTFILE=$(mktemp) | |
| history -r ~/.bash_history | |
| trap 'history -a ~/.bash_history; rm "$HISTFILE"' EXIT | |
| else | |
| trap 'history -a ~/.bash_history' EXIT | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function uvgit(){ | |
| repo=$(echo "${1}" | rev | cut -d'/' -f -1 | rev) | |
| echo "Installing $repo found at ${1}" | |
| uv tool install "git+${1}#egg=${repo}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Neo-Retro Group | |
| # @daryltucker | |
| # /// script | |
| # dependencies = [ | |
| # "requests" | |
| # ] | |
| # /// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| amd-smi-lib: | |
| Installed: 25.5.1.60403-128~24.04 | |
| Candidate: 25.5.1.60403-128~24.04 | |
| Version table: | |
| *** 25.5.1.60403-128~24.04 600 | |
| 600 https://repo.radeon.com/rocm/apt/6.4.3 noble/main amd64 Packages | |
| 100 /var/lib/dpkg/status | |
| comgr: | |
| Installed: 3.0.0.60403-128~24.04 | |
| Candidate: 3.0.0.60403-128~24.04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # vim: set filetype=sh : | |
| # @daryltucker #WorkedForMe | |
| # Find all Packages installed from BAD_REPO and find replacements on GOOD_REPO | |
| # This is my chance to say the ROCm ecosystem is absolute trash | |
| # Otherwise, this script can be useful for other situations, so I'm publishing it. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| assign [class="org.remmina.Remmina" title="Remmina Remote Desktop Client"] $ws1 | |
| assign [class="org.remmina.Remmina" title="^(?!Remmina Remote Desktop Client).*$"] $ws2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| edit firewall ipv6-name WAN6_IN | |
| set default-action drop | |
| set rule 10 action accept | |
| set rule 10 description "Allow Established/Related" | |
| set rule 10 protocol all | |
| set rule 10 state established enable | |
| set rule 10 state related enable | |
| set rule 20 action drop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Assuming you got a small IPv6 block and want to delegate across multiple LAN interfaces | |
| edit interfaces ethernet eth0 | |
| set dhcpv6-pd pd 0 prefix-length /64 | |
| set dhcpv6-pd pd 0 interface eth1 host-address ::1 | |
| set dhcpv6-pd pd 0 interface eth1 prefix-id :0 | |
| set dhcpv6-pd pd 0 interface eth1 service slaac | |
| set dhcpv6-pd pd 0 interface eth2 host-address ::1 | |
| set dhcpv6-pd pd 0 interface eth2 prefix-id :1 |
NewerOlder