curl -Ls http://bit.ly/go_installer | bash
If you want to install golang, normally you are following the description on the official dowload page
curl -Ls http://bit.ly/go_installer | bash
If you want to install golang, normally you are following the description on the official dowload page
curl -s -k \
--cert ~/.minikube/client.p12 \
--key ~/.minikube/client.key \
--pass tcuser \
https://192.168.64.8:8443/api/v1/pods \
|jq '.items[].metadata.name'
Iximiuz discord message: https://discord.com/channels/1052678631744344074/1225074412030787604/1383140982874444029
Sometimes a very simple prompt is useful - like creating documentation, or github issues. In those cases its still important to be able to tell the k8s context/ns
white [ctx/ns]
PS1='[$(kubectl config view --minify -o jsonpath="{.contexts[0].name}:{.contexts[0].context.namespace}")]$ '
orange [ns]
| require 'formula' | |
| class Sshpass < Formula | |
| url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz' | |
| homepage 'http://sourceforge.net/projects/sshpass' | |
| sha256 'c3f78752a68a0c3f62efb3332cceea0c8a1f04f7cf6b46e00ec0c3000bc8483e' | |
| def install | |
| system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
| "--prefix=#{prefix}" |
| FROM tianon/centos | |
| MAINTAINER SequenceIQ | |
| # install dev tools | |
| RUN yum install -y openssh-server openssh-clients | |
| # passwordless ssh | |
| RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key | |
| RUN ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key | |
| RUN ssh-keygen -q -N "" -t rsa -f /root/.ssh/id_rsa |
To start a new script use this one-liner:
curl -Lo newscript.sh http://j.mp/bash-skeleton
| mkdir -p /var/lib/rancher/k3s/agent/images/ | |
| VERSION_K3S=$(curl -w '%{url_effective}' -L -s -S https://update.k3s.io/v1-release/channels/stable -o /dev/null | sed -e 's|.*/||') | |
| curl -sL -o /var/lib/rancher/k3s/agent/images/airgap-images.tar https://github.com/k3s-io/k3s/releases/download/${VERSION_K3S}/k3s-airgap-images-amd64.tar |