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
# ~/.gitconfig | |
# Different users per project/directory | |
[includeIf "gitdir:~/Code/private_project/"] | |
path = ~/Code/private_project/.gitconfig-private | |
[includeIf "gitdir:~/Code/project/"] | |
path = ~/Code/project/.gitconfig-project |
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 pyautogui | |
import time | |
import argparse | |
def main(): | |
parser = argparse.ArgumentParser(description="Prevent standby by moving the mouse.") | |
parser.add_argument("--duration", type=int, default=None, help="Time in seconds until the script stops (optional)") | |
args = parser.parse_args() | |
start_time = time.time() |
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
#!/bin/bash | |
INSTANCE_ID=$(aws ec2 describe-instances --region eu-central-1 --output text --query "Reservations[].Instances[?State.Name == 'running'].InstanceId[]") | |
aws ssm start-session --target $INSTANCE_ID |
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 time | |
import xml.sax | |
from xml.dom import minidom | |
# SAX Parser Handler | |
class MySAXHandler(xml.sax.ContentHandler): | |
def __init__(self): | |
self.current_tag = None | |
def startElement(self, tag, attributes): | |
self.current_tag = tag |
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 boto3 | |
# Define the team's roster | |
TEAM_ROSTER = [ | |
{"code": "bn72", "number": 72, "name": "Niklas Lunemann", "team": "EC Bad Nauheim"}, | |
{"code": "bn30", "number": 30, "name": "Maximilian Meier", "team": "EC Bad Nauheim"}, | |
{"code": "bn3", "number": 3, "name": "Nick Aichinger", "team": "EC Bad Nauheim"}, | |
{"code": "bn27", "number": 27, "name": "Alexander Dersch", "team": "EC Bad Nauheim"}, | |
{"code": "bn23", "number": 23, "name": "Marius Erk", "team": "EC Bad Nauheim"}, | |
{"code": "bn58", "number": 58, "name": "Christopher Fischer", "team": "EC Bad Nauheim"}, |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "centos/7" | |
config.ssh.insert_key = true | |
config.vm.network :private_network, ip: "10.0.2.15" | |
config.vm.provider "qemu" do |qe| |
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
FROM alpine:3.17 | |
ENV NODEJS_VERSION "18.12.1-r0" | |
ENV HOST=0.0.0.0 | |
RUN apk --update --no-cache add curl bash nodejs=$NODEJS_VERSION npm | |
WORKDIR /var/www | |
RUN npm install -D tailwindcss@latest postcss@latest autoprefixer@latest |
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
kubectl run -n jgroups-demo ispn -it --rm=true --image=belaban/ispn_perf_test kube.sh |
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 boto3 | |
endpoint="https://S3-eu-central-1.ionoscloud.com" | |
bucket_name="my_bucket" # add your bucket here | |
client = boto3.client('s3', | |
endpoint_url=endpoint, | |
config=boto3.session.Config(signature_version='s3v4'), | |
aws_access_key_id = "4ab...76", # add your access key | |
aws_secret_access_key = "nDkdd...Trdd" # add your secret key |
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
FROM openresty/openresty:1.21.4.1-1-alpine | |
ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin | |
RUN apk update \ | |
&& apk add curl perl \ | |
# install nginx-lua-openresty https://opm.openresty.org/package/knyar/nginx-lua-prometheus/ | |
&& opm get knyar/nginx-lua-prometheus \ | |
&& mkdir -p /var/log/nginx \ | |
&& mkdir /var/www \ |
NewerOlder