# Run a web server in one line of Powershell

November 22, 2022

Here’s how to serve a static single page website in one line of Powershell.

while(1) { cat index.html | nc -w1 -l -p 8080 }


Where index.html is the file you want to serve, in your current working directory. Open a browser to http://localhost:8080 to see the “website”.

This . . .

# Cowsay in Powershell

August 23, 2022

I’ve been working on a command-line installer for Windows called Scoop, and I wanted to have some interesting programs to demo it with. Cowsay seemed like an obvious choice.

 ------------
< Try Scoop! >
------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| . . .

# Figlet in Go

August 10, 2022

I’ve just finished porting Figlet to the Go programming language. Figlet is a program originally written in 1991 that prints out large ASCII-art letters from the plain text you provide, e.g:

 , _ _
/| | | | | | |
|___| _ | | | | __ |
| |\|/ |/ |/ / \_|
| |/|__/|__/|__/\__/ o

. . .

# Sudo for Windows

August 10, 2022

You know how you get this sort of permission error in Windows console?

PS> mkdir "c:\program files\new"


And you know how the ‘solution’ is to start up a whole new console with Start > [program] > Right-click > ‘Run as . . .

# Rust on Windows

August 10, 2022

The other day I wanted to try Rust on Windows but found it wasn't very straightforward.

I downloaded the GUI installer, clicked through it, typed rust, and got nothing but an exit code of -1073741515. Returning to the quick start I saw a note that I hadn't noticed the first time, mentioning that I need MinGW as well. But, . . .

# This blog has moved

August 07, 2022

This blog has moved to smalltech.com.au/blog.

# Busybox for Windows

### Common Unix utilities for Windows in one small executable

January 11, 2014

From the Busybox website:

Busybox combines tiny versions of many common UNIX utilities into a single small executable. [...] The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, [they] behave very much like their GNU counterparts. (read more)

Busybox is used mainly in . . .