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/sh | |
rails $1 #Creates the Rails Project | |
cd $1 #Changes to the Rails Project Directory | |
git init #Initializes the git repository | |
#Creates a git ignore file in the Project root directory to hide your log files | |
#and other development 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
SELECT | |
`Classe`.`id`, | |
`Classe`.`desc`, | |
`superClass`.`id`, | |
`superClass`.`desc`, | |
`superSuperClass`.`id`, | |
`superSuperClass`.`desc` | |
FROM `classes` AS `Classe` | |
LEFT JOIN `classes` AS `superClass` | |
ON (`Classe`.`parent_id` = `superClass`.`id`) |
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
SELECT | |
`Classe`.`id`, | |
`Classe`.`desc`, | |
`superClass`.`id`, | |
`superClass`.`desc`, | |
`superSuperClass`.`id`, | |
`superSuperClass`.`desc` | |
FROM `classes` AS `Classe` | |
LEFT JOIN `classes` AS `superClass` | |
ON (`Classe`.`parent_id` = `superClass`.`id`) |
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
➔ brew install -v --use-gcc emacs --cocoa | |
==> Downloading http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3.tar.bz2 | |
File already downloaded and cached to /Users/dustinchilson/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/dustinchilson/Library/Caches/Homebrew/emacs-23.3.tar.bz2 | |
==> Downloading patches | |
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-174; Mac OS X 10.6.7) https://github.com/downloads/typester/emacs/feature-fullscreen.patch -o 001-homebrew.diff | |
######################################################################## 100.0% | |
==> Patching | |
/usr/bin/patch -f -p1 -i 001-homebrew.diff | |
patching file lisp/term/ns-win.el |
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
➔ brew install --HEAD --use-git-head emacs --cocoa | |
/usr/local/bin/git | |
==> Cloning git://repo.or.cz/emacs.git | |
Updating /Users/dustinchilson/Library/Caches/Homebrew/emacs--git | |
==> ./configure --prefix=/usr/local/Cellar/emacs/HEAD --without-dbus --enable-locallisppath=/usr/local/share/emacs/site- | |
==> make bootstrap | |
(cd src; make - --jobserver-fds=5,7 -j bootstrap-clean) | |
rm -f temacs core *.core \#* *.o libXMenu11.a liblw.a | |
rm -f ../etc/DOC | |
rm -f bootstrap-emacs emacs-24.0.50 |
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
➔ brew install --HEAD --use-git-head emacs | |
/usr/local/bin/git | |
==> Cloning git://repo.or.cz/emacs.git | |
Updating /Users/dustinchilson/Library/Caches/Homebrew/emacs--git | |
==> ./configure --prefix=/usr/local/Cellar/emacs/HEAD --without-dbus --enable-locallisppath=/usr/local/share/emacs/site- | |
==> make | |
cd lib; make all - --jobserver-fds=5,7 -j \ | |
CC='/usr/bin/gcc-4.2' CFLAGS='-march=core2 -w -pipe -O3' CPPFLAGS='' \ | |
LDFLAGS='' MAKE='make' | |
cd .. && make am--refresh |
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
# REBASE | |
#!/bin/bash | |
if [ $# -eq 1 ] | |
then | |
git checkout master && git tfs fetch && git rebase HEAD && git checkout $1 && git rebase -i master | |
else | |
echo 'Please provide a feature branch: ./rebase.sh feature1324' | |
fi |
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
#script to create a branch in git-tfs | |
if [ $# -ne 3 ] ; then | |
echo "parameters : ServerUrl Repository localBranch" | |
echo 'ex : "http://myTfsServer:8080/tfs/Repository" "$/MyProject/MyTFSBranch" "myBranch"' | |
exit -1 | |
fi | |
#find TFS first commit of the branch | |
let first_commit=`tf history $2 | grep "^[0-9]" | awk '{print $1}'` | |
#Take the parent to have the root commit |
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
using System.Text; | |
using System.Web.Script.Serialization; | |
using System.Xml; | |
using System.Xml.Serialization; | |
namespace ObjectExtensions | |
{ | |
public static class SerializationExtensions | |
{ | |
public static string ToJson(this object obj) |
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
$files = (dir -recurse . | ? { $_.fullname -match "_sgbak" -and $_.PSIsContainer } | % { $_.fullname }) | |
for ($i=0; $i -lt $files.length; $i++) | |
{ | |
tf undo /recursive $files[$i] | |
tf delete /recursive $files[$i] | |
} | |
$files = (ls -r . | ? {$_.name -match "\b.bak\b" -and !$_.PSIsContainer} | % { $_.fullname }) | |
for ($i=0; $i -lt $files.length; $i++) | |
{ |
OlderNewer