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
| # | |
| # Some usefull kubectl commands | |
| # | |
| function kube-find-namespace() { | |
| kubectl get namespaces | tail -n +2 | fzf -q "$1" | awk '/(.*)/ {print $1}' | |
| } | |
| function kube-app-pod() { | |
| local namespace | |
| namespace=$1 | |
| kubectl get pods --field-selector status.phase=Running -n "$namespace" | awk '/(.*)-app-(.*) / {print $1}' | head -n 1 |
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/python | |
| # This is a simple script to help save and restore the database during development. | |
| # Usage: | |
| # - dev-db save users | |
| # - dev-db restore users | |
| import sys | |
| import os |
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
| // Constants | |
| const APPOINTMENTS_CALENDAR_URL = "/terminvereinbarung/termin/all/120686/" | |
| const WAIT_DURATION_MS = 3 * 60 * 1000 | |
| const INITIAL_STATE = "INIT_STATE" | |
| const SETTING_UP_STATE = "SETTING_UP_STATE" | |
| const CHECKING_APPOINTMENTS_STATE = "CHECKING_APPOINTMENTS_STATE" | |
| const WAITING_STATE = "WAITING_STATE" | |
| const ALARM_STATE = "ALARM_STATE" |
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
| // Simple bot that executes an action after another that I made for the game Progress Knight Quest | |
| // https://indomit.github.io/progress_knight_2/ | |
| // GitHub: https://github.com/indomit/progress_knight_2/ | |
| (() => { | |
| try { | |
| window.stop_bot(); | |
| } catch (_) {} | |
| /* UTIL */ |
OlderNewer