- Remove
register
- Improve error record in try/catch and document with an example
- Adding the code would be helpful
- Add closure argument to
append
,prepend
for adding another stream -
run
for running nushell scripts as if they were blocks - Make
http
commands accept and stream from pipeline input
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
Make row major table: | |
╭──────┬───────────────────╮ | |
│ mean │ 452ms 675µs 108ns │ | |
│ min │ 412ms 552µs 669ns │ | |
│ max │ 525ms 420µs 489ns │ | |
│ std │ 30ms 356µs 567ns │ | |
╰──────┴───────────────────╯ | |
Make column major table: | |
╭──────┬──────────────────╮ | |
│ mean │ 36ms 469µs 823ns │ |
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
# stream plugin | |
stream_example seq 1 10 | |
stream_example seq 1 10 | describe | |
seq 1 10 | stream_example sum | |
stream_example seq 1 10000 | stream_example sum | |
[foo bar baz] | stream_example collect | |
[foo bar baz] | stream_example collect | describe | |
# engine calls (wip) | |
seq 1 5 | stream_example for-each { $in * 2 } |
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
# Replace environment variables in a string. Accepts $VAR and ${VAR} syntax. Handles $PATH. | |
export def "str replace-env" [ | |
--overlay: record = {} # Use this record as an overlay over the environment | |
] { | |
# Replace PATH first, from overlay if it exists | |
let in_string = $in | str replace --all --regex '\$PATH|\$\{PATH\}' ( | |
$overlay.PATH? | default $env.PATH | str join (char esep) | |
) | |
# Parse env variables and look them up in $env | |
($in_string | |
Nushell plugins must be an executable file with a filename starting with nu_plugin_
. All
interaction with the plugin is handled over standard input (stdin) and output (stdout). Standard
error (stderr) is not redirected, and can be used by the plugin to print messages directly.
Plugins are always passed --stdio
as a command line argument. Other command line arguments are
reserved for options that might be added in the future, including other communication methods.
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
error: failed to run custom build command for `ring v0.16.20` | |
Caused by: | |
process didn't exit successfully: `/tmp/sccache/target/release/build/ring-4ff7b7bafeb544fd/build-script-build` (exit status: 101) | |
--- stderr | |
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/riscv/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/build.rs:358:10 | |
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | |
warning: build failed, waiting for other jobs to finish... | |
error: build failed |
See gist about kernel options
Compiling kernel:
export ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
make -j32
make -j32 INSTALL_MOD_PATH=system_out modules_install
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
options zfs zfs_arc_max=8589934592 | |
options zfs zfs_vdev_aggregation_limit=2097152 | |
options zfs zfs_vdev_aggregation_limit_non_rotating=2097152 | |
options zfs zfs_vdev_sync_read_max_active=256 | |
options zfs zfs_vdev_sync_write_max_active=256 | |
options zfs zfs_vdev_sync_read_min_active=8 | |
options zfs zfs_vdev_sync_write_min_active=8 | |
options zfs zfs_vdev_async_read_max_active=16 | |
options zfs zfs_vdev_async_read_min_active=2 |
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::cmp::Ordering; | |
trait Keyed<'a> { | |
type Key: 'a + Eq + Ord; | |
fn key(&'a self) -> Self::Key; | |
} | |
#[derive(Debug, Clone)] | |
struct TypeA { |
NewerOlder