- https://www.heidenhain.es/es_ES/software/
- https://product.heidenhain.de/JPBC/image/FILEBASE_PUBLIC/TNCremo33428.zip
import subprocess, re
| while true; do echo 1 > /sys/class/leds/$(ls /sys/class/leds/ | grep scrolllock)/brightness; sleep 0.1; done |
| def to_positive(input): | |
| if (input < 0): | |
| input = input * -1 | |
| return input | |
| def to_negative(input): | |
| if (input > 0): | |
| input = input * -1 | |
| return input |
| # BootKube Deployment (FINAL): | |
| ## NEW INSTALLATIONS: | |
| sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y docker.io vim ethtool traceroute git build-essential lldpd | |
| ## Cleanup | |
| sudo systemctl stop kubelet.service | |
| sudo docker rm bootkube-render | |
| sudo docker stop $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
| sudo docker rm -f $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
| sudo docker rm -f $(sudo docker ps -a | grep bootkube| cut -c1-20 | xargs sudo docker stop) |
| ################################################### | |
| ## | |
| ## Alertmanager YAML configuration for routing. | |
| ## | |
| ## Will route alerts with a code_owner label to the slack-code-owners receiver | |
| ## configured above, but will continue processing them to send to both a | |
| ## central Slack channel (slack-monitoring) and PagerDuty receivers | |
| ## (pd-warning and pd-critical) | |
| ## |