Skip to content

Instantly share code, notes, and snippets.

View fdncred's full-sized avatar

Darren Schroeder fdncred

View GitHub Profile
@fdncred
fdncred / redirection.md
Last active September 1, 2023 11:57
redirection in nushell

Redirection

Notes

  • Where you see o it means stdout.
  • Where you see e it means stderr.
  • Where you see a it means append.
  • These are all commands, which shouldn't incur parser changes. However, people could find the first 6 strange having the pipe then the redirect.

| command name | stdout | stderr | stdout | stderr | existing file | example usage |

@fdncred
fdncred / 159-build-times.md
Last active February 24, 2022 19:54
build-times

Windows

[profile.release]
opt-level = "s"
> cargo b --features=extra --release
build time = 6m 29s
@fdncred
fdncred / bytes_and_bits.md
Last active August 4, 2022 02:14
new nushell commands
@fdncred
fdncred / defs.nu
Last active September 9, 2025 18:15
nushell config files
# check for env var exists
# "FOO" | env exists?
def "env exists" [] {
each {|s| $s in (env).name }
}
let bn = (ansi { fg: '#ffffff' bg: '#000000' })
let bb = (ansi { fg: '#ffffff' bg: '#555555' })
let rn = (ansi { fg: '#ffffff' bg: '#AA0000' })
let rb = (ansi { fg: '#ffffff' bg: '#FF5555' })
@fdncred
fdncred / desktop.gitconfig
Last active March 22, 2023 13:29
Git Configuration
[user]
name = Darren Schroeder
email = [email protected]
[credential]
helper = wincred
[url "https://"]
insteadOf = git://
[http]
# proxy = http://10.242.47.107:9191
sslVerify = true
@fdncred
fdncred / datatypes.md
Last active October 21, 2023 20:25
Nushell DataTypes

Data Types and How to create them

Validation

You can validate any of these methods to create by using the describe command or the debug --raw command.



Nushell Primitives to Traditional DataTypes

@fdncred
fdncred / 2020_09_08_lenovo.html
Last active February 24, 2022 19:37
nushell build times
<html>
<head>
<title>Cargo Build Timings — nu 0.19.0</title>
<meta charset="utf-8">
<style type="text/css">
html {
font-family: sans-serif;
}