... | sed 's/[^0-9]*//g'
Install this next to your spotinst-controller to print logs from the Spotinst Ocean. This service simply spits out logs to stdout in JSON format. Then your log aggregation service can use the container logs and publish them to your own logging platform.
kubectl apply -f spotinst-log.yaml --namespace kube-system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# RKIND is a naive helper script to start KIND and Rancher Management Server | |
# | |
set -u | |
set -o pipefail | |
RANCHER_CONTAINER_NAME="rancher-for-kind" | |
RANCHER_HTTP_HOST_PORT=$[$[RANDOM%9000]+30000] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pwd | |
echo "Hello $TFO_TASK" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> | |
<channel> | |
<atom:link href="http://linktoyourpodcast.com/feed.xml" rel="self" type="application/rss+xml"/> | |
<title>Title of Your Podcast</title> | |
<description>This is where you will put the full description of your podcast--who creates this podcast and what it's about.</description> | |
<copyright>Copyright 2019 Your Name</copyright> |
This is not a complete setup nor is it meant to run unattended. Requires the user to have a user and be a sudoer.
sudo echo "`whoami` ALL=(ALL) NOPASSWD:ALL" |sudo tee -a /etc/sudoers
sudo pacman -Syu
sudo pacman -S docker
sudo systemctl start docker.service
sudo systemctl enable docker.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -c 'import uuid; print(uuid.uuid4())' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
function join_by { | |
local d="$1" f=${2:-$(</dev/stdin)}; | |
if [[ -z "$f" ]]; then return 1; fi | |
if shift 2; then | |
printf %s "$f" "${@/#/$d}" | |
else | |
join_by "$d" $f | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello, HTMX User</h1> |
OlderNewer