This file contains hidden or 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
# Copyright 2021 The Sigstore Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or 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
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: sign-with-gcloud | |
spec: | |
params: | |
- name: digest | |
description: The digest to sign | |
steps: |
This file contains hidden or 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
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: sign-with-ambient | |
spec: | |
params: | |
- name: digest | |
description: The digest to sign | |
steps: |
This file contains hidden or 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
source /Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash | |
gitp () { | |
# Get the target of a file rename | |
git status -s . | grep "^R " | cut -d'>' -f 2 | |
# Open added or modified files, staged or not. | |
git status -s . | grep -vE "^ ?[DR?]" | sed 's/^...//g' |
This file contains hidden or 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
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(package-initialize) | |
; Double Ctrl-C is always comment-region | |
(global-set-key (kbd "C-c C-c") 'comment-region) |
This file contains hidden or 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
func (c *Reconciler) reconcileFoo(parent *Parent) error { | |
// Get the current state of the Foo | |
foo, getFooErr := c.fooLister.Foos(ns).Get(name) | |
if apierrs.IsNotFound(getFooErr) { | |
// If it doesn’t exist, create it. | |
foo, err = c.createFoo(parent) | |
if err != nil { | |
return err | |
} | |
} else if getFooErr != nil { |