export certain revision of file from svn
svn cat -r [REV] mydir/myfile > mydir/myfile
2755 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
svn cat -r [REV] mydir/myfile > mydir/myfile
mysqlimport -u username -p --columns=column_1,column_2 --fields-terminated-by=',' databasename /tmp/data_file_same_as_mysql_table_name
svnadmin create /var/svn/repository_name
svn import svn+ssh://myserver.com/var/svn/repository_name
cd .. mkdir bak_directory cp -R my_directory bak_directory cd my_directory rm -rf * svn co svn+ssh://myserver.com/var/svn/repository_name .
def decapitalize! replace (self.reverse.chop + self.reverse.last.downcase).reverse end def decapitalize dup.decapitalize! end
myresource_path(:id => myId, :extra_param => extraId, :extra_param2 => blah)
myresource/myId?extra_param=extraId&extra_param2=blah
# KNOWN_TAG = XSD::NS::KNOWN_TAG.dup.update( # SOAP::EnvelopeNamespace => 'env' # ) # Replaced with code from http://dev.ctor.org/soap4r/ticket/433 KNOWN_TAG = { XSD::Namespace => 'xsd', XSD::InstanceNamespace => 'xsi', SOAP::EnvelopeNamespace => 'env' }
rake rails:freeze:edge TAG=rel_1-2-3
apt-get zlib1g-dev cd /usr/local/src/ruby-1.8.6/ext/zlib ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib make make install
ruby setup.rb