This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Public domain | |
from urllib import request | |
def post_data(url, data, headers={'Content-Type':'application/json'}): | |
""" | |
POST data string to `url`, return page and headers | |
""" | |
# if data is not in bytes, convert to it to utf-8 bytes | |
bindata = data if type(data) == bytes else data.encode('utf-8') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Home Collection were music compilations made by fans for fans | |
and sold as CDs on flea market in post-soviet Minsk. At that | |
time, which is around 2000, the internet was overly expensive, | |
the salaries were extremely low. Flavoring juice on the table | |
was a sign of a celebration. Normally we would rather count | |
cash and buy beer to socialize once in a few weeks. | |
* [ ] https://archive.org/ | |
Home Collection was a way to discover new music, which was not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# public domain code | |
# useful for csv output etc. | |
def format_table(rows, headers): | |
"""Format list of tuples into equal width table with headers""" | |
maxlens = [len(h) for h in headers] | |
for r in rows: | |
for i, c in enumerate(r): | |
maxlens[i] = max(maxlens[i], len(c)) | |
tpltpl = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOSCA is a way to describe application infrastructure. Designed by comittee called OASIS. | |
If you want to look at it, start with Eclipse Winery. | |
Because Winery is a Java app, nobody runs online demo, so you need to run it yourself | |
(there is probably a fresh recorded demo somewhere, so post a link if you've seen one) | |
Winery is a UI that allows you to draw diagrams that are then saved as CSAR files. | |
CSAR files contain TOSCA diagrams in YAML format that defines infrastructure like |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Modes -- | |
i # | |
v # visual selection mode | |
Ctrl+v # visual block selection | |
ESC | |
Ctrl+o # in insert mode - run one command in normal mode | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
project(fullPath: "gitlab-org/gitlab") { | |
name | |
issues { | |
nodes { | |
iid | |
timelogs { | |
nodes { | |
spentAt | |
timeSpent |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Master thread - https://discourse.sustainoss.org/t/dependency-mapping-working-group/569 - see Agenda items there. | |
* https://deps.cloud/ - some initiative to detect and parse dependencies | |
* https://github.com/dependabot/dependabot-core - it somehow parses GitHub files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | 0.008 | 3 | |
---|---|---|---|
1 | 0.012 | 4 | |
1 | 0.005 | 2 | |
1 | 0.016 | 5 | |
1 | 0.002 | 1 | |
1 | 0.008 | 3 | |
1 | 0.002 | 1 | |
1 | 0.002 | 1 | |
1 | 0.005 | 2 | |
1 | 0.005 | 2 |
NewerOlder