Skip to content

Instantly share code, notes, and snippets.

View Lanjelin's full-sized avatar
💭
Pondering upon world domination

Lanjelin

💭
Pondering upon world domination
View GitHub Profile
@malesfth
malesfth / widget_portainer.js
Last active October 31, 2023 15:20
iOS Scriptable Widget for Portainer (Docker)
// Parameters:
// {"url":"https://portainer:9000","user":"username","pass":"secret"}
// Optional key in parameters: "endpoint": 1|2|...
// Optional key in parameters: "theme": system|light|dark|docker
// Optional key in parameters: "name": "Portainer|Docker"
let portainerUser = "" // set the username here for debug
let portainerPass = "" // set the password here for debug
let portainerURL = "" //set the URL here for debug
let portainerEndpoint = "1" //set the endpoint id for debug
@brizandrew
brizandrew / server.py
Last active December 19, 2023 10:16
Simple Flask Webhook Example
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, request
from urllib import unquote_plus
import json
import re
app = Flask(__name__)