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
# Download & install marports http://www.macports.org/install.php | |
$ sudo port selfupdate | |
$ sudo port install nginx | |
$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
$ sudo port install php5 +fastcgi fcgi | |
$ sudo mkdir /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ cd /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ mate org.macports.php-fastcgi.plist # or vim org.macports.php-fastcgi.plist |
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
http://stackoverflow.com/questions/1817219/how-do-i-install-ruby-on-mac-leopard | |
port install ruby19+nosuffix | |
http://www.jotlab.com/2009/11/08/installing-ruby-on-rails-mysql-imagemagick-nginx-passenger-with-macports/ | |
sudo port uninstall --follow-dependents portname | |
http://blog.ntrippy.net/2009/07/home-made-nginx-phusion-passenger-dep_01.html | |
sudo port uninstall nginx && sudo port clean nginx | |
//clean up all ports macports |
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
bennys-Mac-Pro:/ bennylep$ sudo port -fp uninstall --follow-dependents installed | |
bennys-Mac-Pro:/ bennylep$ clear | |
bennys-Mac-Pro:/ bennylep$ sudo rm -rf \ | |
> /opt/local \ | |
> /Applications/DarwinPorts \ | |
> /Applications/MacPorts \ | |
> /Library/LaunchDaemons/org.macports.* \ | |
> /Library/Receipts/DarwinPorts*.pkg \ |
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
#httpd.conf | |
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>JS Prime Generator</title> | |
</head> | |
<body> | |
<div id="res"></div> | |
<button id="generate">Generate more primes!</button> | |
<script type="text/javascript"> | |
(function(){ |
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
<?php | |
class BootstrapFormHelper extends AppHelper { | |
public $helpers = array('Html', 'Form'); | |
public function input($name, $options = array()) { | |
$default = array( | |
'type' => null, | |
'label' => null, | |
'before' => null, // to convert .input-prepend |
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
<?php | |
if (!isset($modules)) { | |
$modulus = 11; | |
} | |
if (!isset($model)) { | |
$models = ClassRegistry::keys(); | |
$model = Inflector::camelize(current($models)); | |
} | |
?> | |
<div class="pagination"> |
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
<?php | |
substr( str_shuffle( 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$' ) , 0 , 10 ); | |
?> |
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
#user nobody; | |
worker_processes 1; | |
#error_log /opt/local/logs/error.log; | |
#pid /opt/local/logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
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
./configure \ | |
--prefix=/opt/local/php/5.4 \ | |
--bindir=/opt/local/bin \ | |
--with-config-file-path=/opt/local/php/5.4/etc \ | |
--with-config-file-scan-dir=/opt/local/php/5.4/var/db \ | |
--mandir=/opt/local/php/5.4/share/man \ | |
--infodir=/opt/local/php/5.4/share/info \ | |
--program-suffix=-5.4 \ | |
--with-apxs2=/opt/local/apache2/bin/apxs \ | |
--enable-pdo \ |
OlderNewer