Eventually platforms outgrow the single-source-tree model and become distributed systems. A common pattern in these distributed systems is distributed composition via event buffering. Here we motivate and describe this event buffering pattern.
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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 | |
| /** | |
| * Magento | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Academic Free License (AFL 3.0) | |
| * that is bundled with this package in the file LICENSE_AFL.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/afl-3.0.php |
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/bash | |
| # | |
| domain="http://localhost:4567" | |
| file="/tmp/shot.$RANDOM.png" | |
| import -window root $file | |
| curl -v -F "file=@$file" $domain/upload | |
| notify-send "Uploaded $file" | |
| rm $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
| <?php | |
| //Request::current()->uri is equal to $this->reqest->uri() in normal request or in first request of HMVC | |
| //echo $this->request->uri(), Request::current()->uri(); | |
| //echo Route::name($this->request->route()); exit; | |
| if (!$auth->logged_in() && (!in_array(Route::name($this->request->route()), $this->_requireAuthen) || Route::name(new Route(Request::current()->uri()))=='hash' ) ) { | |
| $this->request->redirect('account/login'); | |
| } |
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 | |
| class Model_Schedule_Detail extends Sprig { | |
| protected function _init() { | |
| $this->_fields += array( | |
| 'id' => new Sprig_Field_Auto, | |
| 'schedule' => new Sprig_Field_BelongsTo(array( | |
| 'model' => 'schedule', | |
| 'column' => 'schedule_id', |
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
| mysql -u root -p secret dbname < db.sql | |
| mysql -u root -p secret | |
| mysql> create database mydb; | |
| mysql> use mydb; | |
| mysql> source db_backup.dump; |
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
| find . -type f -name '*.jpg' -exec command {} \; |
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
| */15 * * * * echo -e "Subject: Server Status\nDaemon:\n" > /tmp/slog; ps -A >> / | |
| tmp/slog; top - n 1 -b >> /tmp/slog; cat /tmp/slog | sendmail -f daemon@axcoto. | |
| com [email protected] |
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
| "git ls-files -d | xargs git checkout --" |