github.com

quiet_assets helps with disabling asset pipeline log messages in the development log. When the gem is added, asset pipeline...

When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...

makandra dev

If you once had HTTP Strict Transport Security enabled for a domain, and you want to disable it again, you...

Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.

code-experience.com

React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...

makandra dev
menuetos.net

MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...

Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...

docopt.org

docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...

Rubygems can produce lots of deprecation warnings, but sometimes, you cannot fix them. To have a tidy terminal with output...

makandra dev

When you want the table headers to always stay around (e.g. because that table is huuuge), use the code below...

If you want to label things with a color but don't actually care which cholor, you can use the...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...

github.com

better_errors is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging...

getbootstrap.com

List of variables used in Bootstrap. Overwrite to customize your bootstrap application. When you are using bootstrap-sass, simply replace...

If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...

github.com

Now you can say: class Song < ActiveRecord::Base attr_accessor :virtual_attribute assignable_values_for :virtual_attribute do

linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.

If you want to do JavaScript-style camelization, ActiveSupport's String#camelize method can actually help you out. Simply pass...

github.com

All the hidden and not hidden features of Git and GitHub.

makandra dev
stackoverflow.com

rake -W [substring_of_task]

If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...

makandra dev
filippo.io

Enter the hostname of a server to test it for CVE-2014-0160.

makandra dev
heartbleed.com

The Heartbleed Bug is a serious vulnerability in the popular OpenSSL cryptographic software library. This weakness allows stealing the information...