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
# Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.) | |
require 'formula' | |
class PhpCgi <Formula | |
@url='http://www.php.net/get/php-5.2.14.tar.bz2/from/www.php.net/mirror' | |
@version='5.2.14' | |
@homepage='http://php.net/' | |
@md5='bfdfc0e62fe437020cc04078269d1414' |
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> | |
<html lang="en" class="no-js"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Site Name</title> | |
<link rel="stylesheet" type="text/css" href="/assets/application.css" media="all" /> | |
</head> | |
<body> | |
<div class="container wrapper"> | |
<div class="header"> |
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
def mobile? | |
if session[:mobile_param] | |
session[:mobile_param] == "1" | |
else | |
request.user_agent =~ /Mobile|webOS/ | |
end | |
end | |
helper_method :mobile? | |
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
tell application "Finder" | |
try | |
mount volume "afp://10.0.0.1" as user name "UserName" with password "Password" | |
end try | |
end tell | |
do shell script "cd /Volumes/Data/Time_Capsule_Temp/ && rm -r *" |
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
# | |
# Supported browsers | |
# | |
modern_browser gecko 1.9; | |
# note that Safari related directives match | |
# Chrome, Mobile Safari, Palm Pre and other WebKit-based browsers here, too, thanks | |
# to all of them using almost identical User-Agent strings | |
modern_browser safari 3.0; |
NewerOlder