Hacker News new | ask | show | jobs
by 1vuio0pswjnm7 756 days ago
There is no single program. It has always been a shell script that runs multiple programs.

At present, a routine search looks like this:

   echo search terms|1.sh > 1.htm
   links 1.htm
links is 1.4 MiB static binary.

The programs used in 1.sh are as follows. All are static binaries.

68K nc

744K busybox (sed)

44K yy025

44K yy030

44K yy032

40K yy044

44K yy045

40K yy073

168K yy084

yy programs are just dumb filters I write that process input from stdin and output formatted text, fast, with low memory usage.

A localhost-bound, forward proxy is also used. This can be up to 9 MiB static binary if I use the latest OpenSSL. Size can be significantly reduced by using alternative TLS libraries.

1.sh currently supports about 40 different search engines.

1 comments

1.sh is 12K