# enable internal menu
defaults write com.apple.dt.Xcode ShowDVTDebugMenu -bool YES
alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Circular Buffer | |
* original by rayfix @ https://gist.github.com/rayfix/1fb467981e386ad5797e | |
* added getting and previewing next and previous objects. | |
*/ | |
import UIKit | |
public struct RingGenerator<T> : GeneratorType { | |
public mutating func next() -> T? { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
# debug default is :headless | |
config.vm.boot_mode = "gui" | |
# the .box file | |
config.vm.box = "afa-chef-server" | |
config.vm.box_url = "/V3/base_debian/with-apt.box" | |
# ssh config | |
config.ssh.private_key_path = "afa_private_key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" copy all this into a vim buffer, save it, then... | |
" source the file by typing :so % | |
" Now the vim buffer acts like a specialized application for mastering vim | |
" There are two queues, Study and Known. Depending how confident you feel | |
" about the item you are currently learning, you can move it down several | |
" positions, all the way to the end of the Study queue, or to the Known | |
" queue. | |
" type ,, (that's comma comma) |