Skip to content

Instantly share code, notes, and snippets.

View effkay's full-sized avatar

Felipe Kaufmann effkay

View GitHub Profile
[branch "master"]
remote = origin
merge = refs/heads/master
#!/usr/bin/env bash
# Author: Michale Kessler http://github.com/netzpirat
echo "Migrate all git repositories to github"
for repo in `ls -l | grep "^d" | awk '{ print $9 }'`
do
echo "-----------------------------------------------------------"
echo "Checking ${repo}"
cd $repo
if [ -d .git ]; then
#!/bin/bash
url="ssh://git.screenconcept.ch/var/git/"
location="/var/git/"
cd $location
mkdir tmpdir
for repository in *.git
do
git branch --track feature1 origin/master
git checkout feature1
CSPmsProduct Object
(
[defaultPrice:private] =>
[data] => Array
(
[PdmarticleID] => 5854
[Version] => 0
[VersionNote] =>
[LastChange] => 2009-10-21 14:34:42
[CreationDate] => 2009-10-21 14:33:49
Just for everyone's information, if you want to run purely utf8, don't forget the following:
httpd.conf:
AddCharset UTF-8 .utf8
AddDefaultCharset UTF-8
php.ini
default_charset = "utf-8"
my.cnf
# SASS AND HAML BUNDLES FOR TEXTMATE
cd ~/"Library/Application Support/TextMate/Bundles/"
git clone git://github.com/textmate/ruby-haml.tmbundle.git
git clone git://github.com/jcf/ruby-sass-tmbundle
osascript -e 'tell app "TextMate" to reload bundles'
ls -la |awk /original/'{printf "mv "$NF" " ;sub(/original/,"new",$NF); printf $NF"\n"}' |sh
sed -i -e 's/original/new/g' file
@effkay
effkay / gist:146983
Created July 14, 2009 14:43
create iso in osx
# OSX: Create iso file loadable by vmware/windows...
$ hdiutil makehybrid -o isofilename.iso src/folder -iso
@effkay
effkay / calling_super.rb
Created May 8, 2009 05:30
initialize and super
#in initialize
super # pass along the arguments to the current method
super() # pass no arguments
super(1,2) # pass these explicit arguments