OpenTracing == traces ( jaeger/tokio-tracing )
OpenCensus == metrics ( grafana/prometheus )
OpenTelemetry == traces && metrics ( et al. )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local read_buf = function(bufnr) | |
local bufin = table.concat(vim.api.nvim_buf_get_lines(bufnr, 0, -1, true), "\n") | |
if vim.api.nvim_get_option_value("eol", { buf = bufnr }) then bufin = bufin .. "\n" end | |
return bufin | |
end | |
local format_buf = function(fmt_cmd) | |
-- exit early if buffer is not writeable | |
if vim.bo.modifiable == false or vim.bo.readonly == true then return end | |
-- save cursor position |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn = 48; | |
function line(point1, point2, width = 1) = | |
let(angle = 90 - atan((point2[1] - point1[1]) / (point2[0] - point1[0]))) | |
let(offset_x = 0.5 * width * cos(angle), offset_y = 0.5 * width * sin(angle)) | |
let(offset1 = [-offset_x, offset_y], offset2 = [offset_x, -offset_y]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_export] | |
macro_rules! record { | |
($($fields:tt)+) => { | |
let fieldset = tracing::fieldset!($($fields)+); | |
$crate::valueset!(fieldset, $($fields)+); | |
}; | |
} | |
#[macro_export] | |
macro_rules! valueset { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include <relativity.scad/relativity.scad> | |
$fn = 20; | |
module base() { | |
minkowski() { | |
box([30, 80, 4]); | |
cylinder(0.5, r = 4); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{future::Future, time::Duration}; | |
use bigerror::{LogError, NetworkError, OptionReport, Report, ReportAs, ResultExt}; | |
use futures::{future, pin_mut}; | |
use stream_cancel::TakeUntilIf; | |
use tokio::{ | |
sync::mpsc::{UnboundedSender, WeakUnboundedSender}, | |
task::JoinHandle, | |
}; | |
use tokio_stream::wrappers::UnboundedReceiverStream; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
join_files() { | |
local input_n=() | |
local scale_to_n=("$SEP") | |
local concat_n=() | |
for i in $(seq $#); do | |
input_n+=("-i ${!i}") | |
((n = i - 1)) |
Variable | Description | Example |
---|---|---|
CI |
Always set to true |
|
GITHUB_ACTION |
The name of the action currently running | |
GITHUB_ACTION_PATH |
The path where an action is located, only supported in composite actions. | /home/runner/work/_actions/repo-owner/name-of-action-repo/v1 |
GITHUB_ACTION_REPOSITORY |
The owner and repository name of the action. | actions/checkout |
GITHUB_ACTIONS |
Always set to true when GitHub Actions is running the workflow. |
|
GITHUB_ACTOR |
The name of the person or app that initiated the workflow. | octocat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$comment": "https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions", | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"additionalProperties": false, | |
"definitions": { | |
"architecture": { | |
"type": "string", | |
"enum": [ | |
"ARM32", | |
"x64", |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
NewerOlder