Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| linux [22:51 11/09/2024] – [Wissen] boothtml | linux [04:33 06/02/2026] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Docker ====== | ||
| + | ==== Install ==== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ==== Wissen ==== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | **cgroups: | ||
| + | * Quotas für CPU auf CPU + RAM-Ebende (Begrezungen) | ||
| + | |||
| + | **Namespace: | ||
| + | * PID | ||
| + | * Netzwerk | ||
| + | * Dateisystem | ||
| + | * etc | ||
| + | |||
| + | **Portforwording** | ||
| + | |||
| + | 1. Host-Port 2. Container-Port '' | ||
| + | |||
| + | standart ist tcp sonst '' | ||
| + | |||
| + | **Umgebungsvariable** | ||
| + | |||
| + | '' | ||
| + | |||
| + | **Volume** | ||
| + | |||
| + | X = Absl. Path to current docker -> $(PWD) [PWD = Print Working Diractory] | ||
| + | |||
| + | Y = Absl. Path to file for docker use | ||
| + | |||
| + | '' | ||
| + | ==== Commands ==== | ||
| + | |||
| + | |||
| + | <file bash Docker> | ||
| + | |||
| + | sudo docker run hello-world | ||
| + | |||
| + | docker --version | ||
| + | |||
| + | # | ||
| + | docker pull ubuntu | ||
| + | docker pull ubuntu: | ||
| + | |||
| + | #starten (macht von image -> ausgeführten Container) | ||
| + | #docker run PARAM(it = interactiv) IMAGE POGRAMM | ||
| + | docker run -it ubuntu bash | ||
| + | |||
| + | docker images | ||
| + | |||
| + | #docker run -d (detage -> losgelöst -> no output) ngnix: | ||
| + | docker run -d ngnix | ||
| + | |||
| + | #Überblick only activ | ||
| + | docker ps | ||
| + | #all | ||
| + | docker ps -a | ||
| + | |||
| + | #logs -> id bei " | ||
| + | docker logs ID | ||
| + | |||
| + | #stop -> id bei " | ||
| + | docker stop ID | ||
| + | #kill -> hart aus | ||
| + | docker kill ID | ||
| + | |||
| + | #lösche container -> id bei " | ||
| + | docker rm ID | ||
| + | #lösche image -> id bei " | ||
| + | docker rmi ID | ||
| + | |||
| + | #lösche alles was nicht gebraucht wird opt. -> --all --volumes | ||
| + | docker system prune | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ====== VENV Python ====== | ||
| + | |||
| + | * virtuelle Umgebung (venv) | ||
| + | * isoliertes Umfeld für deine Python-Projekte | ||
| + | * Konflikte zwischen verschiedenen Projektabhängigkeiten zu vermeiden | ||
| + | * sicherstellt, | ||
| + | * erstellt Ordner im Projektornder meist venv | ||
| + | |||
| + | <file bash VENV> | ||
| + | |||
| + | #to create | ||
| + | python -m venv venv | ||
| + | python -m venv PROJEKTNAME | ||
| + | |||
| + | #to activate | ||
| + | source venv/ | ||
| + | source PROJEKTNAME/ | ||
| + | |||
| + | #to deactivate | ||
| + | deactivate | ||
| + | |||
| + | |||
| + | -> pip3 install requests | ||
| + | -> pip3 install PACKETNAME | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ====== I-Frame ====== | ||
| + | |||
| + | |||
| + | |||
| + | #iframe | ||
| + | |||
| + | {{url> | ||
| + | |||
| + | or | ||
| + | |||
| + | {{url> | ||
| + | https:// | ||
| + | |||
| + | |||
| + | **Linux comands** | ||
| + | <file bash bash.sh> | ||
| + | #redshift default | ||
| + | redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m randr -v | ||
| + | redshift -O 4000 | ||
| + | redshift -x #reset | ||
| + | |||
| + | #thunar fix | ||
| + | killall gvfsd-sftp | ||
| + | killall Thunar | ||
| + | killall thunar | ||
| + | |||
| + | killall gvfsd-sftp ; killall Thunar ; killall thunar | ||
| + | |||
| + | #del. swap | ||
| + | sudo swapoff -a | ||
| + | |||
| + | #start webserver | ||
| + | python3 -m http.server | ||
| + | |||
| + | #Nord-VPN | ||
| + | sudo nordvpn c de508 | ||
| + | |||
| + | sudo nano / | ||
| + | sudo systemctl restart systemd-resolved | ||
| + | |||
| + | # | ||
| + | DNS=103.86.96.100 | ||
| + | FallbackDNS=103.86.99.100 | ||
| + | |||
| + | |||
| + | sudo c | ||
| + | sudo d | ||
| + | |||
| + | # | ||
| + | ssh-copy-id hannes@ruhe.de | ||
| + | |||
| + | # | ||
| + | |||
| + | df -h | ||
| + | |||
| + | #Uptime | ||
| + | |||
| + | uptime -s | ||
| + | echo " | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | </ | ||
| + | #top 10 biggest files | ||
| + | sudo find / -type f -exec du -h {} + | sort -rh | head -n 10 | ||
| + | |||
| + | <file bash mails> | ||
| + | h.fehre@boothtml.com | ||
| + | Fzx3zC2BFdtgCjE | ||
| + | netcup-panel: | ||
| + | |||
| + | info@boothtml.com | ||
| + | qhh}(ZhylwYb | ||
| + | |||
| + | info@anyplace24.com | ||
| + | JCgoNM9# | ||
| + | |||
| + | logs@boothtml.com | ||
| + | xLw? | ||
| + | |||
| + | Posteingangsserver: | ||
| + | |||
| + | mail.boothtml.com | ||
| + | |||
| + | - IMAP Port: 993 | ||
| + | - POP3 Port: 995 | ||
| + | |||
| + | Postausgangsserver: | ||
| + | |||
| + | mail.boothtml.com | ||
| + | |||
| + | - SMTP Port: 465 | ||
| + | |||
| + | |||
| + | mx2e15.netcup.net | ||
| + | 143 STARTLS | ||
| + | 465 SSL/TSL | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | <file bash modt> | ||
| + | /etc/motd | ||
| + | |||
| + | sudo apt-get install neofetch | ||
| + | neofetch | ||
| + | sudo bash -c $'echo " | ||
| + | </ | ||
| + | |||
| + | |||
| + | <file bash open_AndruidStudi> | ||
| + | cd / | ||
| + | ./studio.sh | ||
| + | </ | ||
| + | |||
| + | ====== Logs ====== | ||
| + | |||
| + | |||
| + | Channel Id in URL von Telegramm | ||
| + | |||
| + | <file python log Genaral> | ||
| + | |||
| + | #Telgramm Logs | ||
| + | import requests | ||
| + | tel_msg = " | ||
| + | response = requests.get(' | ||
| + | print(response.text) | ||
| + | if response.status_code == 200: | ||
| + | print(' | ||
| + | elif response.status_code == 404: | ||
| + | print(' | ||
| + | |||
| + | </ | ||
| + | |||
| + | <file python php Genaral> | ||
| + | https:// | ||
| + | $tel_msg = "von php"; | ||
| + | $bot_token = ' | ||
| + | $chat_id = ' | ||
| + | |||
| + | file_get_contents(" | ||
| + | |||
| + | </ | ||
| + | |||
| + | <file python log MyCaochFinder> | ||
| + | |||
| + | #Telgramm Logs | ||
| + | import requests | ||
| + | tel_msg = " | ||
| + | response = requests.get(' | ||
| + | print(response.text) | ||
| + | if response.status_code == 200: | ||
| + | print(' | ||
| + | elif response.status_code == 404: | ||
| + | print(' | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ====== GPT ====== | ||
| + | |||
| + | |||
| + | # price | ||
| + | https:// | ||
| + | https:// | ||
| + | |||
| + | ## text | ||
| + | 4 | ||
| + | Model Prompt Completion | ||
| + | 8K context $0.03 / 1K tokens $0.06 / 1K tokens | ||
| + | 32K context $0.06 / 1K tokens $0.12 / 1K tokens | ||
| + | |||
| + | **3.5 Chat** | ||
| + | Model Usage | ||
| + | gpt-3.5-turbo, | ||
| + | |||
| + | 1 Blogpost = 1000 Artikel = $2 | ||
| + | |||
| + | Davinci | ||
| + | $0.0200 / 1K tokens | ||
| + | |||
| + | ## images | ||
| + | Resolution Price - default token input | ||
| + | 1024×1024, | ||
| + | 512×512, | ||
| + | 256×256, | ||
| + | |||
| + | |||
| + | -> $16*3= $48 Images | ||
| + | |||
| + | Jährlich $15 Server | ||
| + | monatlich. $25 Bunny | ||
| + | |||
| + | = $40 monatlich | ||