GitLab is open source software to collaborate on code (a GitHub clone to run on your own server). Clicking a blob (a file in a repository) in GitLab shows a nice rendering if GitLab supports the file type (e.g., images, Markdown documents), or its content as plain text otherwise. The patch described here adds support to GitLab for rendering IPython notebooks (.ipynb files).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## prerequisite: | |
## deploy https://github.com/ogom/cookbook-gitlab | |
## have repos in place (/home/git/repositories) | |
## have data in mysql | |
service gitlab stop | |
# we need ruby1.9.1 for old gitlab migration... | |
apt-get install -y libpq-dev ruby1.9.1 ruby1.9.1-dev | |
update-alternatives --set ruby /usr/bin/ruby1.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g prefix C-a # Make C-a the prefix instead of default | |
bind C-a send-prefix # Send to application | |
unbind C-b # Unbind C-b | |
set -sg escape-time 1 # Remove delay for keystrokes | |
setw -g mode-keys vi # Use vi mode | |
### Mouse mode ### | |
setw -g mode-mouse on # Toggle mouse mode globally | |
set -g mouse-select-pane on # Select pane using mouse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This has been tested with ansible 1.3 with these commands: | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
# NB: The type of the variable is crucial! | |
- name: Ansible Conditionals Examples | |
hosts: $hosts | |
vars_files: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Side notes for calling out things | |
-------------------------------------------------- */ | |
/* Base styles (regardless of theme) */ | |
.bs-callout { | |
margin: 20px 0; | |
padding: 15px 30px 15px 15px; | |
border-left: 5px solid #eee; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Fedora Gemfile Checker | |
# Print out Gemfile dependencies, highlighting | |
# missing dependencies and those that are remotely | |
# available in Fedora. | |
# | |
# Licensed under the MIT license | |
# Copyright (C) 2013 Red Hat, Inc. | |
# Written By Mo Morsi <[email protected]> | |
########################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Install Gitlab 5.2 on OpenSUSE 12.3 32Bits | |
## Project http://gitlab.org/ | |
## Base https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md | |
## Autor: Nilton OS -- Version 0.9 14-06-2013 -- http://wwww.linuxpro.com.br/blog | |
## Change Vars !!! | |
SERVER_IP="10.0.2.15" | |
SERVER_FQDN="gitlab.linuxpro.com.br" | |
DOMIAN="linuxpro.com.br" |
For your Ruby, you'll must install this gems:
sudo gem install passenger
sudo passenger-install-apache2-module
At this moment, you'll asked to install some Apache2's deps (three deps):
sudo apt-get install apache2-prefork-dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Gitlab Resque Worker | |
Requires=redis.service | |
After=redis.service | |
Wants=postfix.service mysqld.service | |
[Service] | |
Type=forking | |
User=git | |
WorkingDirectory=/home/git/gitlab |