docker rmi -f $(docker images -f "dangling=true" -q)
Docker remove all dangling volumes (Example)
docker volume ls -q -f dangling=true
docker rmi -f $(docker images -f "dangling=true" -q)
Docker remove all dangling volumes (Example)
docker volume ls -q -f dangling=true
| <?php | |
| function my_custom_fields_rest_support( $post ) { | |
| $custom = get_post_meta($post['id']); | |
| $fields = array(); | |
| foreach($custom as $key=>$value) { | |
| // Assuming Types - could be other Custom Field Types | |
| if(substr($key, 0, 5) == 'wpcf-'){ | |
| $fields[str_replace('wpcf-', '', $key)] = $value; | |
| } | |
| } |
| { | |
| "name": "babel", | |
| "version": "1.0.0", | |
| "description": "Website ", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "vendor-js": "mkdirp ./public/js/ && browserify -r VENDOR_DEPENDENCIES | uglifyjs > ./public/js/vendor.js", | |
| "browserify-js": "mkdirp ./public/js/ && browserify --debug -t [babelify --presets [ es2015 ] ] -t brfs -x VENDOR_DEPENDENCIES ./src/index.js --standalone pictoGraphic > ./public/js/pictoGraphic.js", | |
| "process-sass": "mkdirp ./public/css/ && node-sass ./src/sass/main.scss ./public/css/main.css", |
| '.platform-darwin atom-text-editor': | |
| 'cmd-alt-down': 'editor:duplicate-lines' | |
| 'cmd-d': 'editor:delete-line' | |
| 'cmd-shift-w': 'tabs:CloseAllTabs' | |
| 'cmd-?': 'sublime-block-comment:toggle' | |
| 'cmd-alt-l': 'linter:togglePanel' | |
| 'alt-down': 'editor:move-line-down' | |
| 'alt-up': 'editor:move-line-up' | |
| 'cmd-l': 'go-to-line:toggle' |
| [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 |
| 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 |
| select town, count(town) | |
| from user | |
| group by town |
| <?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' | |
| ); | |
| 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(); |