Skip to content

Instantly share code, notes, and snippets.

View coagulant's full-sized avatar

Ilya Baryshev coagulant

View GitHub Profile
@dzaporozhets
dzaporozhets / gitlab_gitolite.sh
Created October 24, 2012 13:58
Fix gitolite for gitlab 3
# GITOLITE 3
sudo -u git -H sed -i "s/\(GIT_CONFIG_KEYS\s*=>*\s*\).\{2\}/\1'\.\*'/g" /home/git/.gitolite.rc
# GITOLITE 2
sudo -u git -H sed -i 's/\(GL_GITCONFIG_KEYS\s*=>*\s*\).\{2\}/\1"\.\*"/g' /home/git/.gitolite.rc
@piumosso
piumosso / path.css
Created October 15, 2012 14:43
Path for gitlab wiki style
.file_holder .file_content.wiki {
max-width: 800px;
font-size: 15px;
font-family: Helvetica, Arial, sans-serif;
line-height: 20px;
}
.file_content.wiki ul li {
list-style: none;
}
.file_content.wiki li {
@mtayseer
mtayseer / print_pkg_deps.py
Last active August 29, 2015 14:01
Print a list of all installed Python packages & their dependencies
import pkg_resources, pprint
requires = {p.key: [r.key for r in p.requires()] for p in pkg_resources.working_set}
def graph(pkg):
if not requires[pkg]:
return {pkg: {}}
return {pkg: {k: v for p in requires[pkg] for k, v in graph(p).items() }}