I hereby claim:
- I am yukoff on github.
- I am yukoff (https://keybase.io/yukoff) on keybase.
- I have a public key whose fingerprint is F353 5517 3418 3EF3 1ABD 959D 395E 8686 6847 FF1C
To claim this, I am signing this object:
Gerrit version 2.8 | |
Replication plugin extracted from gerrit.war and installed over ssh | |
Installation method -> | |
a) Relevant configs: | |
/var/lib/gerrit/etc/replication.config | |
[remote "aricg-compliance"] | |
url = git@github.com:somerepo/${name}.git |
abril-fatface | |
ada | |
after-time | |
alert | |
andthen | |
anglicize | |
ansi-codes | |
atbash | |
attr | |
attrs |
I hereby claim:
To claim this, I am signing this object:
This gist assumes:
0 - Blues | |
1 - Classic Rock | |
2 - Country | |
3 - Dance | |
4 - Disco | |
5 - Funk | |
6 - Grunge | |
7 - Hip-Hop | |
8 - Jazz | |
9 - Metal |
#!/usr/bin/perl | |
# --------------------------------------------------------------------------- | |
# freedb-proto5-update (v0.2) by Florian Maul <fmaul@gmx.de> | |
# | |
# takes a list of freedb database files from STDIN and converts them to | |
# protocol level 5 i.e. inserting DYEAR und DGENRE while using CDEX entries | |
# in the EXTD field. | |
# | |
# usage: find /data/freedbdir/ -type f | freedb-proto5-update | |
# |
# curl / wget are aliases for Invoke-WebRequest | |
$ip = Invoke-WebRequest -Uri https://ifconfig.co -ContentType "text/plain" -UserAgent curl | |
$hostname = hostname | |
$EmailFrom = "no-reply@$hostname" | |
$EmailTo = "email@address.tld" | |
$Subject = "Remote address" | |
$Body = "Current IP address: $ip" | |
$SMTPServer = "smtp.mailgun.org" | |
$SMTPPort = 587 |
#!/usr/bin/env bash | |
# log could be /var/log/secure or /var/log/auth.log | |
zgrep -P 'Invalid user .+? from |Failed password for .+? from ' /var/log/auth.log* \ | |
| grep -Pv $WHITELISTIPS \ | |
| perl -p -e 's/.+? from (\d+\.\d+\.\d+\.\d+) port .+/\1/g' \ | |
| sort -u \ | |
| xargs -I % sudo cscli decisions add --ip % --duration 48h --reason "ssh bruteforce" |