Skip to content

Instantly share code, notes, and snippets.

View pcholakov's full-sized avatar

Pavel Tcholakov pcholakov

View GitHub Profile
// Minimal reproducer for slow AWS::IAM::InstanceProfile resource provisioning
import * as cdk from "aws-cdk-lib";
import * as iam from "aws-cdk-lib/aws-iam";
import { Construct } from "constructs";
const app = new cdk.App();
class Test extends cdk.Stack {
constructor(scope: Construct) {
@pcholakov
pcholakov / gerrit.conf
Created October 30, 2014 11:48
Gerrit ActiveDirectory LDAP_BIND authentication example
# To log in, use "[email protected]" and NT password in the Gerrit login form. To confirm the pattern for your directory, test with:
# ldapsearch -h adldap -s sub -s sub -b 'dc=example,dc=com' "(&(objectClass=person)([email protected]))"
[auth]
type = LDAP_BIND
[ldap]
server = ldap://adldap
accountBase = DC=example,DC=com
accountPattern = (&(objectClass=person)(userPrincipalName=${username}))
#accountPattern = (&(objectClass=person)(sAMAccountName=${username}))

Keybase proof

I hereby claim:

  • I am pcholakov on github.
  • I am pcholakov (https://keybase.io/pcholakov) on keybase.
  • I have a public key whose fingerprint is 5E42 C93C DA3B B4C7 4505 0662 E63F 373E A7A9 59B3

To claim this, I am signing this object:

@pcholakov
pcholakov / post-receive-jenkins
Created February 2, 2014 16:13
Gitolite post-receive hook to trigger builds of Jenkins / Git jobs
#!/bin/bash
# Gitolite [https://github.com/sitaramc/gitolite]
# Jenkins Git Plugin [https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin]
# GL_REPO will contain the short relative path of the repository being pushed to, e.g. "projects/component-1", so transform it into the Git URL format that your Jenkins build jobs follow:
[email protected]:$GL_REPO
# Jenkins Git plugin notification URL -- update host as appropriate:
TRIGGER_URL=http://jenkins.example.com:8080/git/notifyCommit?url=$REPOSITORY_URL