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
{ | |
"name":"Darwin Biler", | |
"id": "123", | |
"date_created": "2009-12-12", | |
"href": "http://domain.com/account/123", | |
"transactions":[ | |
"href": "http://domain.com/transaction/7897", | |
"href": "http://domain.com/transaction/7897", | |
"href": "http://domain.com/transaction/7897", | |
"href": "http://domain.com/transaction/7897" |
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
vim /etc/sysconfig/iptables | |
#look for this line in the file | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT | |
# then copy that and change 80 to 8000 | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8000 -j ACCEPT | |
#press escape and type | |
:q |
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
conn = new Mongo(); | |
db = conn.getDB("db1"); | |
db.greetings.insert({ | |
"message": "Hello World" | |
}); | |
print("I create a new record in greetings collection in db1 database"); |
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
mongo localhost:27017/db1 create_record.js |
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
#1 create a json config file | |
#2 make sure date.timezone is set | |
php --ini | |
#3 build the packages | |
php bin/satis build config.json web/ --no-interaction |
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
App::register('MyApp\Providers\MyServiceProvider'); |
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
FreeGeoIP for Laravel 4 | |
======================= | |
[![Build Status](https://travis-ci.org/buonzz/laravel-4-freegeoip.svg?branch=master)](https://travis-ci.org/buonzz/laravel-4-freegeoip) | |
[![Latest Stable Version](https://poser.pugx.org/buonzz/laravel-4-freegeoip/v/stable.svg)](https://packagist.org/packages/buonzz/laravel-4-freegeoip) [![Total Downloads](https://poser.pugx.org/buonzz/laravel-4-freegeoip/downloads.svg)](https://packagist.org/packages/buonzz/laravel-4-freegeoip) | |
[![Latest Unstable Version](https://poser.pugx.org/buonzz/laravel-4-freegeoip/v/unstable.svg)](https://packagist.org/packages/buonzz/laravel-4-freegeoip) [![License](https://poser.pugx.org/buonzz/laravel-4-freegeoip/license.svg)](https://packagist.org/packages/buonzz/laravel-4-freegeoip) | |
Laravel 4 Library for calling http://freegeoip.net/ API. | |
In contrary to all other packages wherein it requires that you have the geoip database in your filesystem, this library calls a free service |
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
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://packages.buonzz.com" | |
} | |
] | |
} |
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
composer create-project laravel/laravel myproject --repository-url=http://packages.buonzz.com |
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
{ | |
"require": { | |
"symfony/console": "*" | |
}, | |
"repositories": [ | |
{"packagist": false}, | |
{ "type": "composer", "url": "http://packages.buonzz.com/"} | |
] | |
} |