Skip to content

Instantly share code, notes, and snippets.

@fiedl
fiedl / Window-2-3.md
Last active August 29, 2015 14:06
Mac OS Window Management: Snap windows 2/3 of the screen when pressing Shift_R.
  • Use Karabiner to route the right shift key to another key, e.g. F18.
  • Use Apple Script in Spark or another hotkey manager to resize the window.
@fiedl
fiedl / pr.md
Last active August 29, 2015 14:11 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
@fiedl
fiedl / prepend.rb
Created March 5, 2015 14:45
Prepend: Using `super` in a re-opened ruby class.
# Original class
class Foo
def piep
"sag mal"
end
end
# Methods to add/override
module FooExtension
def piep
@fiedl
fiedl / README.md
Created October 22, 2015 23:58
Fixing time zone issue in specs between 0:00 and 2:00

Some of our specs failed between 0:00 and 2:00, but succeeded otherwise.

The issue had been that to_date itself does not consider the timezone, such that we had to replace expressions like

I18n.localize @some_datetime.to_date

with

@fiedl
fiedl / ds9-harbinger.md
Created November 6, 2015 09:01
DS9 Harbinger on Mac OS with DosBox
# nas mount
mount -t smbfs -o username=Sebastian,password=... //nas/Sebastian /mnt
# TODO: insert version with separate credentials file (box: blue-lucid)
@fiedl
fiedl / README.md
Last active May 4, 2017 05:13
Write markdown emails in os x

Using markdown-service-tools, write markdown emails and convert to rich text via hot key before sending.

Install

brew cask install markdown-service-tools
brew install multimarkdown 
@fiedl
fiedl / Columns of equal height.markdown
Created June 30, 2016 16:33
Columns of equal height

Columns of equal height

Bootstrap columns with boxes of equal height inside.

A Pen by Fiedl on CodePen.

License.