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
| LESS_SOURCE = ./app/webroot/frontpage/css/less/style.less | |
| CSS_TARGET = ./app/webroot/frontpage/css/style.min.css | |
| BOOTSTRAP_SOURCE = ./app/webroot/frontpage/js/bootstrap/ | |
| JS_TARGET = ./app/webroot/frontpage/js/app.min.js | |
| build: | |
| @recess --compress --compile ${LESS_SOURCE} > ${CSS_TARGET} | |
| @cat \ | |
| ./app/webroot/app/js/jquery/jquery-1.10.2.min.js \ | |
| ./app/webroot/app/js/jquery/jquery.cookie.js \ |
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
| You can use split for this: | |
| tar czpvf - /path/to/archive | split -d -b 100M - tardisk | |
| This tells tar to send the data to stdout, and split to pick it from stdin - additionally using a numeric prefix (`-d`), a chunk size (`-b`) of 100M and using 'disk' as the base for the resulting filenames (tardisk00, tardisk01, etc.). | |
| To extract the data afterwards you can use this: | |
| cat tardisk* | tar xzpvf - |
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
| protected function _findAllWithFolders($state, $query, $results = array()) { | |
| if ($state == 'before') { | |
| return $query; | |
| } | |
| $results = array_merge( | |
| $this->AssetFolder->find('all'), | |
| $results | |
| ); | |
| return $results; | |
| } |
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
| 'ColorWheel' => array( | |
| 'ColorWheel' => array( | |
| (int) 0 => '1', | |
| (int) 1 => '34' | |
| ) | |
| ), | |
| 'ColorWheelRange' => array( | |
| 'ColorWheelRange' => array( | |
| (int) 0 => '1', | |
| (int) 1 => '2' |
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
| public $hasAndBelongsToMany = array( | |
| 'ColorWheel' => array( | |
| 'className' => 'Color' | |
| ), | |
| 'ColorWheelRange' => array( | |
| 'className' => 'Color' | |
| ) | |
| ); | |
| colors_wheels, colors_wheel_ranges |
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
| 'titleTranslation' => array( | |
| (int) 0 => array( | |
| 'id' => '1', | |
| 'locale' => 'eng', | |
| 'model' => 'Category', | |
| 'foreign_key' => '2', | |
| 'field' => 'title', | |
| 'content' => 'English text' | |
| ), | |
| (int) 1 => array( |
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
| if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) { | |
| trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_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
| It is not about sitemap.xml and it is not about PHP, using curl to show you there is something wrong with server (some firewall, security issue). | |
| I am sshed into 159.253.214.100 server and doing | |
| curl -v metaldeseda.com connection refused | |
| curl -v vmrates.co.uk connection refused | |
| curl -v google.com works fine!!! | |
| I am sshed to local server (or oi-dev). | |
| curl -v metaldeseda.com works fine!! | |
| curl -v vmrates.co.uk works fine!! |
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
| -bash-4.1$ curl -v localhost | |
| * getaddrinfo(3) failed for localhost:80 | |
| * Couldn't resolve host 'localhost' | |
| * Closing connection #0 | |
| curl: (6) Couldn't resolve host 'localhost' |
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
| -bash-4.1$ curl -v http://preview.metaldeseda.com/sitemap.xml | |
| * About to connect() to preview.metaldeseda.com port 80 (#0) | |
| * Trying 159.253.214.100... Connection refused | |
| * couldn't connect to host | |
| * Closing connection #0 | |
| curl: (7) couldn't connect to host |