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
-- Ported from https://github.com/paralleldrive/cuid2/blob/53e246b0919c8123e492e6b6bbab41fe66f4b462/src/index.js | |
-- Adjusted by Ash Berlin to use pgcrypto gen_random_bytes instead of Math.random | |
-- Host fingerprint adjusted to include hostname and backend pid | |
-- This gist is MIT licensed. | |
-- Add the "plv8" extension | |
CREATE EXTENSION IF NOT EXISTS "plv8"; | |
-- Add the "pgcrypto" extension |
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 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__) |
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
# Unofficial brew formula for proxychains 4 | |
# Instruction: | |
# $ git clone https://gist.github.com/628c1d98fab731d809d883c24eedd9d4.git 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 |
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/perl | |
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"; | |
%requests=(); | |
while (<FH>) { | |
if (/^[^\s]/) { | |
# Headers |