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

Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...

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...

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...

So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...

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...

linux.die.net

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

github.com

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

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

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...

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...

wiki.macromates.com

When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...

robots.thoughtbot.com

Declare an enum attribute where the values map to integers in the database, but can be queried by name.

blog.mariadb.org

MariaDB 10 includes numerous innovations developed with and for web-scale players like Google, Fusion-IO and Taobao such as...