Skip to content

Instantly share code, notes, and snippets.

@MG2R
MG2R / get_sa_token.sh
Last active February 16, 2023 12:07
Create a token for an arbitrary Rancher 2 user with Terraform.
#!/bin/bash
# Used to get Rancher USER tokens from the API.
#
# Workaround for https://github.com/rancher/terraform-provider-rancher2/issues/315
#
# Use this with Terraform by exploiting the external data provider:
# terraform {
# required_providers {
# external = {
@MG2R
MG2R / cloudsend.sh
Last active October 17, 2020 20:34 — forked from tavinus/cloudsend.sh
Send files to Nextcloud/Owncloud shared folder using curl
#!/usr/bin/env bash
############################################################
#
# cloudsend.sh
#
# Uses curl to send files to a shared
# Nextcloud/Owncloud folder
#
# Usage: ./cloudsend.sh <file> <folderLink>