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
| <style type='text/css'> html, body { margin: 0; padding: 0; border: 0; } </style> |
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
| # cribed from this post | |
| # http://onethingwell.org/post/27835796928/remote-ssh-bact-to-my-mac | |
| dns-sd -E # gets your member id for icloud | |
| # SSH command | |
| ssh -2 -6 [USERNAME]@[COMPUTER NAME].[account number].members.btmm.icloud.com | |
| # ~/.ssh/config | |
| Host mac-remote |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <!-- | |
| ___ ___ | |
| / /\ / /\ ___ | |
| / /::\ / /::\ /__/| | |
| / /:/\:\ ___ ___ / /:/\:\ | |:| | |
| / /:/~/:/ /__/\ / /\ / /:/~/::\ | |:| |
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
| # Load pow environment variables into development and test environments | |
| if File.exist?(".powenv") | |
| IO.foreach('.powenv') do |line| | |
| next if !line.include?('export') || line.blank? | |
| key, value = line.gsub('export','').split('=',2) | |
| ENV[key.strip] = value.delete('"\'').strip | |
| end | |
| end if Rails.env.development? || Rails.env.test? |
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
| source 'https://rubygems.org' | |
| ruby '2.1.4' | |
| gem 'rails', '4.2.1' | |
| gem 'sqlite3' | |
| gem 'sass-rails', '~> 5.0' | |
| gem 'uglifier', '>= 1.3.0' | |
| gem 'coffee-rails', '~> 4.1.0' |
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
| unless open(__FILE__).flock(File::LOCK_EX | File::LOCK_NB) | |
| puts "script already running..." | |
| exit | |
| 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
| <h1> | |
| test | |
| </h1> |
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
| class Val | |
| def self.check!(klass) | |
| klass.find_each do |s| | |
| begin | |
| if !s.valid? | |
| message = s.errors.full_messages.to_sentence | |
| throw "#{klass.to_s} #{s.id} #{message}" | |
| end | |
| rescue => e |
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
| sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 86400 |
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
| # http://osxdaily.com/2012/10/24/set-the-hostname-computer-name-and-bonjour-name-separately-in-os-x/ | |
| sudo scutil --set ComputerName "NAME" | |
| sudo scutil --set HostName "NAME" | |
| sudo scutil --set LocalHostName "NAME" |