Skip to content

Instantly share code, notes, and snippets.

@grapeot
grapeot / install_gitlab
Created August 1, 2012 22:44
Configure gitlab in ubuntu
Basically just Follow the install instructions in https://github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md.
If you encounter problems, check this:
1. If the system complains about pid files in the very last step, change 'restart' to 'start'.
If it doesn't work, use 'sudo ./resque.sh' in Step 6.
2. I encountered 502 Bad Gateway error. Solution is in https://groups.google.com/forum/?fromgroups#!topic/gitlabhq/u9AMESyd-N0
Restart the server after the modification.
@grapeot
grapeot / cmuBlackboardAutoLogin.py
Created July 31, 2012 19:09
Auto login script for CMU blackboard
import requests
import re
# Initial request for blackboard
r = requests.get('http://blackboard.andrew.cmu.edu/')
# Authenticaton
payload = { 'j_username' : '<your username>', 'j_password' : '<your password>', 'j_continue' : '1', 'submit' : 'Login' }
r2 = requests.post(r.url, data=payload, cookies=r.cookies)
# Manually proceed with the form
url = 'https://blackboard.andrew.cmu.edu/Shibboleth.sso/SAML2/POST'
@grapeot
grapeot / gist:3209996
Created July 30, 2012 20:40
Gitolite Setup @ EC2
# Install git
cd $HOME
sudo yum -y update
sudo yum -y install git
# Prepare the public key, which will be used later
cp ~/.ssh/authorized_keys /tmp/Default.pub
chmod a+r /tmp/Default.pub
# Use the user git to install gitolite from source.