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
# Place this after your default configuration | |
frontend fedi_fe | |
mode http | |
# this is the address that haproxy will listen on, | |
# when doing this local loopback, its recommended to set to localhost (127.0.0.1) | |
bind 127.0.0.1:28080 | |
default_backend fedi_fe |
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
/* indicate media without a description | |
initial code by Paul (https://linernotes.club/@balrogboogie), expanded upon by FiXato (https://contact.fixato.org) | |
related discussions: https://dragonscave.space/@Mayana/106443499687608116. | |
Feel free to reuse it; it's public domain (https://linernotes.club/@balrogboogie/106681622019395866) */ | |
.media-gallery__item-thumbnail img:not([alt]), | |
.audio-player__canvas:not([title]), | |
.video-player video:not([title]), | |
.media-gallery__gifv video:not([title]) | |
{ | |
border: 1px dashed rgba(255, 0, 0, 0.5); |
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
/* | |
AUTHOR: Dev_Richard (https://www.spigotmc.org/members/dev_richard.38792/) | |
DESC: A simple and easy to use class that can get and set a player's total experience points. | |
Feel free to use this class in both public and private plugins, however if you release your | |
plugin please link to this gist publicly so that others can contribute and benefit from it. | |
*/ | |
import java.math.BigDecimal; | |
import java.util.List; |