Skip to content

Instantly share code, notes, and snippets.

@ilnurnasyrov2
ilnurnasyrov2 / http_client_spec.rb
Created October 30, 2018 14:23 — forked from xaviershay/http_client_spec.rb
Running a rack app in a thread for integration tests.
require 'integration_helper'
require 'rack'
require 'rack/handler/webrick'
describe HttpClient do
before :all do
@server = WEBrick::HTTPServer.new(
:Port => 9293,
:Logger => Rails.logger,
:AccessLog => Rails.logger
@ilnurnasyrov2
ilnurnasyrov2 / hide-iterm-dock-icon.md
Created November 3, 2016 19:38 — forked from stvhwrd/hide-iterm-dock-icon.md
Hide the iTerm dock icon on Mac OS X

On my dual-drive MacBook Pro I have remapped the eject key to F13 using Karabiner and NoEjectDelay. The eject key has been assigned as the hotkey for a guake-style visor terminal using iTerm2. Having its own hotkey precludes the need for an icon, so I prefer to hide the iTerm dock icon.

####To hide the dock icon of iTerm2 on Mac OS X:

/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist

####To undo the above: