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
// ==UserScript== | |
// @name Bürgeramt Termin Hunting | |
// @description Helfer fürs Bürgeramt | |
// @include htt*://service.berlin.de/terminvereinbarung* | |
// @version 2.02 | |
// ==/UserScript== | |
const MIN_RELOAD_DELAY = 60000; | |
const ADDITIONAL_RELOAD_DELAY = Math.round(Math.random() * 30000); | |
const HUNTING_CONFIG = { | |
acceptableDayRange: 99, |
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
#!/usr/bin/env bash | |
# This script should help facilitate setting up a new worktree, including: | |
# - creating a new worktree | |
# - installing dependencies | |
# - creating a new branch | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT |
How-to man-in-the-middle your own application's traffic for debugging. Below is a quick step-by-step guide to putting mitmproxy
between your hard-to-debug application's HTTP(s) network traffic and its destinations. Allowing you to spy on all requests, as well as modify and replay them. Theres a nice blog post with more screenshots and some explanation behind mitm-ing available here: https://earthly.dev/blog/mitmproxy/
global-agent
- Global node proxy configuration via environment variables (npm) Optional - only necessary for proxying local node scripts/apps that don't have an explicit proxy option. a.$ npm i -g global-agent
mitmproxy
- Popular opensource python man-in-the-middle proxy with web interface (homepage)
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
# Download Loki | |
curl -O -L "https://github.com/grafana/loki/releases/download/v2.0.0/loki-linux-amd64.zip" | |
# Extract Loki's binary | |
unzip "loki-linux-amd64.zip" | |
# Make it executable | |
chmod a+x "loki-linux-amd64" | |
# Move it to your bin path with the name "loki" |
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 | |
### | |
### my-script — does one thing well | |
### | |
### Usage: | |
### my-script <input> <output> | |
### | |
### Options: | |
### <input> Input file to read. | |
### <output> Output file to write. Use '-' for stdout. |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim: noai:et:tw=80:ts=4:ss=4:sts=4:sw=4:ft=python | |
''' | |
Title: netbox_import.py | |
Description: Insert records from devicetype-library into NetBox | |
Author: Ricky Laney | |
Version: 0.1.5 | |
============================================================================== |
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
#!/usr/bin/env python | |
import requests | |
import time | |
import sys | |
from datetime import datetime, timedelta | |
from twilio.rest import Client | |
# Idea and details located here. I just added SMS capability |
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
Install l2tp support | |
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp | |
sudo apt-get update | |
sudo apt-get install network-manager-l2tp | |
sudo apt-get install network-manager-l2tp-gnome | |
https://askubuntu.com/a/898086 | |
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/sh | |
until docker-compose exec mysql mysql -h 127.0.0.1 -u $DB_USERNAME -p$DB_PASSWORD -D $DB_DATABASE --silent -e "show databases;" | |
do | |
echo "Waiting for database connection..." | |
sleep 5 | |
done |
NewerOlder