Skip to content

Instantly share code, notes, and snippets.

View cloudchristoph's full-sized avatar
🏠
Working from home

Christoph Vollmann cloudchristoph

🏠
Working from home
View GitHub Profile
@cloudchristoph
cloudchristoph / FirstFreeSlot.ps1
Last active June 15, 2021 14:19
Prüft die Impfterminseite von Magdeburg auf neue Termine
while ($true) {
$freeslotData = Invoke-WebRequest -Uri "https://impfzentrum.termin-direkt.de/rest-v2/api/Calendars/8/FirstFreeSlot" -Headers @{
"method" = "GET"
"authority" = "impfzentrum.termin-direkt.de"
"scheme" = "https"
"path" = "/rest-v2/api/Calendars/8/FirstFreeSlot"
"sec-ch-ua" = "`" Not;A Brand`";v=`"99`", `"Google Chrome`";v=`"91`", `"Chromium`";v=`"91`""
"dnt" = "1"
"sec-ch-ua-mobile" = "?0"
"user-agent" = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36"
@cloudchristoph
cloudchristoph / main.bicep
Last active November 5, 2021 14:33
Bicep - nested loop with module
param sbNamespaceName string = 'sbnamespace'
param topics array = [
{
name: 'topic1'
subscriptions: [
'sub1.1'
'sub1.2'
]
}
{
@cloudchristoph
cloudchristoph / chat.sh
Created July 19, 2023 11:45
Chat directly from command line ▶️ ./chat.sh 'Hello Llama!'
# Prerequisite: https://gist.github.com/adrienbrault/b76631c56c736def9bc1bc2167b5d129
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
# Check if command line argument is given
if [ $# -eq 0 ]; then
echo "Prompt: " &&
read PROMPT
else
PROMPT=$1
trigger:
- none
variables:
- name: PROJECT_PATH
value: terraform
- name: tfComponent
value: cluster
- name: tfExecutionDir
value: '$(PROJECT_PATH)/src/$(tfComponent)'
@cloudchristoph
cloudchristoph / Deny-Service-Endpoints.json
Created April 11, 2024 09:19
Azure Policy: Deny Service Endpoints on subnets
{
"name": "Deny Service Endpoints on subnets",
"description": "This Policy will deny the enablement of Service Endpoints on subnets. This will also prevent PaaS resources such as Azure Storage from being able to add this subnet to their firewall allowed list.",
"mode": "All",
"policyRule": {
"if": {
"anyOf": [
{
"allOf": [
{