Bookmarks and CGI in Bash

I created a URL shortner and bookmark CGI script...in Bash! Because who doesn't love making their own version of free services just for the heck of it?

=> Github Repo - bookmark.sh

The code is all contained in a single Bash script. The page it generates has a small amount of CSS built into it but for the most part it generates an HTML file with little to no Javascript. This way the page loads in any browser.

Including terminal browsers

The script provides both a URL Shortner for public use and a bookmark manager for users.

=> Main Page

All the pages are very simple. When the link is loaded it automatically jumps if javascript is available and provides a link for simple browsers.

=> Expanding

Users have additional options to edit and delete links. Eventually you'll be able to tag them and search.

=> User Page

All configuration is stored in the script. The database is stored as a flat text files which makes it easy to backup an manipulate. Adding users is as simple as running the script from command line with a few arguments. Instructions for using the script are found on the readme in the [Github Repo][2].

I also have a public instance running for shorting at [sh0.xyz][1].

=> bookmark.sh [1] | Source code [2]

$ date: 2017-05-17 18:43 $

$ tags: projects, bash $

-- CC-BY-4.0 jecxjo 2017-05-17

=> Comments? | back

Proxy Information
Original URL
gemini://gemini.sh0.xyz/log/2017-05-17-bookmarks-and-cgi-in-bash.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
411.349321 milliseconds
Gemini-to-HTML Time
0.605877 milliseconds

This content has been proxied by September (ba2dc).