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
# This is working for vagrant 1.6.x | |
# If you have any problems, add a comment. | |
$ sudo visudo | |
# Paste this and save. | |
# let vagrant set up NFS shares without password prompt | |
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports | |
Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart |
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
###PHP requirements to be able to use php SDK | |
- php-mbstring | |
In Centos you can install this php-module like this: | |
```bash | |
$ yum install php-mbstring | |
``` | |
###Symfony changes required: | |
In your config.yml need to change the session handler |
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
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"A File Icon", | |
"Boxy Theme", | |
"Boxy Theme Addon - Font Face", |
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
# Config for MAMP | |
export PATH=/Applications/MAMP/bin/php/php5.5.10/bin:$PATH | |
# Show hidden files | |
alias showFiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app" | |
# Hide hidden files | |
alias hideFiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app" | |
# Git | |
alias gs="git status" |
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
#!/bin/sh | |
# | |
# init.d script with LSB support. | |
# | |
# Copyright (c) 2007 Javier Fernandez-Sanguino <[email protected]> | |
# | |
# This is free software; you may redistribute it and/or modify | |
# it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2, | |
# or (at your option) any later version. |
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
First you have to download the 32bit or 64bit Linux binaries from here and unzip the contents to /usr/local. | |
# cd /tmp | |
# curl -O http://downloads.mongodb.org/linux/mongodb-linux-i686-2.4.9.tgz | |
# sudo tar -zxf /tmp/mongodb-linux-i686-2.4.9.tgz -C /usr/local | |
Then you need to configure some symbolic links. |
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
#make ZF2 work on shared hosting using this htaccess | |
#SetEnv ZF2_PATH /home/username/zf2lib | |
RewriteEngine On | |
RewriteRule ^\.htaccess$ - [F] | |
RewriteCond %{REQUEST_URI} ="" | |
RewriteRule ^.*$ /public/index.php [NC,L] | |
RewriteCond %{REQUEST_URI} !^/public/.*$ | |
RewriteRule ^(.*)$ /public/$1 | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteRule ^.*$ - [NC,L] |
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
<?php | |
function autoload($className) | |
{ | |
$className = ltrim($className, '\\'); | |
$fileName = ''; | |
$namespace = ''; | |
if ($lastNsPos = strrpos($className, '\\')) { | |
$namespace = substr($className, 0, $lastNsPos); | |
$className = substr($className, $lastNsPos + 1); |
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
// JavaScript Class Definition and Inheritance | |
function BaseClass() { | |
//BaseClass constructor code goes here | |
} | |
BaseClass.prototype.getName = function() { | |
return "BaseClass"; | |
} | |
function SubClass() { |
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
#this is a way to change the default php to MAMP php version you want | |
#if you do `which php` you eill see: /usr/bin/php that is the php that comes with OSX installation | |
which php | |
#do this to export the path to you .profile ou .bash_profile | |
export PATH=/Applications/MAMP/bin/php/php5.4.4/bin:$PATH | |
#then run this command to update the path | |
source ~/.bash_profile |