(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.
| #! /usr/bin/python | |
| import boto3 | |
| import subprocess | |
| import datetime | |
| import os | |
| now = datetime.datetime.now() | |
| bucket = "dtcorpbackup" | |
| filename = "dump_{}-{:0>2}-{:0>2}_{:0>2}:{:0>2}:{:0>2}.sql".format(now.year, now.month, now.day, now.hour, now.minute, now.second) |
| #! /usr/bin/python | |
| import boto3 | |
| import subprocess | |
| import datetime | |
| import os | |
| import zipfile | |
| import humanize | |
| WORKING_DIR = "/tmp" |
| You can ssh into the VM by finding the IP (from kubectl config view) and using username "docker" password "tcuser": | |
| ssh [email protected] |
(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.
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
| #!/usr/bin/ruby | |
| require 'rss' | |
| # Usage | |
| # $ ./railscasts.rb http://railscasts.com/subscriptions/YOURRAILSCASTRSS/\/ | |
| # episodes.rss | |
| # OR | |
| # $ ./railscasts.rb | |
| p 'Downloading rss index' |