Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added my (old) rails template, bashrc changes

  • Loading branch information...
commit d9954b09056b15aecc9f4de14d28c1362cb32b6b 1 parent 15273b3
sshaw authored
Showing with 32 additions and 2 deletions.
  1. +10 −2 bashrc
  2. +21 −0 rails-template.rb
  3. +1 −0  railsrc
View
12 bashrc
@@ -3,7 +3,7 @@ alias bi='bundle install'
alias bl='bundle list'
# Mojolicious
-alias mapp='./script/*'
+alias mapp='./script/*'
alias mr='mapp routes'
alias mt='mapp test'
alias md='mapp daemon'
@@ -83,6 +83,14 @@ canspell()
[ -n "$*" ] && { echo $@ | aspell -a | grep '^&'; } && return 1 || return 0;
}
+# usage: newmod [PATTERN]
+# `less -F` no good on Dariwn
+newmod()
+{
+ local match=${1:-.}
+ mojo get -r metacpan.org/feed/recent 'item > title' text | grep -i "$match" | more -F
+}
+
# Perl Module Exports
# usage: pme MODULE
pme()
@@ -117,6 +125,6 @@ rake()
# usage: rmedir DIR [OPTIONS]
rmedir()
{
- dir=$1; shift
+ local dir=$1; shift
[ -n "$dir" ] && find "$dir" -empty -a -type d $* -print0 | xargs -0 rmdir
}
View
21 rails-template.rb
@@ -0,0 +1,21 @@
+gem "foreigner"
+gem "capistrano"
+gem "haml"
+gem "shoulda"
+gem "factory_girl"
+gem "formtastic"
+gem "will_paginate"
+
+environment "config.active_record.timestamped_migrations = false"
+environment "config.time_zone = 'Pacific Time (US & Canada)'"
+
+run "mkdir test/factories"
+run "rm public/index.html"
+# older versions only
+# run "rm public/images/rails.png"
+
+# newer versions
+run "rm README.rdoc"
+run "rm app/assets/images/rails.png"
+
+
View
1  railsrc
@@ -0,0 +1 @@
+-m=/Users/sshaw/.rails-template.rb
Please sign in to comment.
Something went wrong with that request. Please try again.