I hereby claim:
- I am jareknowotka on github.
- I am jareknowotka (https://keybase.io/jareknowotka) on keybase.
- I have a public key ASCdVgVqGlxFyz-HBVBp2BbDM9fV4CForvltRHAF8tmtRAo
To claim this, I am signing this object:
find . -iname "*sha*" -exec bash -c 'mv "$0" "${0%\?*}"' {} \; |
find . -name "node_modules" -prune -exec rm -rf '{}' + |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
openssl rand -hex 12 | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) |
docker image ls | grep 144288054571 | awk '{ print $1 ":" $2 }' | xargs docker image rm |
nc -zv host port |
BEGIN { require 'net/http'; Net::HTTP.module_eval do; alias_method '__initialize__', 'initialize'; def initialize(*args,&block);__initialize__(*args, &block);ensure;@debug_output = $stderr;end;end } |
I hereby claim:
To claim this, I am signing this object:
[Definition] | |
actionban = cloudflare-firewall.sh ban <ip> | |
actionunban = cloudflare-firewall.sh unban <ip> |
#!/bin/bash | |
CF_USER=... | |
CF_TOKEN=... | |
CMD=$1 | |
IP=$2 | |
if [ $CMD = 'ban' ]; then | |
RESULT=$(curl -X POST "https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules" -H "X-Auth-Email: $CF_USER" -H "X-Auth-Key: $CF_TOKEN" -H "Content-Type: application/json" --data '{"mode":"block","configuration":{"target":"ip","value":"'${IP}'"},"notes":"Fail2Ban"}'); |