Skip to content

Instantly share code, notes, and snippets.

View ChasManRors's full-sized avatar

Charles Magid ChasManRors

View GitHub Profile
@ChasManRors
ChasManRors / gist:1677302
Created January 25, 2012 17:01
suggested message change for rvm
from
If you have any questions, issues and/or ideas for improvement please
join#rvm on irc.freenode.net and let me know, note you must register
(http://bit.ly/5mGjlm) and identify (/msg nickserv <nick> <pass>) to
talk, this prevents spambots from ruining our day.
to
If you have any questions, issues and/or ideas for improvement please
@ChasManRors
ChasManRors / gist:1677320
Created January 25, 2012 17:05
Install message question
Question:
When the install say:
...
Installation of RVM in /Users/cmmagid/.rvm/ is almost complete:
* To start using RVM you need to run `source /Users/cmmagid/.profile`
in all your open shell windows, in rare cases you need to reopen all shell windows.
...
@ChasManRors
ChasManRors / gist:1677372
Created January 25, 2012 17:12
Which or both or create one ... .profile or .bash_profile?
A foolish consistency is the hobgobblin of little minds (or something like that ;) ) .profile or .bash_profile?
Note the doc says:
Load RVM by appending the rvm function sourcing to your .bash_profile:
and the install script says:
* To start using RVM you need to run `source /Users/cmmagid/.profile`
ruby-1.8.7-p357@HopDoc $ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7)
activemodel (3.0.7)
activerecord (3.0.7)
@ChasManRors
ChasManRors / gist:1839991
Created February 15, 2012 23:22
Rails log messages I don't get
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-02-15 18:16:02] INFO WEBrick 1.3.1
[2012-02-15 18:16:02] INFO ruby 1.9.2 (2011-07-09) [x86_64-darwin10.8.0]
[2012-02-15 18:16:02] INFO WEBrick::HTTPServer#start: pid=22429 port=3000
create mode 100644 vendor/assets/stylesheets/.gitkeep
create mode 100644 vendor/plugins/.gitkeep
Creating Heroku app..
run heroku create heroku --stack cedar from "."
! Name is already taken
Pushing to Heroku (this takes time, be patient)..
run git push heroku master from "."
fatal: 'heroku' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Setting up the Heroku database..
@ChasManRors
ChasManRors / gist:1989708
Created March 6, 2012 23:19
FATAL: role "MyRefineryApp" does not exist. But I am using Refinery to create MyRefineryApp.
ruby-1.9.2-p290@refinery $ rails new fewiza --database=postgresql -m http://refinerycms.com/t/2.0.0
rails new fewiza --database=postgresql -m http://refinerycms.com/t/2.0.0
create ....
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
apply http://refinerycms.com/t/2.0.0
append Gemfile
run bundle install from "."
ruby-1.9.2-p290@refinery $ git push heroku master
git push heroku master
Counting objects: 818, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (769/769), done.
Writing objects: 100% (818/818), 1.16 MiB | 284 KiB/s, done.
Total 818 (delta 60), reused 0 (delta 0)
-----> Heroku receiving push
-----> Ruby/Rails app detected
;; http://orgmode.org/worg/org-tutorials/orgtutorial_dto.html
;; allow this prefix for org-mode
(define-key global-map "\C-ca" 'org-agenda)
(define-key global-map "\C-cl" 'org-store-link)
(setq org-log-done t)
(setq org-agenda-files (list
"~/GTD/newgtd.org"
"~/GTD/someday.org"
"~/GTD/journal.org"
@ChasManRors
ChasManRors / gist:2127333
Created March 19, 2012 21:41
Mac OS X Lion TTS does not work with emacs 24 but did work on Mac OS X Snow Leopard
I have "System Preferences / Speech / Text to Speech / Speak selected text when the key is pressed" checked and set to "Option+'" It doesn't matter what key binding you use.
My emacs-version is "24.0.94.1"
When I had "Snow Leopard" OS X 10.6.3, and earlier, installed and I highlighted text then pressed "Option+'" the text was read aloud.
I then upgraded to "Lion" OS X 10.7.3. Now when I press "Option+'" the name of the buffer is read aloud.
Please please please can someone help me out with emacs on Lion?