#!/bin/sh
echo "
Source Code Repositories
"
echo " Stuff I wrote or regularly contribute to
"
echo ""
echo " "
echo " Repository | "
echo " Description | "
echo "
"
curl -s \
"https://git.uugrn.org/api/v1/repos/search?uid=1&sort=updated" \
| jq -r '.data[] | .clone_url, .name, .description' \
| awk '
NR % 3 == 1 { printf(" \n ", $0); }
NR % 3 == 2 { printf("%s | \n", $0); }
NR % 3 == 0 { printf(" %s | \n
\n", $0); }
'
echo "
"
# #!/bin/sh
#
# _distpath="$PWD/www/distfiles"
# mkdir -p "$_distpath"
#
# _repopath="/home/sdk/www/repo"
#
# out() { printf ' %s%s\n' "$1"; }
#
#
# repo() {
# NAME="$1"
# LINK="$2"
# DESC="$3"
# out " "
# out " $NAME | "
# out " $DESC | "
# out "
"
# }
#
# out ""
# out " "
# out " Repository | "
# out " Description | "
# out "
"
#
#
# repo "xpick" "https://github.com/c0dev0id/xpick" "Command line color picker with hex, xterm and rgb support"
# repo "mkpicindex" "https://github.com/c0dev0id/mkpicindex" "Image gallery generator with shell tools (static + js version)"
# repo "luakit" "https://github.com/luakit/luakit" "Fast, small, webkit based browser framework extensible by Lua"
# repo "mystuff" "https://github.com/c0dev0id/mystuff" "My OpenBSD ports"
# repo "dotfiles" "https://github.com/c0dev0id/dotfiles" "My Dotfiles"