In larger projects you may have 6 or seven processes running in different terminals. This can be such a pain to setup each time you boot up the system. I use a shell script containing AppleScript to open a new terminal window and then open a new tab and run a command in each. I … Continue reading Automate Starting Terminal Processes with a Script on macOS/OSX
Blog
Setup Rbenv, Ruby and Rails on Ubuntu 16.04
If you're still new to Ubuntu I've a post with some useful commands that'll help you navigate and use the terminal! Useful Unix Commands for macOS or Linux Update and install some dependencies apt-get is a package manager command line tool similar to Homebrew on macOS and is used to manage applications on Ubuntu. Lets update … Continue reading Setup Rbenv, Ruby and Rails on Ubuntu 16.04
Setting up a Virtual Machine using VirtualBox
Installing VirtualBox Its nice to have a safe environment to play around with something new, do some testing or work on a project keeping without causing conflicts with others. Using a Virtual Machine keeps everything separated from your host machine so it minimises any risk. A Virtual Machine is an emulation of a computer system, … Continue reading Setting up a Virtual Machine using VirtualBox
Show Git Branch in Terminal
PS1 stands for Prompt String 1. It is the one of the prompts available in the Linux/UNIX shell. When you open your terminal, it will display the content defined in the PS1 variable in your bash prompt. We can use this to display the name of the current Git branch in our prompt. The parse_git_branch function … Continue reading Show Git Branch in Terminal
Setting up and using RBENV on macOS
Rbenv is a great tool for setting up Ruby environments. Different applications could require different versions of Ruby and Rails so using Rbenv to manage this makes things a lot easier and ensures pulling your hair out remains at a minimum. Installing Homebrew Homebrew is an excellent package manager for macOS that simplifies installing and … Continue reading Setting up and using RBENV on macOS
Using RSpec with Rails
I like using RSpec for testing. And adding it to the application at the beginning will make sure new spec files are created when we use the Rails generator to create resources. Its a pain to manually create these files if we wait until later to think about adding in some tests. Test Driven Development … Continue reading Using RSpec with Rails
You must be logged in to post a comment.