ssh root@YOURDOMAIN
adduser deploy
# set default editor for visudo to vim
update-alternatives --set editor /usr/bin/vim.tiny
visudo # Add deploy ALL=(ALL) ALL
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
/* | |
* Styles so Refinery admin is compatible with jquery-ui | |
*/ | |
.refinery-ui-corner-all { | |
border: none; | |
} | |
#menu { | |
&.ui-corner-all { |
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
let g:NERDTreeCustomReuseWindows = '1' | |
call NERDTreeAddKeyMap({ | |
\ 'key': 'w', | |
\ 'scope': 'all', | |
\ 'callback': 'NERDTreeCustomToggleReuse', | |
\ 'quickhelpText': 'Toggle use existing windows' }) | |
function! NERDTreeCustomToggleReuse() | |
let g:NERDTreeCustomReuseWindows = g:NERDTreeCustomReuseWindows ? 0 : 1 |
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
// Platform: ios | |
// commit f50d20a87431c79a54572263729461883f611a53 | |
// File generated at :: Tue Feb 26 2013 14:26:19 GMT-0800 (PST) | |
/* | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information |
Works with nested backbone models. Can sync the whole nested collection at once, or just an individual model.
This is just something I hacked together. The goal was to replace it with an updated backbone-offline once that library supports nested models.
Requires:
- backbone 0.9.10
- backbone.localStorage 1.0
- backbone-relational 0.7.0
Probably requires changes for a newer backbone or backbone-relational.
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
//based on blog post that I saw here: http://www.sanraul.com/2010/08/01/implementing-doubletap-on-iphones-and-ipads/ | |
(function($){ | |
$.fn.doubletap = function(fn) { | |
return fn ? this.bind('doubletap', fn) : this.trigger('doubletap'); | |
}; | |
$.attrFn.doubletap = true; | |
$.event.special.doubletap = { | |
setup: function(data, namespaces){ |