This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
box = 'ubuntu/trusty64' | |
hostname = 'emberclibox' | |
domain = 'example.com' | |
ip = '192.168.42.42' | |
ram = '512' | |
$rootScript = <<SCRIPT |
defmodule Threes do | |
def right(board) do | |
board | |
|> Enum.map(&pack/1) | |
end | |
def left(board) do | |
board | |
|> Enum.map(&reverse_pack/1) |
:ssh.start | |
{:ok, cref} = :ssh.connect('10.55.3.1', 22, [{:user, 'user'}, {:password, 'password'}]) | |
{:ok, cid} = :ssh_connection.session_channel(cref, 5000) | |
:ssh_connection.exec(cref, cid, String.to_char_list("show ver | xml | no-more"), 3000) | |
#:ssh_connection.exec(cref, cid, String.to_char_list("show core"), 3000) | |
# need to do a receive on the cref(pid) | |
#flush() -- useful to find out what the result will look like | |
receive do | |
{:ssh_cm, _, {:data, _, _, d}} -> IO.puts d | |
end |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}