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
# log4j jndi exploit CVE-2021-44228 filter | |
# Save this file as /etc/fail2ban/filter.d/log4j-jndi.conf | |
# then copy and uncomment the [log4j-jndi] section | |
# to /etc/fail2ban/jail.local | |
# | |
# jay@gooby.org | |
# https://jay.gooby.org/2021/12/13/a-fail2ban-filter-for-the-log4j-cve-2021-44228 | |
# https://gist.github.com/jaygooby/3502143639e09bb694e9c0f3c6203949 | |
# Thanks to https://gist.github.com/kocour for a better regex | |
# |
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
Moved to https://github.com/jaygooby/what-user-agent |
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
Now https://github.com/jaygooby/kaslurp |
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
# I've got this as an alias, but you could just save it to ~/bin etc | |
# | |
# You don't have to use atom either, it would work just as well with subl or vim or whatever, | |
# only the pun's not as good then... | |
atom . $(git status --porcelain | cut -d" " -f3 | xargs -I {} echo './'{} | xargs) |
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
require 'formula' | |
class Jack <Formula | |
homepage 'http://jackaudio.org' | |
version '0.90' | |
url 'https://dl.dropboxusercontent.com/u/28869550/JackOSX.0.90.zip' | |
def install | |
system "xar -xf JackOSX.0.90.pkg" |
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 | |
# Gist: 11375877 | |
# Url: https://gist.github.com/goodevilgenius/11375877 | |
# | |
# All memcache functions are supported. | |
# | |
# Can also be sourced from other scripts, e.g. | |
# source membash.sh | |
# MCSERVER="localhost" |
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
# Moved to https://github.com/jaygooby/ttfb.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
# A very basic mysql health check that can be used by e.g. | |
# Consul's External Service Monitor | |
# | |
# Cobbled together by @jaygooby from a combination of: | |
# Unai Rodriguez's and Alex Williams' | |
# https://gist.github.com/aw/1071144 | |
# and George Chilumbu's | |
# https://georgechilumbu.wordpress.com/2017/07/27/setup-a-consul-client/ | |
# | |
# This script checks if a mysql server is healthy running on $MYSQL_HOST. |
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 | |
# Install using: | |
# bash < <(curl -s https://gist.githubusercontent.com/jaygooby/1248106/raw/6d8ef1c0c84a47a34a6890973c8d32d22466a736/os-x-ghostscript-imagemagick) | |
IM_TGZ=ImageMagick-x86_64-apple-darwin17.3.0.tar.gz | |
IM_URL=https://www.imagemagick.org/download/binaries/$IM_TGZ | |
IM_TMP_FILE=/tmp/$(basename $IM_URL) | |
IM_SUM="33849 17409" |
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 | |
# | |
# Do you need a cluster of http servers to test your nginx proxying set up? | |
# I did, so I wrote this. https://twitter.com/jaygooby | |
# | |
# Defaults to starting 5 servers on 127.0.0.1 ports 2000 - 2004 | |
# You can optionally specify the starting port and the number of servers you need... | |
# | |
# START_PORT=8000 NUM_SERVERS=9 bash_http_cluster.sh | |
# |