aross.se


Happy developer which loves to play around with Ruby, JavaScript and other stuff thats related to mobile and web development

Configure RuboCop for your project

RuboCop is a Ruby static code analyzer. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide.


How to SSH through SSH proxy

At our company we do not want any outsiders to access our servers through SSH. Often we prevent logins to root and prevent logins with password. But to be even more secure we started to only allow logins from the IP addresses at our office.


How to update locate database on OS X

locate is a great tool both on Linux and Mac when searching for files in the terminal. But sometimes the database will be out of sync with whats really on the hard drives. On Linux you typically can use the commands updatedb or locate -u (-u as in update) to update it. These commands are not available on OS X though.


Create and apply Git patch files

When working with Git most of us are used to have something like GitHub or Bitbucket where we can create pull requests and assign to people. This may not always be the case and then it is good to have another option. With Git you can also create a patch file which later on can be sent by email or transfered over an USB-stick to someone that will apply it in the main repository.


Install Nginx side by side with Apache

Before we start you should make sure your openssl is updated. Run rpm -q openssl and if this reports version 1.0.1e and less than 1.0.1e-16.el6_5.4.0.1 then you are vulnerable to heartbleed. One of the biggest security issues. Read Update openssl on Red Hat before you continue. We also need version 1.0.1 or higher to install Nginx.


Fix: Unable to start the Phusion Passenger watchdog

Does this look familiar for you? If it does, then you are on the right place.


Input fields in rake task

Rake is an awesome tool to automate workflows during development or for some other stuff.


Get pow running with ZSH and Rbenv

Usually I'm using rails s with thin or webbrick when developing web applications because I've had lots of issues with pow and file uploads. But when I'm working on multiply projects within same day it's really handy to have pow installed.


Disable OS X Dashboard

If you are like me and never uses Dashboard on your mac. Why should you still have it there?