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
#!/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 |
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
^([a-z0-9](-?[a-z0-9])*)+(\.[a-z0-9](-?[a-z0-9])*)*(\.[a-z0-9](-?[a-z0-9])+)+$ |
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 namespace Vendor\Package; | |
use Illuminate\Validation\Validator; | |
class ExtendedValidator extends Validator | |
{ | |
// use validation rule "foo" to use | |
public function validateFoo($attribute, $value, $parameters) | |
{ | |
return $value == "foo"; |
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 | |
trait AuthenticatedTrait | |
{ | |
/** | |
* The check to see whether access is allowed to some route | |
* @return bool | |
*/ | |
public function allowedToAccessRoute() | |
{ |
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
find . -type d -print0 | xargs -0 chmod 0755 | |
find . -type f -print0 | xargs -0 chmod 0644 |
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
#!/bin/bash | |
# | |
# Laravel update tool | |
# | |
# | |
# use: ./rollout.sh | |
# | |
# date: 2015-09-01 | |
# by D. Klabbers / HostingXS B.V. |
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
#!/usr/bin/env bash | |
base=${PWD} | |
release=${base} | |
# Install all Composer dependencies | |
cd ${release}/flarum | |
composer require flarum/core:dev-master@dev --prefer-dist --update-no-dev | |
composer update --prefer-dist --optimize-autoloader --ignore-platform-reqs --no-dev |
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
# 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 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 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, | |
# |
OlderNewer