- Laravel main documentation: http://laravel.com/docs
- Laravel API: http://laravel.com/api/4.1
- Laravel nettuts+: http://net.tutsplus.com/tag/laravel/
- Laravel authentication driver: http://www.karlvalentin.de/1903/write-your-own-auth-driver-for-laravel-4.html
- Laravel on stackoverflow: http://stackoverflow.com/questions/tagged/laravel-4
- Laravel cheat sheet: http://cheats.jesse-obrien.ca/
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
# zie alle openstaande beschikbare commits | |
svnmerge.py avail -l | |
# commit een bepaalde revisie | |
svnmerge.py merge -r .xxx | |
# commit deze revisie direct terug naar de huidige branche | |
svn commit -F svn<tab> (commit message) | |
# ignore files from svn | |
svn propset svn:ignore <file> . |
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
# commandline to initialize and download submodules | |
git submodule init | |
git submodule update | |
# commandline command to add commit to and close issue | |
# use any of these in your commit message: | |
# - fixes #xxx | |
# - fixed #xxx | |
# - fix #xxx | |
# - closes #xxx |
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
install rvm (rvm.io) and at least the 1.9.3-head by using the code: rvm install 1.9.3-head | |
Test whether this version is installed with rvm -v | |
If not try rvm reinstall 1.9.3-head | |
Now install the ruby gem daemons: gem install daemons | |
Also install the slanger gem, even though you are using the git repo, this ensures all dependencies are auto-loaded: gem install slanger | |
Now run your server |
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
Installation of RVM in /usr/local/rvm/ is almost complete: | |
* First you need to add all users that will be using rvm to 'rvm' group, | |
and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`. | |
* To start using RVM you need to run `source /etc/profile.d/rvm.sh` | |
in all your open shell windows, in rare cases you need to reopen all shell windows. | |
# Luceos, | |
# |
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 String | |
def valid_json? | |
begin | |
JSON.parse(self) | |
return true | |
rescue Exception => e | |
return false | |
end | |
end | |
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
<?php | |
include("connect.php"); | |
session_start(); | |
$projecten_id = $_GET["projecten_id"]; | |
$_SESSION["projecten_id"] = $projecten_id; | |
$projecten = mysql_query("SELECT p.*, a.project_afbeeldingen, b.project_bestand FROM `projecten` AS p, `project_afbeeldingen` AS a, `project_bestanden` AS b WHERE `projecten_id` = $projecten_id AND a.item_id = p.item_id AND p.bestand_id = b.bestand_id"); | |
if( !$projecten ) { echo sprintf( "Query failed; %s" , mysql_error()); } |
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 | |
require_once "<path>/<to>/hxsclient.php"; | |
if( array_key_exists( "domaincheck" , $_POST )) { | |
$api = new hxsclient( <username> , "<password>" , "<sandbox=true/false>" ); | |
$domainavailable = $api -> checkDomain( $_POST["domaincheck"] ); | |
} | |
// enter the form |
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
TCPKeepAlive = yes | |
ServerAliveInterval = 30 | |
ServerAliveCountMax = 12 |
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 | |
# | |
# Obsolete; nginx 1.5.10 has in-built option for spdy, with compilation option: --with-http_spdy_module | |
# | |
# use ./install_nginx_w_spdy.sh <version> | |
NGINX_VERSION=$1 | |
TMP_PATH=/tmp |
OlderNewer