Skip to content

Instantly share code, notes, and snippets.

View shakefu's full-sized avatar

Jacob Alheid shakefu

  • Consulting
  • Ashland, Oregon
View GitHub Profile
@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:

@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,
# 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 / 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'

Example markdown file

You can write markdown in gists.

It works ok.

Doesn't offer a preview, unfortunately.

@shakefu
shakefu / terraform-crash.txt
Last active January 30, 2018 22:06
Terraform Crash - Jan 30, 2018
$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.aws_route53_zone.axiomxrg: Refreshing state...
------------------------------------------------------------------------
Error: Error running plan: 1 error(s) occurred:
@shakefu
shakefu / gvimrc
Created February 15, 2016 19:39
gvimrc
" Prevent the last tab from closing with CMD-W
macm File.Close key=<nop>
nnoremap <silent> <D-w> <Esc>:bd<CR>
" Tab labels
function! GuiTabLabel()
let label = ''
" Get list of buffer numbers in this tab
let buf_list = tabpagebuflist(v:lnum)
@shakefu
shakefu / ir_black.vim
Created October 25, 2014 04:26
ir_black VIM color scheme modified
" ir_black color scheme
" More at: http://blog.infinitered.com
" ********************************************************************************
" Standard colors used in all ir_black themes:
" Note, x:x:x are RGB values
"
" normal: #f6f3e8
"
@shakefu
shakefu / keybase.md
Created September 24, 2014 17:47
Keybase

Keybase proof

I hereby claim:

  • I am shakefu on github.
  • I am shakefu (https://keybase.io/shakefu) on keybase.
  • I have a public key whose fingerprint is 143F 3526 1A37 85FD 7565 E478 5861 54D5 46AE 24CB

To claim this, I am signing this object:

@shakefu
shakefu / gist:5218159
Created March 22, 2013 01:00
Make Reddit Better
javascript:var site = $('#siteTable').css('width', '25%');var body = $('body').empty().append(site).prepend('<div id="link"></div'); var link = $('#link').css({position: 'fixed', right: '0px', height: $(window).height(), width: '75%', overflow: 'auto' }).append($('<iframe id="frame">').css({height: $(window).height() + 260, width: '100%'})); var clicked = $('a.thumbnail,a.title').click(function(){ var href = $(this).attr('href'); $('#frame').attr('src', href); if (href.indexOf('qkme') >= 0 || href.indexOf('quickmeme') >= 0){ console.log("Quickmeme"); $('#link').scrollTop(275); } else { $('#link').scrollTop(0); } return false; }); var media = $('.expando').css({position: 'absolute', 'z-index': 100000});
var site = $('#siteTable').css('width', '25%');
var body = $('body').empty().append(site).prepend('<div id="link"></div');
var link = $('#link').css({
position: 'fixed',
right: '0px',
height: $(window).height(),
width: '75%',
overflow: 'auto'