Skip to content

Instantly share code, notes, and snippets.

~/Sites/cake_dev(1.3) $ git push origin 1.3
Counting objects: 24, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 1.53 KiB, done.
Total 13 (delta 11), reused 0 (delta 0)
remote: /data/github/current/config/basic/redis.rb:13: private method `split' called for nil:NilClass (NoMethodError)
remote: from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
remote: from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
remote: from /data/github/current/config/basic/resque.rb:3
<?php
$options = array(
'repo' => '/Users/predominant/Projects/cakephp/2.0/.git',
'titleOrder' => array(
'dev', 'alpha', 'beta', 'rc',
),
'regex' => '/(?<version>[\d\.]+)(?:-(?<title>[a-zA-Z]+)(?:(?<iteration>\d)?))?/',
'formats' => array(
'plaintext' => '| awk \'{print "Commit: ["$1"]\n"; $1=""; print "-"$0"\n"}\'',
'lighthouse' => '| awk \'{print "#### Commit: ["$1"](http://github.com/cakephp/cakephp/commit/"$1")\n"; $1=""; print $0"\n"}\'',
<?php
$filename = '/Users/markstory/Desktop/cakefest_2010_prize_draw.txt';
$file = file_get_contents($filename);
$people = explode("\n", $file);
$header = <<<TEXT
__ __ _ ____ ____ ____ __ _____
/ /` / /\ | |_/ | |_ | |_ | |_ ( (` | |
\_\_, /_/--\ |_| \ |_|__ |_| |_|__ _)_) |_|
@markstory
markstory / cakephp_version_bump.py
Created January 30, 2010 02:48
a simple script for helping do cakephp releases
#! /usr/bin/env python
import os, re
from optparse import OptionParser
"""
Helper script for making releases
- Bumps version numbers
- Updates changelog urls
@markstory
markstory / fileheader_conflict_fixer.py
Created January 27, 2010 14:21
Used to fix annoying and widespread conflicts
#! /usr/bin/env python
import os, re
def main():
"""Fix the stupid merge conflicts.."""
for root, dirs, files in os.walk('.'):
if '.git' in dirs:
dirs.remove('.git') # don't visit .git directories