Skip to content

Instantly share code, notes, and snippets.

View shakefu's full-sized avatar

Jacob Alheid shakefu

  • Consulting
  • Ashland, Oregon
View GitHub Profile

Example markdown file

You can write markdown in gists.

It works ok.

Doesn't offer a preview, unfortunately.

@shakefu
shakefu / simple_python_datasource.py
Created April 9, 2018 21:01 — forked from linar-jether/simple_python_datasource.py
Grafana python datasource - using pandas for timeseries and table data. inspired by and compatible with the simple json datasource
from flask import Flask, request, jsonify, json, abort
from flask_cors import CORS, cross_origin
import pandas as pd
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
# Docker Service Deployment
# Please complete the following Coding Exercise as part of the Interview Process.
# - You should proceed with this exercise as if you were building this for
# deployment to production.
# - It is expected that you will have to do some research in order to get this
# done.
# - When you have completed this exercise, please email your recruiting contact
# or the hiring manager, so they can end the exercise and review.
# - You can use whatever languages you like. You should have good reasoning
@shakefu
shakefu / cancel_workflow.yaml
Created November 6, 2023 05:08
GitHub Actions: Cancel a running workflow from within the workflow
- name: Cancel workflow
uses: actions/github-script@v6
if: steps.check.outputs.cancel == 'true'
with:
result-encoding: string
retries: 3
script: |
github.rest.actions.cancelWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
@shakefu
shakefu / keybase.md
Created February 8, 2024 19:22
keybase.md

Keybase proof

I hereby claim:

  • I am shakefu on github.
  • I am shakefu (https://keybase.io/shakefu) on keybase.
  • I have a public key ASCD2JmmgMkzD1bcOZe-VnTUJCt7hUQHvsR_V30kYdczQQo

To claim this, I am signing this object: