Delete all unused repositories and forgotten forks in 6 (semi)-automatic steps! Github forces me to type name of repo for every fork and repository I want to delete. That’s smart and all, but what if one wants to mass-delete a bunch of old, unused, forgotten, dirty little repositories that make his repository list look like… Read More


To check limit open files ulimit -n To increase limit open files to 500000 on ubuntu, use command: sudo sh -c “ulimit -n 500000 && exec su $LOGNAME” Explain issues ulimit is a shell built-in command like cd you can’t use like: sudo cd /test/ similarly you can’t use sudo ulimit -c This is not… Read More


UUIDs (Universally unique identifiers) are really neat as IDs, and they allow you to have the ID of a model before it is even saved and guarantee that it won’t be fail insertion due to the ID being taken already. They’re also a full class type in PostgreSQL which is even more badass because it… Read More


Building the Perfect Rails 5 API Only App Thanks to the new rails-api gem that ships as part of the Rails 5 core, Rails is now an ideal candidate for building streamlined APIs quickly and easily. Until now, arguably the best option for creating APIs in Ruby has been Grape, and while Grape is still… Read More


UUID’s I love UUID’s. You should use them. Rails 4 makes it simple to get setup and use UUID’s throughout your project. First, we enable UUID’s: rails g migration enable_uuid_extension This creates the following migration: class EnableUuidExtension < ActiveRecord::Migration def change enable_extension ‘uuid-ossp’ end end Next, create a model rails g model Book title The… Read More


Rsync with a non-standard ssh port While doing some work on the JQuery Plugins site today, I needed to use rsync over ssh. The ssh daemon on the remote server runs on a non-standard port, and all the port related options to rsync only change settings if you’re running the rsync-daemon. After some searching, the… Read More