Skip to content
0:00 / 0:00

#emacs#org-mode#babel

Literate Devops with Emacs

Howard Abrams

4.3K subscribers • 4 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

104K views11 years ago11 recommendations

Tools and practiceCloud and DevOpsVim, Emacs and editorsTerraform and infrastructure as code

Howard Abrams demonstrates how to use Emacs Org-mode, Babel, and Tramp to configure and operate remote servers from a single document.

A demonstration originally given at EmacsConf 2015 that describes how I use org-mode's Babel project and Tramp to configure and work with remote servers in my data center, prior to copying code off into Chef cookbooks and whatnot. * My initial essay that started this presentation: howardism.org/Technical/Emacs/literate-devops.html * Github that contains the demonstration code and results Sprint Page: github.com/howardabrams/literate-devops-demo * Emacs code used to make this demonstration: github.com/howardabrams/demo-it * My Emacs configuration files: github.com/howardabrams/dot-files

Why it's here

11 people recommend this

What people say. Engineers recommend this as an inspiring demonstration of literate programming applied to system administration and DevOps workflows.

u/maufdezin r/emacs • Recommends

Literate Devops with Emacs

u/aaronchallin r/emacs • Recommends

Literate Devops with Emacs - Sep 1, 2015

pxcon Hacker News • Recommends

On “Emacs is my new window manager”

This is the blog of Howard Abrams, who also has a great YouTube channel full of Emacs demos and tutorials. His video on literate programming for DevOps via Emacs' Org-mode was very impressive and inspiring to me. It's my favorite. :) link to this video

brudgerson Hacker News • Recommends

On “Emacs Artist Mode”

Emacs org-mode supports a lot of languages 1 and you can mix and match within a file. Howard Abrams literate devops is an interesting example of what org-mode code blocks can do. 23 Org-mode also allows embedding images or source blocks in languages like LaTeX that resolve to rendered images. 1: link 2: link 3: link to this video

julienchastangon Hacker News • Recommends

On “Worg, the Org-Mode Community”

…ut of if there are problems. Finally, I run emacs within docker which allows me to freeze dry and rehydrate environments that are completely under my control so that I don’t encounter problems with a changing environment either. Here is my literate org-babel .emacs, if interested 2 (I don’t have the Dockerfile on github, yet, unfortunately.) 1 link to this video 2 link…

julienchastangon Hacker News • Recommends

On “Org-Mode for Writing: Structure and Focus”

I could go on and on about the benefits of org. And the org-Babel full fledged literate programming environment is another game changer. I used org for a scientific conference I attended recently. From one org file, I could provision a VM in the cloud and get various Docker containers running via tangling with plenty of human friendly exposition. (See tramp mode too.) I could then export that file as an extended abstract via Latex export (conforming to the conference formatting guidelines) and also produce attractive HTML (see ReadTheOrg). Also checkout this literate devops video: link to this video

deerpigon Hacker News • Recommends

On “What Is a Computational Essay?”

Literate programing is used to tangle text and code. You tangle the document and the code blocks are pulled out to create a working program. But Orgmode's Babel, iPython and Wolfram's Computational Essays are literate computing, with code being executed in the document. Howard Abrams has extended the concept to create literate devops ( link to this video ) using orgmode babel where the code in the document is used to configure software running on local or remote servers. I use Babel as part of my daily workflow. Very cool stuff.

unhammeron Hacker News • Recommends

On “ZSH, tmux, Emacs and SSH: A copy-paste story”

All these workarounds sound like a reason to use start using tramp more (apropos, link to this video / link is a pretty neat demo of combining org-babel and tramp). ----- There is also emamux, which seems to be able to copy from tmux: link

ScarZyon Hacker News • Recommends

On “Remote Only”

This is the main reason I want to try and learn Emacs, OrgMode, and Babel. The stuff that Howard Abrahams discusses on the below video is something I think would be highly successful in a remote environment. Documenting your workflow as you go, including commands and output, then emailing it to your team that day or uploading it to a document store/gitbook: link to this video

elviejoon Hacker News • Recommends

On “Ask HN: What do you use to write documentation? LaTeX? Word? Markdown?”

Org-mode in Emacs. Because it enables to do literate programming. In this video 0 by Howard Abrahams you can see how to wave the instructions and the execution of them with Emacs. Another advantage is that you can mix your diagrams (in plantuml or ASCII art) with your code, in the same org-mode file. Gitub displays .org files the same way it does Markdown. 0 link to this video

kkfxon Hacker News • Recommends

On “A Dotfile History”

…that's a heavy and horrid mess, I re-tried it few years ago when I see it in action and was at that point in time that I realize it's power. Emacs is one-tool one-job BUT the tool is just a function and functions can be combined like unix commands in pipes but in far more powerful manner and with far less overhead. Try seeing this: link or this link to this video the real issue when starting without a friend of video-tutorials is that Emacs defaults are barebone and really old, the juicy things come only when you discover them. The power of Emacs is not much Emacs itself but the classic desktop paradigm: anything is integrated so anything can be combined. You type some math in a mail? Why not have i…

nickon Lobsters • Recommends

Literate DevOps with Emacs

u/justrajdeepin r/vim • Mentions

Literate DevOps with Vim Hi Just saw this was wondering if something similar is there in vim? ================================================================= UPDATE: i found 2 vim org mode plugins 1 and 2 but i am mostly looking for org-babel which seems not so readily available for vim.

u/Far-Anywhere2876in r/emacs • Mentions

How do I get a left pointer for file searching and interactive commands? I saw this video where at one point he goes through his buffer list and has a visible pointer to the item currently selected. pointer How do I get this too?

txgvnnon Hacker News • Mentions

On “Literate programming tool for any language”

If you are interested with Literate programming, you should try Emacs. Some packages are org-mode, eev and even elisp are best for literate programming. Example link to this video

brudgerson Hacker News • Mentions

On “Ask HN: What clever tools/scripts do you use to manage development environments?”

managing infrastructure services Immediately reminded me of this (which I am no where near clever enough to use): link to this video