In revealing the colossal scale of the U.S. government’s eavesdropping, the twenty-nine-year-old N.S.A. whistle-blower has performed a great public service.
Ruby with rbenv does not come with readline support out of the box, so you will need to recompile your version for it to work. Here is how.
guard
You’re running a version of ruby with no Readline support
Please `gem install rb-readline` or recompile ruby —with-readline.
Definitely going to major in Starcraft II Strategy
ln -s /usr/bin/xdg-open /usr/local/bin/open
source ~/.zshrc
open index.html
will open index.html in your default browser
source: http://stackoverflow.com/questions/264395/linux-equivalent-of-the-mac-os-x-open-command
I’ve recently switched from using terminator as my go-to terminal app, to running a terminal inside an Emacs buffer.
This is what I did to get and in the exceed my previous workflow.
First off Emacs has a couple choices when it comes to terminal emulators. Others have gone into greater detail about the pros and cons of the various options. In the end I chose ansi-term because it can run pretty much all my regular terminal apps without a problem.
In terminator I often ran multiple tabs, with multiple windows open in each tab. Now one can do a similar thing in Emacs by running ansi-term in multiple buffers. In practice I found that quite bulky on Emacs, so I decided to give screen a try.
I found Matt Cutts blog post extremely useful for getting started with screen, it gives a good overview of how screen works and how one would use it professionally.
Screen does have one fatally flawed default, especially as an Emacs user, C-a is the default initialiser for screen. Not to worry this is easily changed by adding a .screenrc file with the following:
escape ^Qq
I chose to move it to C-q but feel free to move it to a key binding of your choice.
Some other useful short-cuts:
C-a 1-9 - Change shellC-a C-a - toggle current and previous shellC-a d - detach sessionC-a " - ls current shellsC-a c - new shellThat’s it, I now have a full functional shell right inside my Emacs, from with I can ssh into servers and run my usual commands.
a long time ago in a galaxy far, far away…
Really need to put my kindle and raspberry pi to better use.
page.driver.render("#{File.dirname(__FILE__)}/poltergeist_screenshot_#{rand(100)}.png", :full => true)