Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴 🌞 🍷

Bartosz Majsak bartoszmajsak

🌴 🌞 🍷
View GitHub Profile
@bartoszmajsak
bartoszmajsak / prepare-commit-msg.sh
Last active October 27, 2022 23:39
How to automatically prepend git commit with a branch name
View prepare-commit-msg.sh
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
View gist:5b3d26cf4fb0c57dcb036184a5b2de86
[89892e2cd9] Tue Aug 23 10:27:46 2022 +0200 (Jacek Ewertowski): [misc] Integration test fixes (#530)
[35c253ada5] Tue Aug 23 11:03:52 2022 +0200 (Jacek Ewertowski): [misc] Add vendor directory
[b847b42cc6] Tue Jun 14 22:53:29 2022 +0200 (Daniel Grimm): [no-cluster-rbac] Introduce xns-informer (#533)
[85ce250a2a] Mon Jun 20 21:08:38 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] MAISTRA-2051: Allow istiod to run without Node access (#255) (#545)
[5ef93a7dea] Tue Jun 21 12:28:37 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] MAISTRA-1895: Add option to enable/disable CRD scan (#260) (#546)
[ac3eb3bf6e] Tue Jun 21 16:03:38 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] MAISTRA-1897: Allow disabling IngressClass support (#263) (#547)
[69335e73c6] Fri Jun 24 13:20:30 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] OSSM-1420: Ensure istiod can run with no cluster-scoped privileges (#513) (#548)
[b3ac97666d] Thu Jun 30 19:46:37 2022 +0200 (Jacek Ewertowski): [no-cluster-rbac] OSSM-796: add SMMR integration te
View gist:4c91eef68fa083d729624a7ba8297e51
[ccd1597414] Thu Apr 21 21:22:10 2022 -0400 (Greg Hanson): [release-1.14] Automated branching step 4 (#38512)
[6661edbe92] Thu Apr 21 19:24:50 2022 -0700 (Istio Automation): Automator: update istio/api@release-1.14 dependency in istio/istio@release-1.14 (#38516)
[aaf91a45d7] Thu Apr 21 19:24:57 2022 -0700 (Istio Automation): Automator: update istio/pkg@release-1.14 dependency in istio/istio@release-1.14 (#38517)
[997efb8a42] Thu Apr 21 20:05:49 2022 -0700 (Istio Automation): Automator: update common-files@release-1.14 in istio/istio@release-1.14 (#38518)
[12fb9e24cc] Thu Apr 21 21:10:49 2022 -0700 (Istio Automation): Automator: update istio/client-go@release-1.14 dependency in istio/istio@release-1.14 (#38519)
[227d81ad75] Fri Apr 22 10:51:50 2022 -0700 (Istio Automation): Automator: update common-files@release-1.14 in istio/istio@release-1.14 (#38530)
[d315965155] Fri Apr 22 11:42:50 2022 -0700 (Istio Automation): Automator: update istio/client-go@release-1.14 dependency in istio/istio@release-1.14 (#38527)
@bartoszmajsak
bartoszmajsak / align-deps.sh
Last active October 25, 2022 20:17
xns-informers deps update
View align-deps.sh
#!/bin/bash
set -eo pipefail
die () {
echo >&2 "$@"
show_help
exit 1
}
@bartoszmajsak
bartoszmajsak / add-branch.sh
Created October 25, 2022 11:21
New branch - Prow jobs automation
View add-branch.sh
#!/bin/bash
set -eo pipefail
die () {
echo >&2 "$@"
show_help
exit 1
}
View gist:83d1d32b9d580ca57c04e58aa4e5008e
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: "2022-07-15T11:30:12Z"
name: productpage-v1
spec:
replicas: 1
selector:
matchLabels:
app: productpage
@bartoszmajsak
bartoszmajsak / post-checkout
Created July 23, 2015 07:09
Git hook to change mvn version
View post-checkout
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
if [ -z "$MAIN_BRANCH" ]; then
MAIN_BRANCH="develop"
@bartoszmajsak
bartoszmajsak / microk8s_setup.sh
Last active July 17, 2020 09:32 — forked from caglar10ur/microk8s
microk8s setup with istio
View microk8s_setup.sh
snap install microk8s --classic
sudo ufw default allow routed
sudo iptables -P FORWARD ACCEPT
## Fedora specific fix - see https://github.com/ubuntu/microk8s/issues/408#issuecomment-581100625
sudo firewall-cmd --zone=trusted --add-masquerade --permanent
sudo firewall-cmd --zone=trusted --add-interface=cni0 --permanent
sudo firewall-cmd --reload
microk8s.enable dns dashboard metrics-server