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
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
""" Simple demo of using multiprocessing when parsing files """ | |
import sys | |
import os | |
import codecs | |
from multiprocessing import Pool, Process, Queue, cpu_count |
# 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"] |
package main | |
import ( | |
"flag" | |
"fmt" | |
"html/template" | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" |
// 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; |
############################################## | |
# Sample client-side OpenVPN 2.0 config file # | |
# for connecting to multi-client server. # | |
# # | |
# This configuration can be used by multiple # | |
# clients, however each client should have # | |
# its own cert and key files. # | |
# # | |
# On Windows, you might want to rename this # | |
# file so it has a .ovpn extension # |
// Go Playground: https://play.golang.org/p/cMutpCzpmth | |
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
) | |
// Field is a key value structure |
<?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"/> |
/* | |
* Based on https://raw.githubusercontent.com/usefulfor/usefulfor/master/security/JBoss.java | |
* | |
* JBoss.java - Blowfish encryption/decryption tool with JBoss default password | |
* Daniel Martin Gomez <daniel@ngssoftware.com> - 03/Sep/2009 | |
* | |
* This file may be used under the terms of the GNU General Public License | |
* version 2.0 as published by the Free Software Foundation: | |
* http://www.gnu.org/licenses/gpl-2.0.html | |
*/ |
#!/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 |