When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...
MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...
If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...
To print a colored full-width bar on the bash, use this bash script expression: echo -e '\033[37;44m...
I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...
Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...
If you have a text that is edited by WSYIWYG-Editor but want some length checking nevertheless, you need to...
Sometimes you want to strip a text of every special char. If you use \W, the result might not be...
Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...
If your terminal has many tabs, you'll want to keep them organized. To change their title from the prompt...
Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...
When you build a link for an email body like this body = "Please click the following link" body << "http://posts/130...
Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...
When you have files in your .gitignore they won't be considered for changes, but still you might want to...
Remember why preloading associations "randomly" uses joined tables or multiple queries? If you don't like the cleverness of this...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
git shortlog -s -n [commit-range] -n, --numbered Sort output according to the number of commits per author
Getting a regular expression from a string in JavaScript is quite simple: new RegExp('Hello Universe'); # => /Hello Universe/
This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...
Sometimes you might want to limit the number of associated records in a has_many association, but cannot add a...
When you use heredoc, string interpolation is enabled by default: x = "Universe" <<-MESSAGE Hello #{x} MESSAGE # => "Hello Universe"
Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...
Use Socket.gethostname. So for a machine whose hostname is "happycat", it will look like this: >> Socket.gethostname => "happycat" That should work...
Git commits should be very deliberate, and only contain changes that you really want to be in there. In order...