- https://github.com/ollama/ollama/releases/
- https://github.com/ollama/ollama/releases/download/v0.4.3/ollama-linux-amd64.tgz
| #!/usr/bin/env python3 | |
| """ | |
| Reads "old -> new" pairs from stdin, replaces them in the target files, and | |
| prints which lines were missed (no match found). | |
| """ | |
| import sys | |
| from pathlib import Path | |
| def parse_pairs(stdin_lines): |
| Notes for the Demo: | |
| ## Vow 1: Brainstorming ideas | |
| - Innovation | |
| - Upstream First | |
| - Use case oriented | |
| ### Links: | |
| - Open https://github.com/flatcar/scripts | |
| - Look into the bash scripts: |
| from bs4 import BeautifulSoup | |
| with open("txndoc.xml") as fobj: | |
| data = fobj.read() | |
| doc = BeautifulSoup(data, "xml") | |
| responses = doc.find_all("Response") | |
| csv_data = [] | |
| for response in responses: |
| import regex as re | |
| def parse_version(data): | |
| pattern = re.compile(r'\[([^][]+)\](\(((?:[^()]+|(?2))+)\))') | |
| versions = [] | |
| for match in pattern.finditer(data): | |
| description, _, url = match.groups() | |
| versions.append((description, url)) | |
| return versions |
| git config --global url."git@github.com:".insteadOf "https://github.com/" |
| [url "git@github.com:"] | |
| insteadOf = https://github.com/ |