Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged ruby



« Prev 1 Next »
  1. FAV

    Rescue any exception in Ruby

    From the Pickaxe, 4th edition, p. 352: A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue ev...
    Bash saved by 1 person 1 views posted 8 years ago by cczona
  2. FAV

    remove trailing space from specific file (ex. ruby)

    Bash 2 views posted 8 years ago by giver
  3. FAV

    New ruby builder PKGBUILD for AUR

    Add `bin` folder
    Bash 0 views posted 8 years ago by UR6LAD
  4. FAV

    fix Library not loaded: libmysqlclient.16.dylib (LoadError)

    Bash 0 views posted 9 years ago by timvdeijnden
  5. FAV

    uninstall all ruby gems

    Bash 0 views posted 9 years ago by stayce
  6. FAV

    Install LESS Ruby GEM

    Bash 0 views posted 9 years ago by choise
  7. FAV

    Find Your Ruby Gems Path

    Because different systems put it in different places.
    Bash 1 views posted 9 years ago by alvarezrilla
  8. FAV

    Count unique users from a log file for a given time period

    Sample log line: [INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1
    Bash 1 views posted 10 years ago by benjay
  9. FAV

    Freeze a single Gem in Rails

    Bash 1 views posted 10 years ago by hlubek
  10. FAV

    Install ruby gem in specific version

    Bash 2 views posted 10 years ago by hlubek
  11. FAV

    Uninstall manually installed rubygems (ubuntu)

    Bash 0 views posted 11 years ago by therobot
  12. FAV

    Install mySQL gem on a fink (vs self made) mySQL installation

    When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified...
    Bash 1 views posted 11 years ago by iblis
  13. FAV

    Add paths to Ruby 'require'

    Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:
    Bash 0 views posted 11 years ago by cczona
  14. FAV

    Bash functions for running rails unit and functional tests

    Bash 1 views posted 12 years ago by vanne
  15. FAV

    Create RoR project skeleton in svn

    Bash 0 views posted 13 years ago by sudarkoff
  16. FAV

    Import all new files in a subversion working copy

    There's another snippet here that's pure Ruby. This one can be used from the command line directly. The previous version still used Ruby, this one is pure shell.
    Bash 0 views posted 13 years ago by plexus
« Prev 1 Next »