🏳️🌈
This file contains 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
# eedomus_command.py | |
import requests | |
api_user = "XXXXXX" | |
api_secret = "XXXXXXXXXXXXXXXX" | |
action = "periph.value" | |
@service | |
def eedomus_command(periph_id=None, value=None): |
This file contains 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
# Example to use Docker instead of containerd & nerdctl | |
# $ limactl start ./docker.yaml | |
# $ limactl shell docker docker run -it -v $HOME:$HOME --rm alpine | |
# To run `docker` on the host (assumes docker-cli is installed): | |
# $ export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock') | |
# $ docker ... | |
#vmType: "vz" |
This file contains 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
iptables -I DOCKER-USER -i <interface_ext> -j DROP | |
iptables -I DOCKER-USER -m state --state RELATED,ESTABLISHED -j ACCEPT | |
# Just in case there is a Traefik instance or to add a specific port | |
iptables -I DOCKER-USER -i <interface_ext> -p tcp --dport 80 -j ACCEPT | |
iptables -I DOCKER-USER -i <interface_ext> -p tcp --dport 443 -j ACCEPT |
This file contains 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
blueprint: | |
name: Battery Level Notification (25) | |
description: | |
Send a notification to a device when battery drops below a specified | |
value - Pick 25 devices | |
domain: automation | |
input: | |
battery_entity_0: | |
name: "Entity_01" | |
selector: |
This file contains 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
alias clean-node-modules="find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;" |
This file contains 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
sudo apt install cockpit cockpit-packagekit cockpit-networkmanager cockpit-storaged cockpit-docker |
This file contains 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
sudo apt-get install zsh curl git | |
chsh -s $(which zsh) |