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 -eu | |
### | |
### /opt/gitlab/embedded/service/gitlab-shell/hooks/pre-receive.d/quota.sh | |
### limit: 100MB | |
### | |
REPO_SIZE="$(du -s . | cut -f1)" | |
if (( "$REPO_SIZE" > 102400 )) |
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
[krb5kdc] | |
enabled = true | |
filter = krb5kdc | |
bantime = 86400 | |
maxretry = 6 | |
backend = systemd | |
banaction = iptables-allports | |
protocol = all |
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
private String signData(final String text) { | |
byte[] terminalKey = Base64.getDecoder().decode("__TERMINAL_KEY__")); | |
var secretKeySpec = new SecretKeySpec(terminalKey, "DESede"); | |
try { | |
var cipher = Cipher.getInstance("DESede"); | |
cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec); | |
byte[] encryptedText = cipher.doFinal(text.getBytes()); | |
var encryptedTextString = Base64.getEncoder().encodeToString(encryptedText); | |
return encryptedTextString; | |
} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | |
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
#!KAMAILIO | |
# | |
# Kamailio (OpenSER) SIP Server v5.2 - default configuration script | |
# - web: https://www.kamailio.org | |
# - git: https://github.com/kamailio/kamailio | |
# | |
# Direct your questions about this file to: <[email protected]> | |
# | |
# Refer to the Core CookBook at https://www.kamailio.org/wiki/ | |
# for an explanation of possible statements, functions and parameters. |
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
[sslh-ssh] | |
enabled = true | |
filter = sslh-ssh | |
maxretry = 10 | |
backend = systemd | |
bantime = 1w | |
action = firewallcmd-rich-rules[name=sslh,port="443"] |