##########
##########
To make changes:
git add path/to/file1 path/to/file2
git commit -m "templates: Changed the XX template to do XX"
To push that to the central server (which makes it available for deployment):
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
import matplotlib.pyplot as plt | |
class RidgeRegressor(object): | |
""" | |
Linear Least Squares Regression with Tikhonov regularization. |
#!/bin/bash | |
yum install wget | |
wget http://download.fedoraproject.org/pub/epel/7/x86_64/epel-release-7-10.noarch.rpm | |
rpm -ivh epel-release-6-8.noarch.rpm | |
yum install byobu | |
byobu-enable | |
# Default Key Bindings | |
# F2 -> Create new window |
[[local|localrc]] | |
#OFFLINE=True | |
RECLONE=True | |
HORIZON_BRANCH=stable/mitaka | |
KEYSTONE_BRANCH=stable/mitaka | |
NOVA_BRANCH=stable/mitaka | |
NEUTRON_BRANCH=stable/mitaka | |
GLANCE_BRANCH=stable/mitaka | |
CINDER_BRANCH=stable/mitaka |
#! /usr/bin/python | |
# Dispatch - synchronize two folders | |
import os | |
import filecmp | |
import shutil | |
from stat import * | |
class Dispatch: | |
''' This class represents a synchronization object ''' |
Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.
Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:
import logging | |
import platform | |
import subprocess | |
import psutil | |
LOG = logging.getLogger(__name__) | |
class ProcessHandler(object): |
[[local|localrc]] | |
RECLONE=True | |
GIT_BASE=http://git.openstack.org | |
HORIZON_BRANCH=stable/mitaka | |
KEYSTONE_BRANCH=stable/mitaka | |
SWIFT_BRANCH=stable/mitaka | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- |
[[local|localrc]] | |
RECLONE=True | |
GIT_BASE=${GIT_BASE:-https://git.openstack.org} | |
HORIZON_BRANCH=stable/mitaka | |
KEYSTONE_BRANCH=stable/mitaka | |
SWIFT_BRANCH=stable/mitaka | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |