Skip to content

Instantly share code, notes, and snippets.

@plentz
plentz / nginx.conf
Last active November 16, 2024 14:10
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@jonascheng
jonascheng / celery_beat_checker.py
Created July 2, 2018 07:39
Celery beat health check script, you may specify this inside Dockerfile
import sys
import arrow
import shelve
import os.path
from datetime import datetime, timedelta
# Name of the file used by PersistentScheduler to store the last run times of periodic tasks.
FN_CELERYBEAT = 'celerybeat-schedule'
@eddie-knight
eddie-knight / security.groovy
Created January 24, 2019 21:52
Example Security.groovy (Just needs the referenced user and pass files)
#!groovy
import jenkins.model.*
import hudson.security.*
import jenkins.security.s2m.AdminWhitelistRule
import hudson.security.csrf.DefaultCrumbIssuer
import jenkins.security.s2m.AdminWhitelistRule
def instance = Jenkins.getInstance()