Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| # Yosemite removes essential postgres files after upgrade. Run this to add them back. | |
| mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp} |
This file contains hidden or 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
| # namespace :paperclip do | |
| # desc "Create symlink" | |
| # task :symlink do | |
| # run "rm -rf #{release_path}/public/system" | |
| # run "mkdir -p #{shared_path}/system" | |
| # run "ln -nfs #{shared_path}/system #{release_path}/public/system" | |
| # end | |
| # end |
This file contains hidden or 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
| function csrf() { | |
| $.ajaxSetup({ | |
| beforeSend: function(xhr, settings) { | |
| function getCookie(name) { | |
| var cookieValue = null; | |
| if (document.cookie && document.cookie != '') { | |
| var cookies = document.cookie.split(';'); | |
| for (var i = 0; i < cookies.length; i++) { | |
| var cookie = jQuery.trim(cookies[i]); | |
| // Does this cookie string begin with the name we want? |
This file contains hidden or 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
| /* | |
| * Screen Saver applications | |
| * | |
| */ | |
| var ScreenSaver = function(selector) { | |
| this.element = $(selector); | |
| var offset = this.element.offset(); | |
| this.top = offset.top; | |
| this.left = offset.left; |