Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1b - Decimal:
27
| (* | |
| Interactive approach | |
| -------------------- | |
| You can copy-paste code into `utop`, provided you load the lwt.unix | |
| package: | |
| #use "topfind";; | |
| #thread;; (* only needed in the plain `ocaml` toplevel, not in `utop`. *) | |
| #require "lwt.unix";; |
In order to deploy using SSH, we need a SSH keypair. Please use an algorithm strong enough and also supported by GHA and your remote host.
You can use the command below to generate a keypair:
ssh-keygen -t ed25519 -C gha@vm-YourLogin -f ~/.ssh/id_gha
For this use case, don't use a passphrase (just type Return to select an empty passphrase).
| #!/usr/bin/env python3 | |
| """ | |
| License: MIT License | |
| Copyright (c) 2023 Miel Donkers | |
| Very simple HTTP server in python for logging requests | |
| Usage:: | |
| ./server.py [<port>] | |
| """ | |
| from http.server import BaseHTTPRequestHandler, HTTPServer |
From N1256: (See http://port70.net/~nsz/c/c99/n1256.html#J.2)
main using one of the specified forms (5.1.2.2.1).| #!/bin/bash | |
| usage=" | |
| Usage: | |
| wall [options] [message] | |
| Write a message to all users. | |
| Options: | |
| -n, --nobanner do not print banner |
| (* val type_ : Yojson.Safe.t -> [ `Plan | `State | `Unknown ] *) | |
| let type_ json = | |
| let module Plan = struct | |
| type t = { | |
| terraform_version : string; | |
| planned_values : Yojson.Safe.t; | |
| } | |
| [@@deriving of_yojson { strict = false }] | |
| end in |