Skip to content

Instantly share code, notes, and snippets.

View arno01's full-sized avatar
🎯
Focusing

Andrey Arapov arno01

🎯
Focusing
View GitHub Profile
curl -k -X GET \
-H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
https://$KUBERNETES_PORT_443_TCP_ADDR:$KUBERNETES_SERVICE_PORT_HTTPS
@arno01
arno01 / rancher-url-change.md
Created February 19, 2022 12:23 — forked from janeczku/rancher-url-change.md
Change the hostname/URL and certificate of an existing Rancher installation

Steps to change the URL of Rancher installation and switch from a self-signed certificate to a certificate signed by recognized CA.

  1. Change the Rancher server-url setting to the new URL:
    • Navigate to https://<old_rancher_hostname>/g/settings/advanced
    • Edit server-url to https://<new_rancher_hostname>
  2. Clear the private CA certificate for the old certificate
    • Navigate to https://<old_rancher_hostname>/g/settings/advanced
    • Next to cacerts click context menu -> View in API
    • Click Edit
    • Clear the content of the value field
@arno01
arno01 / 08-validators.yaml
Created April 27, 2021 20:57 — forked from thanethomson/08-validators.yaml
Possible mempool bug - configuration for reproducing
# Configuration file for tmtestnet: https://github.com/interchainio/testnets
# A geographically dispersed 8-validator test network.
id: testnet_08validators
templates:
base_validator: &base_validator
binary: v0.32.1
config_template: ./validator-config.toml
validators: yes
in_genesis: yes
@arno01
arno01 / README-setup-tunnel-as-systemd-service.md
Created October 30, 2019 12:45 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target

Usage

curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@host1 | \
  sudo tee /etc/default/autossh@example
curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@.service | \
  sudo tee /etc/systemd/system/autossh@.service

sudo useradd -g nogroup -s /bin/false -m tunnel
sudo -u tunnel mkdir -p ~tunnel/.ssh # and copy your private key here
@arno01
arno01 / tox.sh
Last active August 29, 2015 14:00 — forked from notadecent/tox.sh
#!/bin/bash
## wget -O tox.sh waa.ai/iqt && chmod +x ./tox.sh && ./tox.sh
## ./tox.sh -sl to skip libsodium (they don't update that often)
## ./tox.sh -sd to skip libsodium and all the other dependencies
## If libraries are missing, remove /etc/ld.so.conf.d/locallib.conf and
## try running again. Else, try messing around with the prefix paths.
# Check if script is being ran as root
test "$(whoami)" == 'root' && (echo "Please don't run this script as root"; exit 1)