Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
| <?xml version="1.0"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>Elfeed-Org Export</title> | |
| </head> | |
| <body> | |
| <outline title="elfeed"> | |
| <outline title="reddit"> | |
| <outline title="inbox" xmlUrl="https://www.reddit.com/message/inbox/.rss?feed=68ab399ca4600a1cfa26b3b49b794299eb01583c&user=cyneox"/> | |
| <outline title="listings" xmlUrl="https://www.reddit.com/.rss?feed=68ab399ca4600a1cfa26b3b49b794299eb01583c&user=cyneox"/> | 
| #!/bin/bash | |
| RDRVIEW_OUTPUT=~/work/dropbox/rdrview | |
| DROPBOX_DIR="dropbox:Apps/Dropbox PocketBook/articles/2021/" | |
| add_link_to_dropbox() { | |
| # Create tmp file | |
| TEMP_FILE=$(mktemp) | |
| # Make link readable | 
| module mimind2json | |
| go 1.16 | |
| require github.com/beevik/etree v1.1.0 | 
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "html/template" | |
| "log" | |
| "net/http" | |
| "github.com/gorilla/mux" | 
Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
| // Go Playground: https://play.golang.org/p/cMutpCzpmth | |
| package main | |
| import ( | |
| "fmt" | |
| "encoding/json" | |
| ) | |
| // Field is a key value structure | 
| # Make sure you authorize your access token to be used with SAML | |
| # https://help.github.com/articles/authorizing-a-personal-access-token-for-use-with-a-saml-single-sign-on-organization/ | |
| # | |
| # Run: | |
| # python list_all_repos.py <org> | |
| import github3 | |
| import os | |
| GITHUB_ACCESS_TOKEN = os.environ["GITHUB_ACCESS_TOKEN"] | 
| // Show stack and dereferenced values using Graphviz (DOT) | |
| // (c) Victor Dorneanu | |
| digraph G { | |
| // Define layout | |
| graph [pad=".75", ranksep="0.95", nodesep="0.05"]; | |
| rankdir=LR; | |
| node [shape="record"]; | |
| rank=same; | 
| import requests | |
| import pandas as pd | |
| import os | |
| # Config stuff | |
| url="https://www.yourapp.com/add/new/file" | |
| headers = { | |
| 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' | |
| # Add here more headers | 
| #!/bin/bash | |
| # Config | |
| N2CHROOT=~victor/tmp/n2chroot | |
| export JAIL=/var/www/chroot | |
| function create_chroot { | |
| # Create devices | |
| mkdir $JAIL/dev | |
| mknod -m 0666 $JAIL/dev/null c 1 3 |