Simple widget to ping a host and get color feedback, green => online red => offline
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
| # Based on tjkirch.zsh-theme to ajust to color I want and I like. | |
| ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}\u21AF" | |
| ZSH_THEME_GIT_PROMPT_CLEAN=" \u2714" | |
| PROMPT='%{$fg_bold[green]%}%n%{$reset_color%}@%{$fg_bold[red]%}%M%{$reset_color%}:%{$fg_bold[blue]%}[$(pwd)]%{$reset_color%} | |
| > ' # default prompt |
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
| #include <Arduino.h> | |
| /** | |
| * #include "debouncer.hpp" | |
| * | |
| * const int pushPin = D2; | |
| * debounce_t push_debounce; | |
| * | |
| * void setup() { | |
| * pinMode(LED_BUILTIN, OUTPUT); |
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 | |
| import argparse | |
| import subprocess | |
| import json | |
| import sys | |
| from urllib import parse | |
| from requests import post | |
Proxmox Virtual Environment 6.1-3 / Debian 10 (buster)
Kernel 5.3.10-1-pve
Ethernet controller: Intel Corporation Ethernet Connection (2) I218-V (rev 05)
Ethernet driver: e1000e 3.2.6-k
Ethernet firmware: 0.1-4
The solution I've found was to create a oneshot service which disables segmentation offloading.
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 | |
| IPSET=/usr/sbin/ipset | |
| IPSET_NAME="blocked_ips" | |
| IP_FILE="/tmp/blocked_ips.txt" | |
| DOCKER_CHAIN="DOCKER-USER" | |
| declare -A IPTABLES_BINARY=( | |
| ["/usr/sbin/iptables"]="iptables v4" | |
| ["/usr/sbin/ip6tables"]="iptables v6" |
OlderNewer
