go-go-labs

module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2025 License: MIT

README

GO GO LABS

 _______  _______    _______  _______    ___      _______  _______  _______ 
|       ||       |  |       ||       |  |   |    |   _   ||  _    ||       |
|    ___||   _   |  |    ___||   _   |  |   |    |  |_|  || |_|   ||  _____|
|   | __ |  | |  |  |   | __ |  | |  |  |   |    |       ||       || |_____ 
|   ||  ||  |_|  |  |   ||  ||  |_|  |  |   |___ |       ||  _   | |_____  |
|   |_| ||       |  |   |_| ||       |  |       ||   _   || |_|   | _____| |
|_______||_______|  |_______||_______|  |_______||__| |__||_______||_______|

Assorted software ideas that might mean something or not. Some of them will turn into proper tools, the rest is just temporary garbo.

Useful:

  • cmd/excel2json - does what it says
  • cmd/gtm - extract and represent data about variables, triggers and tags from a google tag manager container
  • cmd/mastoid - download and render conversation threads from mastodon for archival

Experiments:

  • cmd/aipl - try to parse the AIPL language as a frontend for geppetto
  • cmd/monads - experiment with different monads in golang
  • cmd/weave - interface to the weaviate database

WIP:

  • reggie - run regexps against text files

Installation

an ai generated skselton with muscles made out of plants

To install the mastoid command line tool with homebrew, run:

brew tap go-go-golems/go-go-go
brew install go-go-golems/go-go-go/go-go-labs

To install the mastoid command using apt-get, run:

echo "deb [trusted=yes] https://apt.fury.io/go-go-golems/ /" >> /etc/apt/sources.list.d/fury.list
apt-get update
apt-get install go-go-labs

To install using yum, run:

echo "
[fury]
name=Gemfury Private Repo
baseurl=https://yum.fury.io/go-go-golems/
enabled=1
gpgcheck=0
" >> /etc/yum.repos.d/fury.repo
yum install go-go-labs

To install using go get, run:

go get -u github.com/go-go-golems/go-go-labs/cmd/mastoid

Finally, install by downloading the binaries straight from github.

Usage

Registering an app

Before starting to use mastoid, you need to register an app against your server and obtain an access token (replace https://hachyderm.io/ with your server):

❯ mastoid register --server https://hachyderm.io/
App registration successful!
Client ID: FOO
Client Secret: BAR
Auth URI: ...
Redirect URI: urn:ietf:wg:oauth:2.0:oob
Grant Token: ...
Access Token: ...
Website: 
Name: mastoid
Grant Token: ...
Access Token: ...

This will create a ~/.mastoid/config.yaml file storing all your credentials.

Downloading a thread

To download a mastodon thread, run:

❯ mastoid thread -s https://hachyderm.io/@mnl/110838692946216618 --output markdown 
> Author: mnl (2023-08-05 15:13:35.024 +0000 UTC)
> URL: https://hachyderm.io/@mnl/110837656126482103
> Author URL: https://hachyderm.io/@mnl
> 
> guess i'm gonna do evernote to obsidian export/import in hard mode under linux. wish me luck...
> #obsidian #evernote
> 
> > Author: mnl (2023-08-05 19:37:15.635 +0000 UTC)
> > 
> > test
> > 
> > > Author: mnl (2023-08-05 19:37:41.649 +0000 UTC)
> > > 
> > > test1.3
> > > 
> > > > Author: neingeist@mastodon.social (2023-08-05 19:39:00 +0000 UTC)
> > > > 
> > > > @mnl test1.4
> > > > 
> > > > > Author: mnl (2023-08-05 19:44:12.18 +0000 UTC)
> > > > > 
> > > > > @neingeist test1.4.1
> > > > > 
> > > Author: mnl (2023-08-05 19:37:30.627 +0000 UTC)
> > > 
> > > test1.2
> > > 
> > > > Author: mnl (2023-08-05 19:41:24.651 +0000 UTC)
> > > > 
> > > > test2.1
> > > > 
> > > Author: mnl (2023-08-05 19:37:23.793 +0000 UTC)
> > > 
> > > test1.1
> > > 

You can use text, markdown or json for the output (HTML is not implemented yet).

Private thread download is still in WIP.


 _______  _______    _______  _______ 
|       ||       |  |       ||       |
|    ___||   _   |  |    ___||   _   |
|   | __ |  | |  |  |   | __ |  | |  |
|   ||  ||  |_|  |  |   ||  ||  |_|  |
|   |_| ||       |  |   |_| ||       |
|_______||_______|  |_______||_______|
 _______  _______  ___      _______  __   __  _______ 
|       ||       ||   |    |       ||  |_|  ||       |
|    ___||   _   ||   |    |    ___||       ||  _____|
|   | __ |  | |  ||   |    |   |___ |       || |_____ 
|   ||  ||  |_|  ||   |___ |    ___||       ||_____  |
|   |_| ||       ||       ||   |___ | ||_|| | _____| |
|_______||_______||_______||_______||_|   |_||_______|
 _______  __   __  ___   ___      ______  
|  _    ||  | |  ||   | |   |    |      | 
| |_|   ||  | |  ||   | |   |    |  _    |
|       ||  |_|  ||   | |   |    | | |   |
|  _   | |       ||   | |   |___ | |_|   |
| |_|   ||       ||   | |       ||       |
|_______||_______||___| |_______||______| 
 ___      _______  _______  _______    _______  _______ 
|   |    |   _   ||  _    ||       |  |       ||       |
|   |    |  |_|  || |_|   ||  _____|  |_     _||   _   |
|   |    |       ||       || |_____     |   |  |  | |  |
|   |___ |       ||  _   | |_____  |    |   |  |  |_|  |
|       ||   _   || |_|   | _____| |    |   |  |       |
|_______||__| |__||_______||_______|    |___|  |_______|
 __   __  __    _  ___      _______  _______  ___   _ 
|  | |  ||  |  | ||   |    |       ||       ||   | | |
|  | |  ||   |_| ||   |    |   _   ||       ||   |_| |
|  |_|  ||       ||   |    |  | |  ||       ||      _|
|       ||  _    ||   |___ |  |_|  ||      _||     |_ 
|       || | |   ||       ||       ||     |_ |    _  |
|_______||_|  |__||_______||_______||_______||___| |_|
 _______  __   __  _______ 
|       ||  | |  ||       |
|_     _||  |_|  ||    ___|
  |   |  |       ||   |___ 
  |   |  |       ||    ___|
  |   |  |   _   ||   |___ 
  |___|  |__| |__||_______|
 _______  _______  _______  _______  __    _  _______  ___   _______  ___     
|       ||       ||       ||       ||  |  | ||       ||   | |   _   ||   |    
|    _  ||   _   ||_     _||    ___||   |_| ||_     _||   | |  |_|  ||   |    
|   |_| ||  | |  |  |   |  |   |___ |       |  |   |  |   | |       ||   |    
|    ___||  |_|  |  |   |  |    ___||  _    |  |   |  |   | |       ||   |___ 
|   |    |       |  |   |  |   |___ | | |   |  |   |  |   | |   _   ||       |
|___|    |_______|  |___|  |_______||_|  |__|  |___|  |___| |__| |__||_______|
 _______  _______ 
|       ||       |
|   _   ||    ___|
|  | |  ||   |___ 
|  |_|  ||    ___|
|       ||   |    
|_______||___|    
 _______  _______  _______  __   __  __    _  _______  ___      _______ 
|       ||       ||       ||  | |  ||  |  | ||       ||   |    |       |
|_     _||    ___||       ||  |_|  ||   |_| ||   _   ||   |    |   _   |
  |   |  |   |___ |       ||       ||       ||  | |  ||   |    |  | |  |
  |   |  |    ___||      _||       ||  _    ||  |_|  ||   |___ |  |_|  |
  |   |  |   |___ |     |_ |   _   || | |   ||       ||       ||       |
  |___|  |_______||_______||__| |__||_|  |__||_______||_______||_______|
 _______  __   __       
|       ||  | |  |      
|    ___||  |_|  |      
|   | __ |       |      
|   ||  ||_     _| ___  
|   |_| |  |   |  |   | 
|_______|  |___|  |___| 

Directories

Path Synopsis
cmd
apps/agent-fleet/backend/templates
templ: version: v0.3.865
templ: version: v0.3.865
apps/anki command
apps/anki/views
templ: version: v0.3.833
templ: version: v0.3.833
apps/bandcamp command
apps/capture command
apps/chunker command
apps/clip command
apps/crawler command
apps/create-pr command
apps/css-use command
apps/differential/kmp
Package kmp implements the Knuth-Morris-Pratt (KMP) algorithm specialized for matching lines of text.
Package kmp implements the Knuth-Morris-Pratt (KMP) algorithm specialized for matching lines of text.
apps/docstring command
apps/dripcat command
apps/embeddings command
apps/embeddings/templates
templ: version: v0.3.833
templ: version: v0.3.833
apps/excel2json command
apps/feedboii command
apps/friday-talks/internal/templates
templ: version: v0.3.833
templ: version: v0.3.833
apps/gtm command
apps/hww command
apps/jsonschema command
apps/lsof-who command
apps/lsp command
apps/lua-serve command
apps/maps command
apps/md-extract command
apps/md-tool command
apps/mp3-slice command
apps/mp3-slice/mp3lib
Package mp3lib provides utilities for working with MP3 files.
Package mp3lib provides utilities for working with MP3 files.
apps/ocr-mistral-view/views
templ: version: v0.3.833
templ: version: v0.3.833
apps/poll-modem command
apps/pr-builder command
apps/prompt-middleware/internal/ui
templ: version: v0.3.833
templ: version: v0.3.833
apps/reggie command
apps/srt-to-txt command
apps/summarize command
apps/svg command
apps/temporizer command
apps/textractor command
apps/yaml-fix command
apps/yaml-merge command
apps/zendesk command
experiments/sniff-writes command
templ: version: v0.3.865
templ: version: v0.3.865
experiments/sqlite-vss command
nolint
nolint
n8n-cli command
rollbar command
tests/mem-leak command
tests/plugin-test-2 command
main.go
main.go
tests/plugin-test-2/plugin command
counter-plugin/main.go
counter-plugin/main.go
tests/ws-htmx command
tutorials/chi command
tutorials/huh command
tutorials/lua command
web/llm-chat command
lua
tutorials/coro command
pkg
sse
svg
web
event-codegen command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL