Signal drop!
Relay (operand.online) is unreachable.
Usually, a dropped signal means an upgrade is happening. Hold on!
Sorry, no connección.
Hang in there while we get back on track
gram:build
> ./config/nushell/program.nu
Lenses
(coming soon!)
def phx [] { mix phx.server; }
def book [] { nsh livebook livebook start_iex }
def panel [] { firefox 'about:debugging#/runtime/this-firefox' }
def muse --wrapped [ ...call ] {
nsh spotify-player $"spotify_player ($call | str join ' ')"; }
def elementary [program: string] {
nsh $"pantheon.elementary-($program)" $"io.elementary.($program)" }
def pad [name:string] { (padloc $name).0.passcode }
def padloc [ name?: string] {
let node = "~/padloc.csv" | path expand
if ($name | is-empty) { hx $node; return }
cat $node | from csv --flexible -s ',' -q '"' -c '#' --trim all | each {
let r = values | each { str trim | str replace -r '^"' '' | str replace -r '"$' '' }
{ name: $r.0, domain: $r.1, login: $r.2, passcode: $r.3 }
} | where domain =~ $name
}
def ex --wrapped [...call] { nsh exercism exercism ...$call }
def "ex up" [lang: string] {
(ls ([ ~ base code exercise $lang ] | path join | path expand) |
sort-by modified | last).name }
def "daily burn" [] {
firefox 'https://exercism.org/tracks/rust/exercises'
firefox 'https://sam.gov/search/?page=1&pageSize=100&sort=-modifiedDate&sfm%5BsimpleSearch%5D%5BkeywordRadio%5D=ALL&sfm%5BsimpleSearch%5D%5BkeywordTags%5D%5B0%5D%5Bkey%5D=%22house%20of%20representatives%22&sfm%5BsimpleSearch%5D%5BkeywordTags%5D%5B0%5D%5Bvalue%5D=%22house%20of%20representatives%22&sfm%5Bstatus%5D%5Bis_active%5D=true&sfm%5Bstatus%5D%5Bis_inactive%5D=true&sfm%5BagencyPicker%5D%5B0%5D%5BorgKey%5D=300000003&sfm%5BagencyPicker%5D%5B0%5D%5BorgText%5D=000%20-%20HOUSE%20OF%20REPRESENTATIVES,%20THE&sfm%5BagencyPicker%5D%5B0%5D%5BlevelText%5D=Dept%20%2F%20Ind.%20Agency&sfm%5BagencyPicker%5D%5B0%5D%5Bhighlighted%5D=true'
}
def daily [ place: path, ...labels: string ] {
let day = bash -c "date -I"
let name = [ $day ...($labels) md ] | str join "."
let node = ([ $place $name ] | path join | path expand)
ch $node; cap $node
code c -m $"[daily] [($place)] ($day) - ($labels | str join ".")"
}
def mag [mag:string] {
nsh transmission transmission-cli -u 0 -w ~/media/dispossess/magnesis $mag
}