Skip to content

Instantly share code, notes, and snippets.

/*! @file OIDExternalUserAgentIOSSafariViewController.h
@brief AppAuth iOS SDK
@copyright
Copyright 2018 Google Inc. All Rights Reserved.
@copydetails
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
http://www.apache.org/licenses/LICENSE-2.0
@WilliamDenniss
WilliamDenniss / .tmux.conf
Created November 14, 2020 22:22
William's tmux Config
#ref: https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
@WilliamDenniss
WilliamDenniss / install-knative.sh
Last active December 7, 2022 07:43
Installation of Knative on a GKE Autopilot cluster
# Install Knative
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.0.0/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.0.0/serving-core.yaml
# Autopilot Mod: Remove annotation
kubectl patch -n knative-serving deployment activator --type=json -p='[{"op":"remove","path":"/spec/template/metadata/annotations/cluster-autoscaler.kubernetes.io~1safe-to-evict"}]'
kubectl patch -n knative-serving deployment autoscaler --type=json -p='[{"op":"remove","path":"/spec/template/metadata/annotations/cluster-autoscaler.kubernetes.io~1safe-to-evict"}]'
kubectl patch -n knative-serving deployment domainmapping-webhook --type=json -p='[{"op":"remove","path":"/spec/template/metadata/annotations/cluster-autoscaler.kubernetes.io~1safe-to-evict"}]'
kubectl patch -n knative-serving deployment webhook --type=json -p='[{"op":"remove","path":"/spec/template/metadata/annotations/cluster-autoscaler.kubernetes.io~1safe-to-evict"}]'
@WilliamDenniss
WilliamDenniss / upgrade.sh
Created October 17, 2024 00:13
GKE bulk node pool upgrader
#!/bin/bash
# Variables
PROJECT_ID="your-project-id" # Replace with your Google Cloud project ID
CLUSTER_NAME="your-cluster-name" # Replace with your GKE cluster name
LOCATION="us-central1" # Replace with the zone of your cluster, e.g., us-central1-a
# Get the current GKE control plane version
CONTROL_PLANE_VERSION=$(gcloud container clusters describe "$CLUSTER_NAME" \
--location "$LOCATION" \