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
location ^~ /assets/ { | |
sendfile on; | |
rewrite ^(.*)$ /framework/main.php?url=$1 last; | |
} |
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 | |
if [ $# -lt 1 ] | |
then | |
echo "Usage : $0 [dir]" | |
exit | |
fi | |
chown -R dev:dev $1 |
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 | |
GIT=$(which git) | |
SED=$(which sed) | |
PATH=${1:-$(pwd)} | |
for DIR in $PATH/* | |
do | |
if [ -d $DIR ] | |
then |
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 | |
if [ $# -lt 1 ] | |
then | |
echo "Usage : $0 [dir]" | |
exit | |
fi | |
chown -R dev:dev $1 |
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
# Manually remove the lockfile: | |
sudo rm /var/lib/mongodb/mongod.lock | |
# Run the repair script: | |
sudo -u mongodb mongod -f /etc/mongodb.conf --repair | |
# Run the MongoDb server: | |
sudo service mongodb start | |
# Check the MongoDb server status: |
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
git clone https://github.com/silverstripe/silverstripe-installer.git public | |
git checkout 3.0 | |
rm -rf .git/ | |
git remote add upstream https://github.com/silverstripe/silverstripe-installer.git | |
git flow init -d |
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
assets/* | |
!assets/.htaccess | |
!assets/error-404.html | |
!assets/error-500.html | |
!assets/web.config | |
_ss_environment.php | |
tools/phing-metadata |
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 | |
# Get the path for the .bashrc file from the prompt or set it as being in the users home dir. | |
BASHRC="${1:=~/.bashrc}" | |
# Use sed to remove the comment from the force color line in the .bashrc file. | |
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' $BASHRC | |
# BONUS: Uncomment to change the default color of the prompt. | |
#sed -i 's/1;32m/1;31m/g' |
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
# Magento CE 1.4.1.1 | |
# Be sure to replace "" with your table prefix | |
SET FOREIGN_KEY_CHECKS=0; | |
############################## | |
# SALES RELATED TABLES | |
############################## | |
TRUNCATE `sales_flat_creditmemo`; | |
TRUNCATE `sales_flat_creditmemo_comment`; |
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 | |
abstract class Message | |
{ | |
protected static $messages = array(); | |
public static function get($key, $default = null) | |
{ | |
$return = \Arr::get(static::$messages, $key, $default); | |
\Arr::delete(static::$messages, $key); |
NewerOlder