Skip to content

Instantly share code, notes, and snippets.

@GeriYatola
GeriYatola / brew-sync.sh
Last active December 20, 2021 08:57 — forked from jpawlowski/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
DROPBOX_FOLDER=~/dropbox/.configs/Homebrew
BREWFILE="${DROPBOX_FOLDER}/Brewfile"
BREWFILE_TMP="/tmp/Brewfile"
@GeriYatola
GeriYatola / varnishlog-examples.sh
Last active January 10, 2023 12:45 — forked from cupracer/varnishlog-examples.sh
varnishlog examples (version 4.x)
# filter by response status, print request
varnishlog -q 'RespStatus == 503' -g request
# filter by request host header
varnishlog -q 'ReqHeader ~ "Host: example.com"'
# filter by request url
varnishlog -q 'ReqURL ~ "^/some/path/"'
# filter by client ip (behind reverse proxy)
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select