Skip to content

Instantly share code, notes, and snippets.

View erpe's full-sized avatar
🏠
Working from home

rene paulokat erpe

🏠
Working from home
  • AustauschKompass
  • Berlin
  • X @er_pe
View GitHub Profile
@erpe
erpe / filter.d wordpress.conf
Created June 10, 2020 16:50
fail2ban filter for wordpress / apache log combined
[INCLUDES]
before = common.conf
[Definition]
datepattern = %%d/%%b/%%Y:%%H:%%M:%%S
failregex = <HOST>.*POST.*(wp-login\.php|xmlrpc\.php).* 200
@erpe
erpe / Jenkinsfile
Last active December 13, 2022 05:44
Jenkinsfile for a multibranch-pipeline project that builds and deploys a rails application - using capistrano and rvm on jenkins-server
// jenkinsfile - as declarative pipeline
pipeline {
agent any
environment {
// credentials 'jenkins-db-credential' is globally accessible on jenkins
//
DB_CREDENTIAL = credentials('jenkins-db-credential')
DB_USER = "${env.DB_CREDENTIAL_USR}"