Then add
worker(Redis, []),to your supervision tree
Then add
worker(Redis, []),to your supervision tree
| @doc""" | |
| Returns a map containing all files and their contents from the compressed tar archive. | |
| """ | |
| def extract_tar_from_binary(binary) do | |
| with {:ok, files} <- :erl_tar.extract({:binary, binary}, [:memory, :compressed]) do | |
| files | |
| |> Enum.map(fn {filename, content} -> {to_string(filename), content} end) | |
| |> Map.new | |
| end | |
| end |
| # Dependencies: | |
| # {:httpoison, "~> 1.5"}, | |
| # {:floki, "~> 0.21.0"} | |
| # {:benchee, "~> 1.0"} (Only for benchmarking β not in the script) | |
| defmodule CrawlQueue do | |
| use Agent | |
| def start_link(urls) do |
| #!/bin/bash | |
| # | |
| # originally came from Calomel.org | |
| # https://calomel.org/megacli_lsi_commands.html | |
| # LSI MegaRaid CLI | |
| # lsi.sh @ Version 0.05 | |
| # Edited and optimized by demofly for rotational RAID arrays | |
| # | |
| # description: MegaCLI script to configure an Sound alarm disabled (server room too loud anyways)d monitor LSI raid cards. |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |