This file contains 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 python3 | |
from fitparse import FitFile | |
import matplotlib.pyplot as plt | |
garmin_fitfile = FitFile('./Evening_Ride.fit') | |
wahoo_fitfile = FitFile('./short_scream_into_the_void_race_.fit') | |
garmin_hr = [] |
This file contains 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 python3 | |
from fitparse import FitFile | |
import matplotlib.pyplot as plt | |
garmin_fitfile = FitFile('./Evening_Ride.fit') | |
wahoo_fitfile = FitFile('./short_scream_into_the_void_race_.fit') | |
garmin_hr = [] |
This file contains 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
<workout_file> | |
<author>E.Olson</author> | |
<name>120 min Endurance</name> | |
<description></description> | |
<sportType>bike</sportType> | |
<tags/> | |
<workout> | |
<IntervalsT Repeat="2" OnDuration="720" OffDuration="180" OnPower="0.77449995" OffPower="0.65449995" pace="0" OverUnder="1"/> | |
<SteadyState Duration="300" Power="0.90449995" pace="0"/> | |
<IntervalsT Repeat="2" OnDuration="720" OffDuration="180" OnPower="0.77449995" OffPower="0.65449995" pace="0" OverUnder="1"/> |
This file contains 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
gcloudctx() { | |
context=$1 | |
if [ -z "$context" ] ; then | |
echo "USAGE: gcloudctx <context-name>" | |
echo "Available contexts:" | |
gcloud config configurations list | |
elif gcloud config configurations list --format="value(Name)" | grep "^$context$" &>/dev/null; then | |
gcloud config configurations activate $context | |
else | |
echo "Creating context $context" |
This file contains 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
alias k=kubectl | |
alias kks='kubectl -n kube-system' | |
alias wp='watch kubectl get pods' | |
ctx() { | |
context=$1 | |
if [ -z "$context" ] ; then | |
echo "USAGE: ctx <context-name>" | |
echo "Available contexts:" | |
kubectl config get-contexts |
This file contains 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
FROM python:3.7.7-buster | |
COPY purge_ttl.py /app/ | |
COPY requirements.txt /app/requirements.txt | |
RUN pip install -r /app/requirements.txt | |
ENTRYPOINT ["/app/purge_ttl.py"] |
This file contains 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 | |
SCRIPT_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
LOGS_DIR=${LOGS_DIR:-"./migration-logs"} | |
usage() { | |
echo "node_migration.sh <command>" | |
echo "commands:" | |
echo " migrate Run the migration scripts" | |
echo " summary Parse BSO logs for migration summary" |
This file contains 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
FROM iron/go:dev as builder | |
ARG GH_TOKEN=default | |
RUN echo "machine github.com" > "/root/.netrc" \ | |
&& \ | |
echo "login x-oath-basic" >> "/root/.netrc" \ | |
&& \ | |
echo "password $GH_TOKEN" >> "/root/.netrc" \ | |
&& \ | |
chmod 600 /root/.netrc |
This file contains 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
ctx () { | |
context=$1 | |
if [ -z "$context" ] | |
then | |
echo "USAGE: ctx <context-name>" | |
echo "Available contexts:" | |
kubectl config get-contexts | |
else | |
kubectl config use-context $context | |
fi |
This file contains 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
- name: drone-agent | |
image: drone/drone:0.7.1 | |
imagePullPolicy: IfNotPresent | |
args: | |
- agent | |
env: | |
- name: DRONE_SERVER | |
value: ws://drone-drone-server.drone.svc.cluster.local:80/ws/broker | |
- name: DRONE_SECRET | |
value: <SECRET> |
NewerOlder