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
| delete from availability_template where owner_entity_id = '22345678-6ccd-499b-a5fd-b07e7b633252'; | |
| INSERT INTO `availability_template` (`id`, `owner_entity_id`, `company_entity_id`, `day_of_week`, `slot_type`, `start_time`, `end_time`) | |
| VALUES | |
| (1012, '22345678-6ccd-499b-a5fd-b07e7b633252', NULL, 1, 'green', '00:00:00', '00:00:00'), | |
| (1013, '22345678-6ccd-499b-a5fd-b07e7b633252', NULL, 2, 'green', '00:00:00', '00:00:00'), | |
| (1014, '22345678-6ccd-499b-a5fd-b07e7b633252', NULL, 3, 'green', '00:00:00', '00:00:00'), | |
| (1015, '22345678-6ccd-499b-a5fd-b07e7b633252', NULL, 4, 'green', '00:00:00', '00:00:00'), | |
| (1017, '22345678-6ccd-499b-a5fd-b07e7b633252', NULL, 5, 'green', '00:00:00', '00:00:00'), | |
| (1018, '22345678-6ccd-499b-a5fd-b07e7b633252', NULL, 6, 'green', '00:00:00', '00:00:00'), |
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
| asdfsdf |
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
| DELIMITER ;; | |
| CREATE TRIGGER tr_oss_nuke_entity_bi | |
| BEFORE INSERT ON oss_nuke_entity | |
| FOR EACH ROW | |
| BEGIN #V1.001 | |
| SET NEW.pin = floor(rand() * 899998) + 100001; | |
| END;; | |
| DELIMITER ; |
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| ZSH_THEME="andyblessington" | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
| # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| # Add wisely, as too many plugins slow down shell startup. |
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| ZSH_THEME="andyblessington" | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
| # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| # Add wisely, as too many plugins slow down shell startup. |
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
| Array | |
| ( | |
| [0] => Africa/Abidjan | |
| [1] => Africa/Accra | |
| [2] => Africa/Addis_Ababa | |
| [3] => Africa/Algiers | |
| [4] => Africa/Asmara | |
| [5] => Africa/Bamako | |
| [6] => Africa/Bangui | |
| [7] => Africa/Banjul |
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
| Array | |
| ( | |
| [0] => Africa/Abidjan | |
| [1] => Africa/Accra | |
| [2] => Africa/Addis_Ababa | |
| [3] => Africa/Algiers | |
| [4] => Africa/Asmara | |
| [5] => Africa/Bamako | |
| [6] => Africa/Bangui | |
| [7] => Africa/Banjul |
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
| docker run -v /var/lib/boot2docker:/var/lib/boot2docker --name swarm-agent-master -d -p 3376:3376 swarm manage --advertise 0.0.0.0:3376 --replication --tlsverify --tlscacert=/var/lib/boot2docker/ca.pem --tlscert=/var/lib/boot2docker/server.pem --tlskey=/var/lib/boot2docker/server-key.pem -H :3376 --strategy spread etcd://$(dm ip vm-master):4001/swarm | |
| docker run -d swarm join --addr=$(dm ip vm-master):2376 etcd://$(dm ip vm-master):4001/swarm | |
| docker run --net=host -d gcr.io/google_containers/etcd:2.0.9 /usr/local/bin/etcd --addr=$(dm ip vm-master):4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data |
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
| SELECT SQL_CALC_FOUND_ROWS | |
| v_shifts.* | |
| FROM | |
| ((SELECT | |
| v_shifts.* | |
| FROM | |
| `v_shifts` | |
| WHERE | |
| `start_at` >= '2015-06-18 13:06:16' | |
| AND `accepted_entity_id` IS NULL |
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 namespace OpenSimSim\Models\Observer; | |
| use DB; | |
| use OpenSimSim\Models\Entity; | |
| class EntityObserver { | |
| private function uuid() { | |
| $seeds = array_map(function($length) { |