Useful SSH Server Conf TricksApril 24, 2016
ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no
sudo service ssh restart
ChallengeResponseAuthentication yes PasswordAuthentication yes UsePAM yes
Setting up for Rails development on El CapitanNovember 12, 2015
One of the only differences I've noticed is installing mysql is slightly different.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor brew update
brew install rbenv ruby-build openssl
Installing ffmpeg on Ubuntu 14.04February 05, 2016
As of 14.04 Ubuntu no longer has ffmpeg in its default repositories. If you want to install it you'll have to add a new repo first.
sudo add-apt-repository ppa:mc3man/trusty-media sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install ffmpeg
Setting up an Ubuntu 14.04 Server for RailsNovember 25, 2014
Assuming you're logged in as root add these users and login as "not root."
adduser deploy adduser [yourname] #optionally vim /etc/group # add your users to the sudo group like so: sudo:x:27:isaac,deploy vim /etc/ssh/sshd_config # add to file or if they exist set the flags to no.
How to Create a Ruby GemNovember 10, 2014
Here is the most modern approach to gem crafting:
bundle gem gemname cd gemname
edit your_gem.gemspec and add description, summary, required gems and optional website. Add required gems for development such as rspec, rails or minitest to the Gemfile.
rspec --init touch spec/your_gem_spec.rb