A single purpose site: Days since GitHub hired someone
It uses the feed for the GitHub blog to figure out when GitHub last hired someone.
A single purpose site: Days since GitHub hired someone
It uses the feed for the GitHub blog to figure out when GitHub last hired someone.
A simple tool based on Ricardo Tomasi’s toml.js for converting TOML to JSON in your browser.
Check it out at toml-to-json.matiaskorhonen.fi
TOML (Tom’s Obvious, Minimal Language) aims to be a minimal configuration file format that’s easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages.
I just published a redesign of my home page, matiaskorhonen.fi
There might still be some issues, especially on mobile browsers, but overall I’m fairly happy with how it turned out.
(geek aside: It’s a static HTML site, but it’s served with Puma running on Rubinius 2)
When we run our build suites on Travis Pro the bundling step takes the most time by a wide margin (aside from the test script itself).
Inspired by this Coderwall protip by Michał Czyż, I set about attempting to cache our completed gem bundle on S3.
Update: Checkout the bundle_cache gem for an improved version of this technique
Gemfile.lock
are downloaded from S3 (if they exist)bundle install
as normal (except that the bundle is installed to ~/.bundle
). This shouldn’t take more than a few seconds if the bundle hasn’t changed.Gemfile.lock
has changedThe bundle is uploaded with public-read
permissions for easier downloading. This should not be a problem for most people and could be mitigated by using a really obscure filename, like a UUID.
us-east-1
) (and possibly a new user via IAM)travis
gem with gem install travis
travis login --auto
(from inside your project respository directory)travis encrypt AWS_S3_KEY="" AWS_S3_SECRET="" --add
(be sure to add your actual credentials inside the double quotes)bundle_cache.rb
and bundle_install.sh
files from below to the script/travis
folder.travis.yml
file to match the .travis.yml
belowBUNDLE_ARCHIVE
variable will be used as the base for the uploaded bundle’s nameAWS_S3_REGION
is optional and defaults to us-east-1
bundler_args
env.global
before_install
after_script
If you have any questions or comments, you can comment on my gist, or tweet at me on Twitter.
Sometimes OS X will flatly refuse to change the audio output to an AirPlay outlet, such as an Apple TV or Airport Express (with no visible error message).
When this happens I’ve found that killing the CoreAudio daemon (coreaudiod
) helps (OS X will automatically restart it).
Simply run this command in Terminal:
sudo pkill coreaudiod
AirPlay should work again a few moments later.
Mostly useful for ensuring that Browsers which don’t have console.log
enabled by default (i.e. Internet Explorer) don’t explode if you forget to remove a console.log
from your JavaScripts.
In OS X Mountain Lion (10.8) and Lion (10.7) to clear the DNS cache you should run:
sudo killall -HUP mDNSResponder
And not the older command that worked in Leopard (10.5) and Snow Leopard (10.6):
sudo dscacheutil -flushcache
See also: Alfred 2 Workflow: Clear OS X DNS Cache
My Toggle Tunlr Alfred extension updated to an Alfed v2 workflow.
This script (still) naïvely assumes that you are using a Wi-Fi network and that you normally don’t have any DNS servers manually set.
There are four command available:
tunlr
— toggle Tunlr on and offtunlr on
— explicitly set the Tunlr serverstunlr off
— explicitly unset the Tunlr serverstunlr status
— check what the current DNS settings areDownload: Toggle-Tunlr.alfredworkflow
Tunlr lets you stream content from sites like Netflix, Hulu, MTV, CBS, ABC, Pandora and more to your Mac or PC. Want to watch Netflix or HuluPlus on your iPad, AppleTV or XBox 360 even though you’re not in the U.S.? Tunlr lets you do this.
My Repair LaunchServices Alfred 1 extension updated for Alfred v2 workflows.
Do you have duplicate items under the Finder Open With menu? If so, repairing the Launch Services register usually helps.
Download: Repair-LaunchServices.alfredworkflow
UPDATE (09.05.2013): Instead of using this, you should probably get the official workflow from here.
This updates the “old” myPhoneDesktop for Alfred App Extension to work with Alfred v2. The main script is from the Alfred v1 extension, and has not been modified at all.
For a full guide of how to use this extension, read this post about the original Alfred extension: myPhoneDesktop for Alfred App Extension
Note: I am not affiliated with the original author of the extension nor with myPhoneDesktop. I just needed this for myself.
Download: Send-to-iPhone.alfredworkflow