Search found 2812 matches

by sc0ttman
Tue 19 May 2020, 15:32
Forum: Games
Topic: Free games that can work on slow PCs
Replies: 16
Views: 4277

Re: No Steam

Anyway any sugestions? ... Freeciv - strategy game like the all-time classic Civ2 DOOM2 - using DOOM .wad file with a program like zandronium Numpty Physics - physics based puzzle game Cave Story - fantastic old-school 2D platformer Then there is Itch.io - lots of free or paid indie games there... ...
by sc0ttman
Sat 28 Mar 2020, 17:57
Forum: Misc
Topic: Other Distros
Replies: 3058
Views: 1156891

Velocity Linux

Homepage : https://venomlinux.org/ This is a source based distro: most tools written in shell, very nice, clean code Uses its own custom package manager, called scratchpkg : https://venomlinux.org/handbook/book/scratchpkg.html Repo, with all the code, build tools and build scripts for packages is h...
by sc0ttman
Sat 28 Mar 2020, 17:53
Forum: Misc
Topic: Other Distros
Replies: 3058
Views: 1156891

LinuxFromScratch

LinuxFromScratch, with Musl as Libc: https://github.com/dslm4515/Musl-LFS (Musl is a lightweight C library, ideal for building smaller libraries/distros etc) This is based on the works of Linux From Scratch (http://www.linuxfromscratch.org), which use GLibc and SysVinit/systemD. Additional work was ...
by sc0ttman
Thu 26 Mar 2020, 20:11
Forum: Puppy Projects
Topic: Is there interest in an Arch32 Pup???
Replies: 212
Views: 59278

In /usr/local/petget/install_missing.sh, I added the ability to find and add missing sybolic links. See the function link_lib() at: https://pastebin.com/rA0z4BjM I tested this on chromium and it successfully added the missing symbolic link for libre2.so. This function is called when you click on th...
by sc0ttman
Wed 11 Mar 2020, 13:06
Forum: Programming
Topic: Bash unit testing
Replies: 0
Views: 1614

Bash unit testing

Bash-Test A unit testing tool for Bash scripts. There are many alternatives, but this one (IMHO) has the nicest, cleanest, most "bog standard shell" syntax of all the ones I have found Homepage: https://github.com/campanda/bash-test Unit testing lets you check your functions work as expec...
by sc0ttman
Wed 11 Mar 2020, 12:48
Forum: Browsers and Internet
Topic: Tea - the Test Environment Application
Replies: 0
Views: 1253

Tea - the Test Environment Application

Tea a lightweight Test Environment Application ("tea") Homepage: https://github.com/sc0ttj/tea Tea is a software testing suite, similar to tape, jasmine, jest, cypress, etc, but much smaller, more lightweight, and with fewer features. Features - fast, lightweight, minimal code (~4kb minif...
by sc0ttman
Wed 19 Feb 2020, 16:33
Forum: Puppy Projects
Topic: Is there interest in an Arch32 Pup???
Replies: 212
Views: 59278

One thing that I will be testing on arch32pup is Sc0ttman's package manager (i.e. pkg). If we get the repo update scripts working with pkg, then one could use arch repos in any puppy. Replacing PPM with pkg is a possibility - but it still needs repo databases in a sensible format.... Pkg has separa...
by sc0ttman
Wed 19 Feb 2020, 16:26
Forum: Cutting edge
Topic: Surfer html viewer, want to improve it
Replies: 27
Views: 19988

go full webkit

Barry, your blog URLs are not working for me... Site seems down.. --- On another note ... Really, we should get around to compiling a tiny, lightweight WebKit program - just a webkit viewport or "webview" in a window, no menus etc.. Like this: https://github.com/zserge/webview Example usag...
by sc0ttman
Mon 20 Jan 2020, 16:12
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

jamesbond wrote:
sc0ttman wrote:...I really need to go learn how sed actually works.. :oops:
Come on Scott, you don't need to be so modest. I'm still using your sjpplog for my main blog, six years later :D
And I'm still reading it... :D
by sc0ttman
Mon 20 Jan 2020, 16:11
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

It's prettier.js that removes the trailing spaces from the source Markdown.. I disabled it .. I have no clue what you are talking about. What trailing spaces? Trailing spaces in the markdown from which the HTML page is generated. ..Anyway, I spotted other issues Burunduks code has yesterday (not st...
by sc0ttman
Mon 20 Jan 2020, 08:47
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

Yep, this seems to work for me (minifies the HTML Looks wrong to me. Not Burunduk's fault as he probably assumed that you would like all linefeeds removed, except those in <pre> tags, which in well constructed HTML pages would be no problem. In the case of your test page linefeeds have also to be p...
by sc0ttman
Sun 19 Jan 2020, 23:31
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

I completely forgot about the IE conditional comments - they shouldn't be removed, or minified ... Should be ignored.. I can't remember any other caveats... But it does remind me to revisit the conditional comments and go with something a little simpler... EDIT: Yep, this seems to work for me (minif...
by sc0ttman
Sun 19 Jan 2020, 13:18
Forum: Cutting edge
Topic: Pkg - CLI package manager
Replies: 151
Views: 105127

The plugin system is now merged into Pkg You can get the latest from https://gitlab.com/sc0ttj/Pkg/-/archive/master/Pkg-master.tar.gz Plugins must be a shell script ending in .sh (ash, no Bash arrays). If you want your plugin to run for a specific package, put it in: /usr/share/pkg/plugins/<hook>/<...
by sc0ttman
Wed 15 Jan 2020, 21:37
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

I didn't really try anything - it's not my snippet, and already way beyond anything I know about sed (next to nothing)... And a valid test case would be any HTML file from mdsh that contains highlighted code like this one: https://sc0ttj.github.io/mdsh/posts/2019/06/29/adding-support-for-more-embedd...
by sc0ttman
Wed 15 Jan 2020, 19:39
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

This thing nearly does the job, except that it minifies stuff inside <pre> tags.. Which job? Where do you eliminate comments? And what "stuff inside <pre> tags". Do you want to preserve comments inside pre tags? What for? The browser wouldn't show them anyway, so you might delete them as ...
by sc0ttman
Wed 15 Jan 2020, 07:10
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

Re: html minifier in sed

s243a wrote:BTW, why do we need the "div" tags in the above expression?
mdsh/pygments generates divs arounds pre tags.. this minifier is for mdsh.
by sc0ttman
Tue 14 Jan 2020, 20:30
Forum: Programming
Topic: sed scratch pad -- A thread of sed examples
Replies: 51
Views: 11058

html minifier in sed

I'd love to get this working: An HTML minifier... This thing nearly does the job, except that it minifies stuff inside <pre> tags... I would love love love to fix that!! function minify_html { # temp fix to IFS, just in case the hmtl files contain spaces OLD_IFS=$IFS IFS=" " for html_file ...
by sc0ttman
Sun 12 Jan 2020, 16:05
Forum: Cutting edge
Topic: Pkg - CLI package manager
Replies: 151
Views: 105127

plugin support

A new feature, coming soon: Plugin support Code here: https://gitlab.com/sc0ttj/Pkg/merge_requests/28 so far I have created a simple plugin system, with 2 plugins: post_install/wings3d/00-wings3d_installdeps.sh This plugin will install extra deps for wings3d, on Debian-based Pups only. https://i.img...
by sc0ttman
Thu 02 Jan 2020, 22:20
Forum: Programming
Topic: CGI scripts with busybox httpd
Replies: 26
Views: 16875

More tips: Server side includes (SSI) with busybox httpd: https://raw.githubusercontent.com/brgl/busybox/abbf17abccbf832365d9acf1c280369ba7d5f8b2/networking/httpd_ssi.c Compile it with: gcc -static httpd_ssi.c -o httpd_ssi Then in your httpd.conf, put the following: *.html:/bin/httpd_ssi *.htm:/bin/...
by sc0ttman
Thu 02 Jan 2020, 22:18
Forum: HOWTO ( Solutions )
Topic: How to use the Busybox Web Server (httpd)
Replies: 1
Views: 4763

Server side includes with busybox httpd

Just found this the other day: https://raw.githubusercontent.com/brgl/busybox/abbf17abccbf832365d9acf1c280369ba7d5f8b2/networking/httpd_ssi.c Compile it with: gcc -static httpd_ssi.c -o httpd_ssi Then in your httpd.conf, put the following: *.html:/bin/httpd_ssi *.htm:/bin/httpd_ssi You can then use ...