Skip to content

Instantly share code, notes, and snippets.

View paulchubatyy's full-sized avatar
🤍
Evaporating

Paul (xobb) Chubatyy paulchubatyy

🤍
Evaporating
View GitHub Profile
@paulchubatyy
paulchubatyy / AppBundle.php
Last active October 5, 2018 14:55
Snippets to map ldap groups to security roles in Symfony framework
<?php
namespace AppBundle;
use AppBundle\DependencyInjection\Compiler\LdapCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppBundle extends Bundle
{
@paulchubatyy
paulchubatyy / pipeline.groovy
Last active March 11, 2022 14:38
Jenkins pipeline to read the repository list for Github Organization and create multibranch pipeline projects for them
import org.kohsuke.github.*
/*
* This pipeline uses the Jenkins Job DSL plugin to create the multi-branch pipelines
* for your Github Organization repositories.
*
* @see https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin
*
* It does not consumes 5k requests in 6 minutes, but actually queries the Github API
* for the repositories in organization and creates the Multi-Branch Pipelines in Jenkins.
@paulchubatyy
paulchubatyy / Makefile
Created January 10, 2023 06:41
Renew Dokku SSL Certificate through DigitalOcean DNS
.PHONY: clean-certs certificate certs.tar certs-renew
clean-certs:
rm -fr certs.tar .lego/certificates
ACME_SERVER ?= https://acme-v02.api.letsencrypt.org/directory
DOMAIN ?= "*.example.com"
DOMAIN_2 ?= "example.com"
certificate: clean-certs
docker run --rm -it \