Skip to content

Instantly share code, notes, and snippets.

View afrittoli's full-sized avatar
💭
🤖 🐱

Andrea Frittoli afrittoli

💭
🤖 🐱
View GitHub Profile
README.md:3:1: MD022: Headings should be surrounded by blank lines. [Expected: 1; Actual: 0; Below] (blanks-around-headings,blanks-around-headers)
README.md:4:1: MD032: Lists should be surrounded by blank lines (blanks-around-lists)
README.md:16:45: MD009: Trailing spaces [Expected: 0 or 2; Actual: 1] (no-trailing-spaces)
README.md:29:1: MD013: Line length [Expected: 80, Actual: 172] (line-length)
README.md:32:1: MD013: Line length [Expected: 80, Actual: 110] (line-length)
README.md:38:1: MD013: Line length [Expected: 80, Actual: 128] (line-length)
README.md:41:1: MD013: Line length [Expected: 80, Actual: 177] (line-length)
README.md:44:1: MD031: Fenced code blocks should be surrounded by blank lines (blanks-around-fences)
README.md:44:1: MD040: Fenced code blocks should have a language specified (fenced-code-language)
README.md:45:1: MD014: Dollar signs used before commands without showing output (commands-show-output)
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2024-02-20T06:01:21Z"
generateName: tekton-results-postgres-
labels:
app.kubernetes.io/name: tekton-results-postgres
app.kubernetes.io/version: devel
controller-revision-hash: tekton-results-postgres-67bf4bd865
statefulset.kubernetes.io/pod-name: tekton-results-postgres-0
fms/utils/generation.py:10: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
fms/models/hf/lm_head_mixins.py:7: error: Skipping analyzing "transformers": module is installed, but missing library stubs or py.typed marker [import-untyped]
fms/models/hf/lm_head_mixins.py:8: error: Skipping analyzing "transformers.modeling_outputs": module is installed, but missing library stubs or py.typed marker [import-untyped]
fms/models/hf/lm_head_mixins.py:15: error: Skipping analyzing "transformers.utils": module is installed, but missing library stubs or py.typed marker [import-untyped]
fms/models/hf/lm_head_mixins.py:73: error: Unexpected keyword argument "config" for "__init__" of "object" [call-arg]
fms/models/hf/lm_head_mixins.py:73: error: Unexpected keyword argument "lm_head" for "__init__" of "object" [call-arg]
fms/models/hf/lm_head_mixins.py:186: error: "__init__" of "LMHeadMixin" gets multiple values for keyword argument "_lm_head_
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: trusted-artifacts-sugar
spec:
pipelineSpec:
workspaces:
- name: artifactStorage # In this example this is where we store artifacts
artifacts: true # this will result in failed validation if the workspace is bound to a readonly backend like a secret
tasks:
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: trusted-artifacts
spec:
pipelineSpec:
workspaces:
- name: artifactStorage # In this example this is where we store artifacts
tasks:
- name: producer
@afrittoli
afrittoli / harbor-dev-macos.md
Last active June 21, 2023 19:23
Harbor dev env on MacOS M1 with Podman

Harbor dev env on MacOS M1 with Podman

Prereq: podman is installed

  1. Install podman-compose
pip3 install podman-compose
  1. Start the podman machine with your go/clone path mounted. I clone golang github repos under /go/src/github.com/:
#!/usr/bin/env bash
set -e
# Members of core.collaborators
core_collaborators=$(gh api -H "Accept: application/vnd.github+json" /organizations/47602533/team/4258907/members | jq -r '.[].login')
review_url() {
local person="$1"
echo "https://github.com/search?q=-author%3A$member+repo%3Atektoncd%2Fpipeline+reviewed-by%3A$member+type%3Apr"
Error from server (Invalid): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apiextensions.k8s.io/v1\",\"kind\":\"CustomResourceDefinition\",\"metadata\":{\"annotations\":{},\"labels\":{\"app.kubernetes.io/instance\":\"default\",\"app.kubernetes.io/part-of\":\"tekton-pipelines\",\"pipeline.tekton.dev/release\":\"v0.41.0\",\"version\":\"v0.41.0\"},\"name\":\"clustertasks.tekton.dev\"},\"spec\":{\"conversion\":{\"strategy\":\"Webhook\",\"webhook\":{\"clientConfig\":{\"service\":{\"name\":\"tekton-pipelines-webhook\",\"namespace\":\"tekton-pipelines\"}},\"conversionReviewVersions\":[\"v1beta1\"]}},\"group\":\"tekton.dev\",\"names\":{\"categories\":[\"tekton\",\"tekton-pipelines\"],\"kind\":\"ClusterTask\",\"plural\":\"clustertasks\",\"singular\":\"clustertask\"},\"preserveUnknownFields\":false,\"scope\":\"Cluster\",\"versions\":[{\"name\":\"v1beta1\",\"schema\":{\"openAPIV3Schema\":{\"type\":\"object\",\"x-kubernetes-preserve-unknown-fi
ce-id: 2bdb8f71-535e-4f80-b728-e7e99df26cc5
ce-source: https://172.21.0.1:443
ce-version: 1.0
ce-type: dev.cdevents.service.deployed.v1
ce-subject: /apis/apps/v1/namespaces/production/deployments/podtato-server
ce-time: 2022-09-16T15:13:25.575448766Z
{
"context": {
"id": "8ec76402-9d85-42c8-8eb9-40f8d5a661f7",