This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.
The branching scenario has been simplified for clarity.
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| BLUE="\[\033[0;34m\]" | |
| LIGHT_RED="\[\033[1;31m\]" | |
| LIGHT_GREEN="\[\033[1;32m\]" | |
| WHITE="\[\033[1;37m\]" | |
| LIGHT_GRAY="\[\033[0;37m\]" | |
| COLOR_NONE="\[\e[0m\]" |
| install PostgreSQL 9 in Mac OSX via Homebrew | |
| Mac OS X Snow Leopard | |
| System Version: Mac OS X 10.6.5 | |
| Kernel Version: Darwin 10.5.0 | |
| Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
| sh-3.2# brew install postgresql |
| ''' | |
| Pure cython version | |
| compile with: | |
| $ cython cgibbs.pyx | |
| $ gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python2.6 -o cgibbs.so cgibbs.c | |
| then import from python shell and call main() | |
| ''' | |
| import random,math, time |
| #!/bin/sh | |
| # This program has two feature. | |
| # | |
| # 1. Create a disk image on RAM. | |
| # 2. Mount that disk image. | |
| # | |
| # Usage: | |
| # $0 <dir> <size> | |
| # |
| import yaml | |
| import yaml.constructor | |
| try: | |
| # included in standard lib from Python 2.7 | |
| from collections import OrderedDict | |
| except ImportError: | |
| # try importing the backported drop-in replacement | |
| # it's available on PyPI | |
| from ordereddict import OrderedDict |
| -- See article here: http://daringfireball.net/2007/07/simple_inbox_sweeper | |
| -- The following should be one long line: | |
| set _description to "All unflagged, read messages in each IMAP account | |
| inbox will be moved to the “Archive” mailbox corresponding to that | |
| account. This action is not undoable." | |
| tell application "Mail" | |
| display alert "Archive read messages from IMAP inboxes?" buttons ¬ | |
| {"Cancel", "Archive"} cancel button 1 message _description |
| import cPickle as pickle | |
| import numpy as np | |
| from bson.binary import Binary | |
| from pymongo.son_manipulator import SONManipulator | |
| class NumpySONManipulator(SONManipulator): | |
| def transform_incoming(self, value, collection): | |
| if isinstance(value, (list,tuple,set)): | |
| return [self.transform_incoming(item,collection) for item in value] | |
| if isinstance(value,dict): |
| # The latest version of this script is now available at | |
| # https://github.com/jasoncodes/dotfiles/blob/master/aliases/rbenv.sh | |
| VERSION=1.9.3-p286 | |
| brew update | |
| brew install rbenv ruby-build rbenv-vars readline ctags | |
| if [ -n "${ZSH_VERSION:-}" ]; then | |
| echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc | |
| else | |
| echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile |
| """:mod:`hstore` --- Using PostgreSQL hstore with SQLAlchemy | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| .. note:: | |
| I released it under Public Domain. Feel free to use! | |
| It provides :class:`Hstore` type which makes you to store Python | |
| dictionaries into hstore columns in PostgreSQL. For example:: |