Skip to content

Instantly share code, notes, and snippets.

View beekhof's full-sized avatar

Andrew Beekhof beekhof

View GitHub Profile
@beekhof
beekhof / Convert .mov or .MP4 to .gif.md
Created February 2, 2023 08:23 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

diff --git a/clustergroup/templates/plumbing/cluster-external-secrets.yaml b/clustergroup/templates/plumbing/cluster-external-secrets.yaml
index 52f5ca5..2f8db26 100644
--- a/clustergroup/templates/plumbing/cluster-external-secrets.yaml
+++ b/clustergroup/templates/plumbing/cluster-external-secrets.yaml
@@ -34,10 +34,10 @@ spec:
data:
- secretKey: kubeBearer
remoteRef:
- key: {{ $.Values.secretsBase.key }}/cluster_{{ .Values.clusterGroup.targetCluster }}
+ key: {{ $.Values.hostedSite.bearer_secret_key }}
diff --git a/clustergroup/templates/applications.yaml b/clustergroup/templates/applications.yaml
index 7e17afc..4952f06 100644
--- a/clustergroup/templates/applications.yaml
+++ b/clustergroup/templates/applications.yaml
@@ -33,17 +33,17 @@ spec:
{{- end }}
# Watch the progress of https://issues.redhat.com/browse/GITOPS-891 and update accordingly
parameters:
- - name: global.repoURL
+ - name: {{ default "global.repoURL" .repoField }}
clusterGroup:
subscriptions:
- name: advanced-cluster-management
namespace: open-cluster-management
channel: release-2.4
csv: advanced-cluster-management.v2.4.1
- name: seldon-operator
namespace: manuela-ml-workspace
source: community-operators
resourceExclusions: |
- apiGroups:
- admissionregistration.k8s.io/v1beta1
- apiextensions.k8s.io/v1beta1
- apiregistration.k8s.io/v1beta1
- authentication.k8s.io/v1beta1
- authorization.k8s.io/v1beta1
- autoscaling/v2beta1
- autoscaling/v2beta2
- batch/v1beta1
//
// Taby.swift
//
import SwiftUI
import PencilKit
import Foundation
import SwiftUI
import PencilKit
diff --git a/pkg/daemon/update.go b/pkg/daemon/update.go
index 773246cb..4dfd9325 100644
--- a/pkg/daemon/update.go
+++ b/pkg/daemon/update.go
@@ -17,6 +17,8 @@ import (
"syscall"
"time"
+ "github.com/openshift/machine-config-operator/pkg/daemon/pivot/reboot"
+
#!/bin/bash
virt_connect="--connect=qemu:///session"
virsh="virsh ${virt_connect}"
svirsh="sudo virsh"
count=3
onlyone=$1
name=beekhof
SCRIPT_vm_vcpu=2
@beekhof
beekhof / nmo.md
Last active February 11, 2020 07:56
commit 5ed03647285915b8fcd0e41df6ff14b3f6079848
Author: Andrew Beekhof <andrew@beekhof.net>
Date: Tue Jun 11 01:02:27 2019 -0400
Beginnings of etcd provisioning on the bootstrap node
Signed-off-by: Andrew Beekhof <andrew@beekhof.net>
diff --git a/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template b/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template
index ecb30c8..a57992e 100755