Skip to content

Instantly share code, notes, and snippets.

@Daenyth
Daenyth / debug_requests.py
Created August 27, 2015 14:35
Enable debug logging for python requests
import requests
import logging
import httplib
# Debug logging
httplib.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
req_log = logging.getLogger('requests.packages.urllib3')
req_log.setLevel(logging.DEBUG)
@mbbx6spp
mbbx6spp / ALTERNATIVES.adoc
Last active September 30, 2025 14:13
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
@mbbx6spp
mbbx6spp / cleanup-openldap.sh
Created October 5, 2010 19:48
Script to cleanup screwed up OpenLDAP installation. Seems to work after seeing following errors: bdb_db_open: database "dc=yourdomain,dc=local": db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2). backend_startup_one (type=bdb, suf
#!/usr/bin/env bash
# Appears to fix the following errors when running slaptest:
# bdb_db_open: database "dc=yourdomain,dc=local": db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2).
# backend_startup_one (type=bdb, suffix="dc=yourdomain,dc=local"): bi_db_open failed! (2)
# Assumes you have customized the following configuration files:
# - /etc/openldap/slapd.conf
# - /etc/openldap/ldap.conf