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
[Unit] | |
Description=Move the hostnamewith the Domain to the salt minion_id. | |
DefaultDependencies=no | |
After=basic.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c 'echo "$(hostname).fritz.box" > /etc/salt/minion_id' | |
[Install] |
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
echo "define a(m,n){if(m==0){return(n+1)};if(m>0&&n==0){return (a(m-1,1))};if(m>0&&n>0){ return a(m-1,a(m,n-1))}}a(4,1)" | bc |
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
#!/usr/bin/env python3 | |
import serial | |
import time | |
try: | |
arduino = serial.Serial('/dev/ttyUSB0', 19200, timeout=0.1) | |
except: | |
print('Port not found') | |
def read_until(until): |
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
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 4.0" | |
} | |
} | |
} | |
provider "aws" { |
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
import json | |
import time | |
import requests | |
from bs4 import BeautifulSoup | |
# Telegram Variables | |
URL = 'https://api.telegram.org/bot' | |
TOKEN = '<Your Token>' | |
chat_id = '<Your Chat ID>' |