apt install bpftool
uname -r
bpftool feature probe | sed -n '1,200p'
mount | grep bpffs || sudo mount -t bpf bpffs /sys/fs/bpf
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
The following packages have unmet dependencies:
dnsdist : Depends: libre2-9 (>= 20131024+dfsg) but it is not installable
E: Unable to correct problems, you have held broken packages.
E: The following information from --solver 3.0 may provide additional context:
Unable to satisfy dependencies. Reached two conflicting decisions:
1. dnsdist:amd64=2.1.0~alpha0+master.717.g1fe1273bc-1pdns.debian12 is selected for install
2. dnsdist:amd64=2.1.0~alpha0+master.717.g1fe1273bc-1pdns.debian12 Depends libre2-9 (>= 20131024+dfsg)
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
| ## curl -s https://gist.githubusercontent.com/amanjuman/fe6324137c08b356061595e9f76a34b9/raw/b05185579853c8c779408c4bd48df2ea9e33c5a3/linux_install.sh | sudo bash | |
| #!/bin/bash | |
| # Function to detect Linux distribution | |
| detect_distro() { | |
| if [ -f /etc/os-release ]; then | |
| . /etc/os-release | |
| OS_NAME=$ID | |
| OS_VERSION=$VERSION_ID |
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 | |
| ssid=$(networksetup -getairportnetwork en0 | cut -d ":" -f 2 | sed "s/^[ \t]*//") | |
| sudo airport -z | |
| sudo ifconfig en0 ether $(openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.\$//") | |
| networksetup -setairportnetwork en0 "$ssid" |
ps -eo pid,comm,%mem --sort=-%mem | head -n 11
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
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
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
| # Last update 2025-05-11 | |
| # Author zoonderkins | |
| force_color_prompt=yes | |
| if [ -n "$force_color_prompt" ]; then | |
| if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
| # We have color support; assume it's compliant with Ecma-48 | |
| # (ISO/IEC-6429). (Lack of such support is extremely rare, and such | |
| # a case would tend to support setf rather than setaf.) |
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 | |
| CHECK_OS(){ | |
| if [[ -f /etc/redhat-release ]]; then | |
| release="centos" | |
| elif grep -q -E -i "debian" /etc/issue; then | |
| release="debian" | |
| elif grep -q -E -i "ubuntu" /etc/issue; then | |
| release="ubuntu" | |
| elif grep -q -E -i "centos|red hat|redhat" /etc/issue; then |
NewerOlder