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
| #!/usr/bin/env python3 | |
| year = input("Please enter a 4 digit year: ") | |
| cenFloats = [2, 0, 5, 3] | |
| weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] | |
| def getMinorFloat(x): | |
| return ((x+int(x/4))%7) |
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
| #!/usr/bin/env python3 | |
| def domaininput(): | |
| try: | |
| subdomain = input("Enter a valid subdomain (Example: sub1.domain.com): ").lower().split(".") | |
| sub = subdomain[0] | |
| domain = f"{subdomain[1]}.{subdomain[2]}" | |
| return sub, domain | |
| except IndexError: |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Ask AI</title> | |
| <script src="https://js.puter.com/v2/"></script> | |
| <style> | |
| pre { | |
| background-color: #f4f4f4; | |
| padding: 10px; | |
| border-radius: 6px; |
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
| import requests | |
| import json | |
| def get_f1_schedule(year=2026): | |
| url = f"https://api.openf1.org/v1/meetings?year={year}" | |
| resp = requests.get(url, timeout=15) | |
| resp.raise_for_status() | |
| meetings = resp.json() | |
| schedule = [] |
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
| whatowns() { | |
| [ -z "$1" ] || [ -z "$2" ] && return 0 | |
| kubectl get pod "$1" -n "$2" \ | |
| -o jsonpath='{.metadata.ownerReferences[0].kind}{" / "}{.metadata.ownerReferences[0].name}{"\n"}' \ | |
| 2>/dev/null | |
| } |
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
| apiVersion: batch/v1 | |
| kind: CronJob | |
| metadata: | |
| name: check-ssl-expiration | |
| namespace: default | |
| spec: | |
| concurrencyPolicy: Allow | |
| failedJobsHistoryLimit: 1 | |
| jobTemplate: | |
| spec: |
OlderNewer