-
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
- Delete all untagged images
| #!/bin/bash | |
| ## Assuming Linux Mint 18. Should also mostly work with Ubuntu 16.04 | |
| ## Installing .deb packages could be done in a single go if I added the | |
| ## necessary repositories beforehand but this way the script is more | |
| ## modular and I can comment out any sections if I want to. | |
| ## TODO: install Prey | |
| ## TODO: Rewrite this with Salt/Ansible? |
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
| import android.util.Log; | |
| import java.text.MessageFormat; | |
| /* | |
| * Copyright 2015 Dor Sakal | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # | |
| # PREDICTING LONG TERM CUSTOMER VALUE WITH BTYD PACKAGE | |
| # Pareto/NBD (negative binomial distribution) modeling of | |
| # repeat-buying behavior in a noncontractual setting | |
| # | |
| # Matthew Baggott, [email protected] | |
| # | |
| # Accompanying slides at: | |
| # http://www.slideshare.net/mattbagg/baggott-predict-customerinrpart1# | |
| # |
| # | |
| # PREDICTING LONG TERM CUSTOMER VALUE WITH BTYD PACKAGE | |
| # Pareto/NBD (negative binomial distribution) modeling of | |
| # repeat-buying behavior in a noncontractual setting | |
| # | |
| # Matthew Baggott, [email protected] | |
| # | |
| # Accompanying slides at: | |
| # http://www.slideshare.net/mattbagg/baggott-predict-customerinrpart1# | |
| # |
| /** | |
| * A script to automate requesting data from Google Analytics. | |
| * | |
| * @author [email protected] (Nick Mihailovski) | |
| */ | |
| /** | |
| * The name of the configration sheet. | |
| * And various parameters. |
| ''' | |
| to make this work you need to have Open-Knesset source and latest db file | |
| from the shell type:: | |
| $ python manage.py shell_plus | |
| In [1]: ed tomer.py | |
| ''' | |
| import json, urllib2 | |
| votes=[6904,7454,6786] |