Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

while true ; do | |
for nn in `oc get ns | cut -d' ' -f 1` ; do | |
if `oc get deployments -n $nn | grep -q webserver` ; then | |
oc patch deployment jobrunner --patch '{"spec":{"template":{"spec":{"containers":[{"name":"jobrunner","resources":{"requests":{"memory":"3G"}} }]}}}}' -n $nn | |
oc patch deployment hub-scan --patch '{"spec":{"template":{"spec":{"containers":[{"name":"hub-scan","resources":{"requests":{"memory":"2G"}} }]}}}}' -n $nn | |
echo "now scaling down $nn" | |
oc scale deployment hub-scan --replicas=0 -n $nn |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
(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.
/** | |
* Annotated Gruntfile. | |
* This builds a Backbone/Marionette application using Dust.js (Linkedin fork) as a | |
* templating system, as well as some helpers from Foundation, with Browserify. | |
* It also configures a watcher and static server with live reload. | |
*/ | |
module.exports = function (grunt) { | |
// This automatically loads grunt tasks from node_modules | |
require("load-grunt-tasks")(grunt); |
Find it here: https://github.com/bitemyapp/learnhaskell
/usr/local/heroku/lib/heroku/updater.rb:33: warning: parenthesize argument(s) for future version | |
Uploading SSH public key /Users/y/.ssh/heroku_rsa.pub | |
/usr/local/heroku/vendor/gems/netrc-0.7.1/lib/netrc.rb:79:in `readto': undefined local variable or method `count' for []:Array (NameError) | |
from /usr/local/heroku/vendor/gems/netrc-0.7.1/lib/netrc.rb:85:in `parse' | |
from /usr/local/heroku/vendor/gems/netrc-0.7.1/lib/netrc.rb:20:in `read' | |
from /usr/local/heroku/lib/heroku/auth.rb:92:in `netrc' | |
from /usr/local/heroku/lib/heroku/auth.rb:116:in `read_credentials' | |
from /usr/local/heroku/lib/heroku/auth.rb:59:in `get_credentials' | |
from /usr/local/heroku/lib/heroku/auth.rb:47:in `user' | |
from /usr/local/heroku/lib/heroku/auth.rb:14:in `client' |
< | |
%3C | |
< | |
< | |
< | |
< | |
< | |
< | |
< | |
< |