docker create --name data-container-name -v /var/lib/mysql -p 3306:3306 mysql
docker run -it --name=mysql --volumes-from data-container-name -e MYSQL_ROOT_PASSWORD=123 -p 3306:3306 -d mysql
POST file contents as attachment to an endpoint
curl -X "POST" -i -F filedata="@test/data/fake_users_api.json" http://localhost:3000/api/v1/users/uploadBulk`
As extracted from keystone.js utils
/**
* Copies and merges options with defaults.
*
* @param {Object} defaults
* @param {Object} options
* @return {Object} the options argument merged with defaults| -has:userlabels -in:sent -in:chat -in:draft -in:inbox -in:bin |
| function collectWebItemData() { | |
| var webItem = {}; | |
| var linkTitle = (document.title); | |
| var linkLocation = (window.location); | |
| var selectedText = ''; | |
| if (window.getSelection) { | |
| selectedText = window.getSelection(); | |
| } else if (document.getSelection) { | |
| selectedText = document.getSelection(); |
| <?php | |
| $aliases['tpzdev'] = array( | |
| 'uri' => '192.168.33.10', | |
| 'root' => '/var/www/html', | |
| 'remote-host' => '192.168.33.10', | |
| 'remote-user' => 'vagrant', | |
| 'ssh-options' => '-i /path/to/insecure/vagrantvm/private_key' | |
| ); | |
| select town, count(town) | |
| from user | |
| group by town |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.network "private_network", ip: "192.168.33.33" | |
| config.vm.network :forwarded_port, guest: 22, host: 2223, id: 'ssh' | |
| config.vm.provision "shell", path: "./vagrant_setup.sh" | |
| config.vm.synced_folder "./webroot", "/var/www/html", type: "nfs" | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.memory = "2048" | |
| vb.name = "Virtual Dev Server" | |
| end |
| [xdebug] | |
| xdebug.remote_connect_back=1 | |
| xdebug.remote_enable=1 | |
| xdebug.remote_port=9000 | |
| xdebug.remote_handler=dbgp | |
| xdebug.remote_log="/tmp/xdebug.log" | |
| zend_extension=/usr/lib/php5/20121212/xdebug.so |