Skip to content

Instantly share code, notes, and snippets.

View ashb's full-sized avatar

Ash Berlin-Taylor ashb

View GitHub Profile
ashb /
Created January 5, 2022 13:09 — forked from pingzh/
for airflow perf test for ti creation inside the dag_run verify_integrity. The test is against a database without other traffic
import time
import logging
from airflow.utils.db import create_session
from airflow.utils import timezone
from airflow.models import TaskInstance, DagRun
from airflow.models.serialized_dag import SerializedDagModel
from airflow.utils.types import DagRunType
logger = logging.getLogger(__name__)
ashb / proxychains4.rb
Last active February 4, 2019 12:31 — forked from allenhuang/proxychains4_formula.rb
Unofficial brew formula for proxychains 4
# Unofficial brew formula for proxychains 4
# Instruction:
# $ git clone gist-3792521
# $ brew install --HEAD gist-3792521/proxychains4.rb
# The default config file will be located in /usr/local/etc/proxychains.conf
require 'formula'
class Proxychains4 < Formula
ashb / gist:cce8edd491de4de9b36017e50cd0c542
Last active April 13, 2016 11:19 — forked from gtmtech/gist:9af0453db143c8a18e4fbd4460e00a91
Realtime dumping of HTTP traffic headers
my $port = shift or "80";
open (FH, "tshark -d tcp.port==$port,http -V -Y 'http.request || http.response' port $port |") or die "Could not run tshark";
while (<FH>) {
if (/^[^\s]/) {
# Headers