Skip to content

Instantly share code, notes, and snippets.

@EmilyM1
EmilyM1 / Backport-risk-assessed
Created March 16, 2022 17:25
Label to backport 3.22
If the Bugzilla associated with the PR has the "FastFix" keyword, the subjective assessment on the issue has already been done and a customer is impacted. These PRs should be prioritized for merge.
verified
does not apply
The bug has significant impact either through severity, reduction in support, or number of users affected.
verified
#!/bin/bash
#set -x
IMAGE_NAME="$1"
RELEASE="$2"
TAG="$3"
if [ "$IMAGE_NAME" == "" ]; then
echo "IMAGE_NAME is required. example cluster-etcd-operator"
#!/usr/bin/env bash
set -euox pipefail
GO_VERSION=1.16.3
PORT=8181
function log {
local msg="$1"
echo -e "$\033[32m$(date +'%Y-%m-%d %H:%M:%S') $1 $\033[0;39m"
}
@awgreene
awgreene / ExploreBundleImage.sh
Created May 4, 2021 00:12
Allows you to explore the content in a bundle
#!/bin/bash
tmp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
cd $tmp_dir
trap 'rm -rf -- "$tmp_dir"' EXIT
docker save $1 -o manifest.tar
tar -xf manifest.tar
cd $(ls -d */|head -n 1)
mkdir contents
tar -xf layer.tar -C contents
## OpenShift4 pull-secret:
1. Download your pull-secret from [console.redhat.com](https://console.redhat.com/openshift/install/aws/installer-provisioned)
- click on “Download Pull Secret”. Save it somewhere, e.g. ~/some-dir/pull-secret
2. Add the apps.ci auth to pull-secret! _internal OpenShift developers only_
- Obtain an API token by visiting https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request
copy the oc login cmd and paste in terminal to login to the ci cluster, then run this:
- `$ oc registry login --to ~/some-dir/pull-secret`
This will append the auth from registry.ci.openshift.org to your cloud.openshift.com pull-secret but it will also
make the pull-secret multi-line.
@joepie91
joepie91 / vpn.md
Last active July 24, 2024 17:46
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.