Target for maximum number of vnodes
Maximum number of files
Current secure level
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "net" | |
| "net/http" | |
| "net/url" | |
| "crypto/tls" |
| #!/usr/bin/env escript | |
| %% | |
| %% | |
| -mode(compile). | |
| -compile(export_all). | |
| main([Port]) -> | |
| {ok, _} = application:ensure_all_started(ssh), |
| #!/usr/bin/perl -w | |
| # recover rsyslog disk queue index (.qi) from queue files (.nnnnnnnn). | |
| # | |
| # See: | |
| # runtime/queue.c: qqueuePersist() | |
| # runtime/queue.c: qqueueTryLoadPersistedInfo() | |
| # | |
| # [email protected] 2012-03-14 | |
| # | |
| use strict; |
| set background=dark | |
| hi clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif | |
| let colors_name = "kraihlight" |
| (streams | |
| (with {:service "heartbeat" :ttl 120 } (index)) | |
| (where (service "heartbeat") | |
| (by :host (...)))) |
I typically wrap all these commands into a shell script that I can reuse, but here they are in steps.
Please read through all the instructions before actually performing the commands, just to avoid any surprises
Requirements:
| defmodule Config do | |
| @moduledoc """ | |
| This module handles fetching values from the config with some additional niceties | |
| """ | |
| @doc """ | |
| Fetches a value from the config, or from the environment if {:system, "VAR"} | |
| is provided. | |
| An optional default value can be provided if desired. |
| #!/usr/bin/env escript | |
| %%% This script converts an arbitrary binary file to an Erlang module with a | |
| %%% single exported 'bin/0' function that returns the original binary. | |
| %%% | |
| %%% See the end of the file for how I figured out the correct terms. | |
| main(["+debug_info" | Files]) -> | |
| io:format("Embedding binaries with debug_info...\n"), | |
| lists:foreach(fun(X) -> embed_file_in_beam(X, [debug_info]) end, Files); |