interesting sites and commands

 Got into Ruby with tiny Prog in screen:

Btop is a command line hardware monitor.

lynx is a command line browser

curl wttr.in/dunedin for weather




$ cowsay

prjbrook@DESKTOP-FGA8Q4U:/usr/bin$ ls -l p* | more

(gets all the files in usr/bin that start with p. Links are in blue.


Above is dc. The oldest (?) unix app.Like a forth stack. 

dc is the oldest surviving Unix language program. When its home Bell Labs received a PDP-11, dc—written in B—was the first language to run on the new computer, even before an assembler.[2] Ken Thompson has opined that dc was the very first program written on the machine.[5]

Printing all prime numbers

[edit]
echo '2p3p[dl!d2+s!%0=@l!l^!<#]s#[s/0ds^]s@[p]s&[ddvs^3s!l#x0<&2+l.x]ds.x' | dc

This program was written by Michel Charpentier. It outputs the sequence of prime numbers. Note that shorter implementation is possible, which reads fourteen symbols less.

echo '2p3p[pq]s$[l!2+ds!l^<$dl!%0<#]s#[+dvs^1s!l#x2l.x]ds.x' | dc

Integer factorization

[edit]
dc -e '[n=]P?[p]s2[lip/dli%0=1dvsr]s12sid2%0=13sidvsr[dli%0=1lrli2+dsi!>.]ds.xd1<2'

$ telnet towel.blinkenlights.nl

ukyiyhjhhkkk,jhgjghjyk
kkkk
kk

Comments

Popular posts from this blog

Reading LittleFS file into buffer for sending

ESP32 buttons and bouncing