Skip to content
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use JSON qw( decode_json ); # isn't default module, must be installed via CPAN or your system package manager
use Time::HiRes qw ( usleep ); # for simple delays
my $outputfile = shift; # getting output filename from command-line params
View dashboard
# Dashing service
# Add this file to /etc/init.d/
# $ sudo cp dashboard /etc/init.d/
# Update variables DASHING_DIR, GEM_HOME, & PATH to suit your installation
# $ sudo nano /etc/init.d/dashboard
# Make executable
# $ sudo chmod 755 /etc/init.d/dashboard
# Update rc.d
# $ sudo update-rc.d dashboard defaults
View mako-aosp-Implement-kexec-hardboot.patch
From a5c71c50da839c6932af1903bcc0036daa033f7e Mon Sep 17 00:00:00 2001
From: Vojtech Bocek <>
Date: Mon, 30 Sep 2013 18:02:43 +0200
Subject: [PATCH] Implement kexec-hardboot
"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec. This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
More info in /arch/arm/Kconfig.
View gist:5873100
sudo find /private/var/folders/ -name -exec rm {} \;

Rails Models

Generating models

$ rails g model User


View himawari.ps1
# Himawari-8 Downloader
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image,
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background.
View IdeaVim OS X Key Repeat.markdown

Upgrading to Lion or Yosemite and WebStorm 9, I noticed key repeat was
turned off for the IdeaVim plugin h j k l keys.

System-wide key repeat

defaults write -g ApplePressAndHoldEnabled -bool false in a terminal will enable
key repeat for every app. This can alternatively be found in the accessibility settings in OS X' preferences.

App specific key repeat

View DomainTemplateRoute - GetVirtualPath
public string GetVirtualPath(VirtualPathContext context)
foreach (var matcherParameter in _matcher.Template.Parameters)
context.Values.Remove(matcherParameter.Name); // make sure none of the domain-placeholders are appended as query string parameters
return _innerRoute.GetVirtualPath(context);
View PHPStorm 10 Activation Key
PHPStorm 10
For activation set license server to:
> (May be locked, read below)
and press Ok. No key. Worked.
Site may be locked in some regions. We can bypassing it using next link as license server:
> (May be slow, opens about 10-20 seconds; sometimes open on the 2nd try)
It is real url of, but proxified from anonimize service "" (you can check it yourself in your browser).

Zoomable/rotatable world globe that uses orthographic projection. Drag behavior is enhanced as described here:

Performance is not good due to redrawing whole world upon zoom/drag.

Something went wrong with that request. Please try again.