Skip to content

Instantly share code, notes, and snippets.

@jankoprowski
jankoprowski / rb_site_addldapfilter.py
Created May 23, 2011 19:32
Concept to adding many ActiveDirectory/LDAP accounts to ReviewBoard
#
# Setup django environmet
#
from django.core.management import setup_environ
import reviewboard.settings
setup_environ(reviewboard.settings)
#
# Load Review Board instance configuration
@jankoprowski
jankoprowski / Example of git tree
Created April 12, 2011 11:03
How find 87152a7 commit as root of branch b
* 4c89baa 2011-04-12 | master (HEAD, master) [Jan Koprowski]
* 5d6f049 2011-04-12 | master [Jan Koprowski]
| * 4d53b4f 2011-04-12 | b (b) [Jan Koprowski]
| * 8e00b6a 2011-04-12 | b [Jan Koprowski]
| | * ba30b92 2011-04-12 | a (a) [Jan Koprowski]
| |/
| * 87152a7 2011-04-12 | a [Jan Koprowski]
|/
* 7dd362a 2011-04-12 | master [Jan Koprowski]
* bfc32cd 2011-04-12 | initial commit [Jan Koprowski]
@jankoprowski
jankoprowski / git p4 crush dump
Created February 23, 2011 12:08
Crush while importing p4 repo using git p4
fast-import crash report:
fast-import process: 14492
parent process : 1
at Tue Feb 22 15:03:46 2011
fatal: Invalid ref name or SHA1 expression: refs/remotes/p4/SomeTools/mainline/SomeTool
Most Recent Commands Before Crash
---------------------------------
checkpoint
#!/bin/bash
echo "PRE: $@" >&2
exit 0
# $ git push
# git@localhost's password:
# Counting objects: 5, done.
# Delta compression using up to 4 threads.
# Compressing objects: 100% (2/2), done.
# Writing objects: 100% (3/3), 261 bytes, done.