test webhook

thumb
km0 3 years ago
parent e68a18caa5
commit 0508168f9c

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

@ -5,6 +5,7 @@ from flask import Flask, render_template, request, url_for, redirect, jsonify, a
import markdown
import frontmatter
from datetime import datetime
import json
# FUNCTIONS
@ -118,5 +119,14 @@ def sendStaticFiles(project, filename):
return send_from_directory(app.root_path + f'/projects/{project}/', filename, conditional=True)
@app.route(f'/{base_url}/hook/', methods=['GET', 'POST'])
def pull():
if request.method == 'POST':
post_data = json.loads(request.form['payload'])
stream = os.popen('git pull')
output = stream.read()
return output
return 'GET method not supported'
# RUN
app.run(port="3132")

@ -42,7 +42,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 4,
"id": "a7b4d409-d42d-4a74-b093-10ace148cc71",
"metadata": {},
"outputs": [],
@ -66,7 +66,7 @@
"projects.sort(reverse=False, key=lambda project: datetime.strptime(\n",
" project['date'], '%d %b, %y'))\n",
"\n",
"baloons = Template(filename=\"baloons_web.html\")\n",
"baloons = Template(filename=\"baloons.html\")\n",
"\n",
"with open('output.html', 'w') as f:\n",
" f.write(baloons.render(projects=projects))\n",

@ -57,270 +57,249 @@
<body>
<ul class="container">
<li class="baloon" style="border: 50px solid #fd5">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/lifeboats/'>
<p class="title">Text ⛵ Lifeboats</p>
<li class="baloon" style="border: 50px solid #f14">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/lifeboats/ Text ⛵ Lifeboats]</p>
<p>What if we could use some excerpts from all of what we are reading now as lifeboats in a sea of text?</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #faa">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/weaving/'>
<p class="title">Text Weaving</p>
<li class="baloon" style="border: 50px solid #ef4">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/weaving/ Text Weaving]</p>
<p>Weave two texts, like warp and weft</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f53">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/chat-reader/'>
<p class="title">Chat Reader</p>
<li class="baloon" style="border: 50px solid #f96">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/chat-reader/ Chat Reader]</p>
<p>Transform a text (ok no, actually a CSV file) into a chat</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #ffb">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/cam-transcript/'>
<p class="title">Cam Transcript</p>
<li class="baloon" style="border: 50px solid #fdc">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/cam-transcript/ Cam Transcript]</p>
<p>10 minutes transcription from Insecam webcams</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f0a">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/soup-gen/'>
<p class="title">🥣 Soup-gen</p>
<li class="baloon" style="border: 50px solid #f76">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/soup-gen/ 🥣 Soup-gen]</p>
<p>A soup aggregator for the next 2 years</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fb2">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/rejection/'>
<p class="title">Rejection 🧠⛈️</p>
<li class="baloon" style="border: 50px solid #fe9">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/rejection/ Rejection 🧠⛈️]</p>
<p>Round glossary just for fun ok</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f76">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/k-pub/'>
<p class="title">🎵 K-PUB</p>
<li class="baloon" style="border: 50px solid #f69">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/k-pub/ 🎵 K-PUB]</p>
<p>Karaoke as a mean of republishing</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f4e">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/padliography/'>
<p class="title">🏓 PADliography</p>
<li class="baloon" style="border: 50px solid #ffa">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/padliography/ 🏓 PADliography]</p>
<p>Fetching all our pads from the PZI wiki with API magic</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f91">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/pimp/'>
<p class="title">Pimp the Soupboat WS</p>
<li class="baloon" style="border: 50px solid #eee">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/pimp/ Pimp the Soupboat WS]</p>
<p>Crash HTML_CSS workshop for our dear XPUB1 fellows</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f03">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/concrete-label/'>
<p class="title">Concrete 🎏 Label</p>
<li class="baloon" style="border: 50px solid #f83">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/concrete-label/ Concrete 🎏 Label]</p>
<p>A tool for annotating visual contents</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #feb">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/api-worldbuilding/'>
<p class="title">Chimeric API</p>
<li class="baloon" style="border: 50px solid #fa5">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/api-worldbuilding/ Chimeric API]</p>
<p>What Can API Learn from Poetics and World-building?</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f97">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-strapi-nuxt-prototype/'>
<p class="title">SI16 API Strapi-Nuxt prototype</p>
<li class="baloon" style="border: 50px solid #ff2">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-strapi-nuxt-prototype/ SI16 API Strapi-Nuxt prototype]</p>
<p>Test for a node.js backend for the SI16 app</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f3d">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-express-prototype/'>
<p class="title">SI16 API node.js + express prototype</p>
<li class="baloon" style="border: 50px solid #f1e">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-express-prototype/ SI16 API node.js + express prototype]</p>
<p>Test for an API-based special issue</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f4a">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-structure-proposal/'>
<p class="title">SI16 Structure Proposal</p>
<li class="baloon" style="border: 50px solid #f25">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-structure-proposal/ SI16 Structure Proposal]</p>
<p>Imaging the SI16 as an API ecosystem</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fa7">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-frontend-design/'>
<p class="title">SI16 Frontend Proposal</p>
<li class="baloon" style="border: 50px solid #fed">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-frontend-design/ SI16 Frontend Proposal]</p>
<p>Proposal for the SI16 website</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #ef1">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/spawn-sticker/'>
<p class="title">Spawn Sticker</p>
<li class="baloon" style="border: 50px solid #f19">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/spawn-sticker/ Spawn Sticker]</p>
<p>simple & flexible & adhesive</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f43">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/annotation-compass/'>
<p class="title">Annotation Compass</p>
<li class="baloon" style="border: 50px solid #f04">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/annotation-compass/ Annotation Compass]</p>
<p>A tool for gathering situated impressions in order to create individual, vernacular and poetic readings of various inputs</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f4e">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-backend/'>
<p class="title">SI16 Backend</p>
<li class="baloon" style="border: 50px solid #fb9">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-backend/ SI16 Backend]</p>
<p>Flexible Flask app (~) for the SI16 API</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f41">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/cms-00/'>
<p class="title">Soupboat CMS 00</p>
<li class="baloon" style="border: 50px solid #f14">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/cms-00/ Soupboat CMS 00]</p>
<p>Micro JSON→HTML CMS for the first trimester</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fe6">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-temporality/'>
<p class="title">Temporality of the loot box</p>
<li class="baloon" style="border: 50px solid #f82">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-temporality/ Temporality of the loot box]</p>
<p>Against instant rewarding</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f06">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-sealing-device/'>
<p class="title">LOOT—BOX—SEALING—DEVICE</p>
<li class="baloon" style="border: 50px solid #fc4">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-sealing-device/ LOOT—BOX—SEALING—DEVICE]</p>
<p>Closing Pandora's 3D large jar</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f17">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-multi-player/'>
<p class="title">Multi Player Loot Box</p>
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-multi-player/ Multi Player Loot Box]</p>
<p>Notes to generate relations within the public</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f77">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/mimic/'>
<p class="title">Mimic research 📦</p>
<li class="baloon" style="border: 50px solid #f61">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/mimic/ Mimic research 📦]</p>
<p>Exploring a tricky treasure trope</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fb3">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/katamari-fanfic/'>
<p class="title">A Katamari Fanfiction</p>
<li class="baloon" style="border: 50px solid #ff2">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/katamari-fanfic/ A Katamari Fanfiction]</p>
<p>What's left when you roll on everything?</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f6e">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-decorator/'>
<p class="title">Loot Box as a Decorator</p>
<li class="baloon" style="border: 50px solid #f7b">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-decorator/ Loot Box as a Decorator]</p>
<p>Hermit crab in the book store</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f5f">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/xquisite/'>
<p class="title">🥐 XQUISITE BRUNCH 🥐</p>
<li class="baloon" style="border: 50px solid #f1b">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/xquisite/ 🥐 XQUISITE BRUNCH 🥐]</p>
<p>A branching take on the exquisite corpse game</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f61">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/soup-flask/'>
<p class="title">Flask that soup 🥥</p>
<li class="baloon" style="border: 50px solid #fba">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/soup-flask/ Flask that soup 🥥]</p>
<p>Confy Flask setup on the Soupboat</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fc5">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/chaotic-evil-puzzles/'>
<p class="title">Chaotic evil puzzles</p>
<li class="baloon" style="border: 50px solid #fc7">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/chaotic-evil-puzzles/ Chaotic evil puzzles]</p>
<p>Jigsaw puzzle as a form of encryption of our SI17</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f18">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si17-public/'>
<p class="title">SI17 producing the public</p>
<li class="baloon" style="border: 50px solid #f04">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si17-public/ SI17 producing the public]</p>
<p>homeworks for 21/02</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fdf">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/test-static-files/'>
<p class="title">test static files in project directory</p>
<li class="baloon" style="border: 50px solid #f43">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/test-static-files/ test static files in project directory]</p>
<p>it's a test</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f2b">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/soup-to-wiki/'>
<p class="title">Soup to Wiki</p>
<p>Teleport this log to the wiki (teleport not ready yet)</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fd3">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/chameleon/'>
<p class="title">Chameleon RRPG 🦎</p>
<li class="baloon" style="border: 50px solid #f7c">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/chameleon/ Chameleon RRPG 🦎]</p>
<p>A Random Role Play Game to inject micro scripted actions in daily life</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #ff8">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/postit-gen/'>
<p class="title">Post it generator</p>
<li class="baloon" style="border: 50px solid #ff0">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/postit-gen/ Post it generator]</p>
<p>Prototype for web-to-print postit</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f32">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/postit-contents/'>
<p class="title">Post-it Contents</p>
<li class="baloon" style="border: 50px solid #f89">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/postit-contents/ Post-it Contents]</p>
<p>A repo to organize SI17 contents in a post-it guise</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fa8">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/post-flask/'>
<p class="title">we printed 85 000 postit for real</p>
<li class="baloon" style="border: 50px solid #f1f">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/post-flask/ we printed 85 000 postit for real]</p>
<p>Web-to-print post-it generator app</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f88">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/postit-identity/'>
<p class="title">Post-it Visual Identity</p>
<li class="baloon" style="border: 50px solid #fa1">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/postit-identity/ Post-it Visual Identity]</p>
<p>How to deliver a pubblication in post-it format</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #f34">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si17-homepage/'>
<p class="title">SI17 Homepage</p>
<li class="baloon" style="border: 50px solid #f60">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si17-homepage/ SI17 Homepage]</p>
<p>A simple static website to host the loot box</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #eee">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/lifespan/'>
<p class="title">Deciduous Time Everlasting Internet</p>
<li class="baloon" style="border: 50px solid #ff6">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/lifespan/ Deciduous Time Everlasting Internet]</p>
<p>Design the lifespan of a website</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fd7">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/panel/ Knob feast & Cables spaghetti hell]</p>
<p>Generate interactive synth panel from SVG</p>
</li>
<li class="baloon" style="border: 50px solid #fb2">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/spaghetti/ Spaghetti]</p>
<p>Hand drawn SVG cables for a modular interaction</p>
</li>
<li class="baloon" style="border: 50px solid #fc4">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/soup-to-wiki/ Soup to Wiki]</p>
<p>Teleport this log to the wiki (teleport not ready yet)</p>
</li>
<li class="baloon" style="border: 50px solid #f99">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/skimmer/ Skimmer]</p>
<p>Hyper~panning and displaced speakers</p>
</li>
<li class="baloon" style="border: 50px solid #f5d">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si18-01-jingles/ SI18.01 - Jingles]</p>
<p>Exploring the sequencer of the Skimmer to make some jjj</p>
</li>
<li class="baloon" style="border: 50px solid #fee">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/notation-system/ Notation system for 2 or + fingers]</p>
<p>Drawing and performing scores with Chae</p>
</li>
<li class="baloon" style="border: 50px solid #ef5">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/plotter-pattern/ Plotter Pattern]</p>
<p>Parametric graphics to be plotted with the plotter</p>
</li>
<li class="baloon" style="border: 50px solid #f73">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/word-dimmer/ Word dimmer]</p>
<p>A tool to navigate words semantically</p>
</li>
<li class="baloon" style="border: 50px solid #f1b">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/emergent-opera/ SI18.03 - Emergent Opera]</p>
<p>Ok let's write an opera in 1 week altogether</p>
</li>
<li class="baloon" style="border: 50px solid #f37">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/workinon/ 🇯🇵 WORKINON]</p>
<p>Shared archive to keep track of how ideas change during research</p>
</li>
<li class="baloon" style="border: 50px solid #f16">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/documentation-template/ Documentation Template]</p>
<p>Handy template for documenting projects</p>
</li>
<li class="baloon" style="border: 50px solid #f7f">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/graduation-divination/ Graduation Divination]</p>
<p>Spiritual consultation for writing the thesis</p>
</li>
</ul>
</body>

@ -0,0 +1,55 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"id": "8d024ff0-1dc3-4a8a-8974-85665c28e0c1",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Already up to date.\n",
"\n"
]
}
],
"source": [
"import os\n",
"stream = os.popen('git pull')\n",
"output = stream.read()\n",
"print(output)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2d5f2527-0865-489b-9ca4-e6a45102211b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading…
Cancel
Save