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
| #!/usr/bin/env bash | |
| COMMIT_MSG_FILE=$1 | |
| COMMIT_SOURCE=$2 | |
| SHA1=$3 | |
| TMP=$(mktemp /tmp/.mm.XXXXXX) | |
| clean() { rm -f ${TMP}; } | |
| trap clean EXIT | |
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
| lvim.autocommands = { | |
| { | |
| "BufWinEnter", { | |
| pattern = { "*.c", "*.h", "*.mk" }, | |
| callback = function() | |
| if string.match(vim.loop.cwd(), ".*qmk/keyboards/.*") ~= "" then | |
| vim.api.nvim_set_keymap("n", "<leader>x", "<cmd>TermExec cmd=\"../../go.sh flash %:p:h:t\"<cr>", | |
| { noremap = true, silent = true }) | |
| if vim.fn.expand('%:p:h:t') == "moonlander" then | |
| require('qmk').setup({ |
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
| (defvar my-vterm-command nil) | |
| (defun my-vterm-execute-region-or-current-line (&optional arg) | |
| "Execute a command in vterm, pass variable or ask for it" | |
| (interactive "p") | |
| (require 'vterm) | |
| (eval-when-compile (require 'subr-x)) | |
| (let ((command (or arg (read-string "Enter a command: ")))) | |
| (let ((buf (current-buffer))) | |
| (unless (get-buffer vterm-buffer-name) | |
| (vterm)) |
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
| diff --git a/.ko.yaml b/.ko.yaml | |
| index 4afab0e5..a4c14718 100644 | |
| --- a/.ko.yaml | |
| +++ b/.ko.yaml | |
| @@ -1 +1,20 @@ | |
| -defaultBaseImage: gcr.io/distroless/base-debian11:nonroot | |
| +defaultBaseImage: quay.io/chmouel/ubi9-nonroot | |
| + | |
| +builds: | |
| +- id: controller |
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
| (defun golang-test-detect (&optional rg-extras) | |
| (interactive) | |
| (let ((results)) | |
| (with-temp-buffer | |
| (insert (shell-command-to-string "rg -g '*_test.go' '^func\sTest'")) | |
| (goto-char (point-min)) | |
| (while (re-search-forward "^\\(.+\\):func \\([a-zA-Z_]*\\)" nil t) | |
| (let ((filename (match-string 2))) | |
| (push (format "%s :: %s" (match-string 1) (match-string 2)) results)))) | |
| results)) |
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
| # Maintainer: Wesley Moore <[email protected]> | |
| pkgname=git-trim | |
| pkgver=5686c48 | |
| pkgrel=2 | |
| pkgdesc='Trims your git remote tracking branches' | |
| arch=('i686' 'x86_64') | |
| url="https://github.com/foriequal0/git-trim" | |
| license=('MIT') | |
| depends=('libgit2') | |
| makedepends=('cargo') |
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: v1 | |
| baseDomain: devcluster.openshift.com | |
| compute: | |
| - hyperthreading: Enabled | |
| name: worker | |
| platform: {} | |
| replicas: 3 | |
| controlPlane: | |
| hyperthreading: Enabled | |
| name: master |
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
| diff --git a/pkg/matcher/cel.go b/pkg/matcher/cel.go | |
| index 822d8812..c0a9a416 100644 | |
| --- a/pkg/matcher/cel.go | |
| +++ b/pkg/matcher/cel.go | |
| @@ -5,8 +5,11 @@ import ( | |
| "github.com/google/cel-go/cel" | |
| "github.com/google/cel-go/checker/decls" | |
| + "github.com/google/cel-go/common/types" | |
| "github.com/google/cel-go/common/types/ref" |
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
| [package] | |
| name = "tekton-rs" | |
| version = "0.1.0" | |
| authors = ["Chmouel Boudjnah <[email protected]>"] | |
| edition = "2018" | |
| [dependencies] | |
| kube = { version = "0.71.0", features = ["runtime", "derive"] } | |
| k8s-openapi = { version = "0.14.0", features = ["v1_23"] } | |
| tokio = { version = "1.14.0", features = ["full"] } |
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
| global previousWin | |
| on getFrontWin() | |
| tell application "System Events" | |
| set frontApp to first application process whose frontmost is true | |
| set frontAppName to name of frontApp | |
| return frontAppName | |
| end tell | |
| end getFrontWin |