01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
| - hosts: all | |
| name: test stat output | |
| tasks: | |
| - name: check last change to file | |
| stat: | |
| path: '/etc/fstab' | |
| register: st | |
| - debug: | |
| msg: "File last modified {{ansible_date_time.epoch|int - st.stat.mtime|int }} seconds ago" |
To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.
For example;
docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
| # This gist is compatible with Ansible 1.x . | |
| # For Ansible 2.x , please check out: | |
| # - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
| # - https://github.com/n0ts/ansible-human_log | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
| augroup ansible_yaml | |
| autocmd! | |
| au BufRead playbook.yml,roles/*yml,ansible*yml call SetAnsibleOpts() | |
| augroup END | |
| function SetAnsibleOpts() | |
| syntax match yamlInterpolate '$\w\+\|{{[^}]\+}}' | |
| syntax match yamlInterpolate '$\w\+\|{{[^}]\+}}' contained containedin=yamlString | |
| syntax match yamlConstant '\(with_items\|when\|name\|notify\|ignore_errors\|changed_when\|register\|with_password\):' | |
| endfunction |
| 1033edge.com | |
| 11mail.com | |
| 123.com | |
| 123box.net | |
| 123india.com | |
| 123mail.cl | |
| 123qwe.co.uk | |
| 126.com | |
| 150ml.com | |
| 15meg4free.com |
| # -*- coding: utf-8 -*- | |
| """ | |
| Go to Google Bookmarks: https://www.google.com/bookmarks/ | |
| On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en | |
| After downloading the html file, run this script on it to generate a KML. | |
| """ |
| from datetime import datetime | |
| import calendar | |
| def epoch_to_iso8601(timestamp): | |
| """ | |
| epoch_to_iso8601 - convert the unix epoch time into a iso8601 formatted date | |
| >>> epoch_to_iso8601(1341866722) | |
| '2012-07-09T22:45:22' | |
| """ |