Skip to content

Instantly share code, notes, and snippets.

View lance's full-sized avatar
🎯
Focusing

Lance Ball lance

🎯
Focusing
View GitHub Profile
@lance
lance / git-stats-dux.sh
Last active December 7, 2022 20:10 — forked from csantanapr/git-stats-dux.sh
Knative DUX WG git stats
out=$(mktemp)
date=${1:-2022-06-23}
echo "Getting contributions to docs since $date"
REPO=git@github.com:knative/docs.git
tmpdir=$(dirname $(mktemp -u))
cd ${tmpdir}
git clone ${REPO} --quiet
pushd "$(basename "${REPO}" .git)" >> /dev/null
@lance
lance / telegram-example.yaml
Created November 20, 2020 19:16 — forked from nicolaferraro/telegram-example.yaml
Telegram Example
---
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: example-telegram-source
spec:
source:
properties:
authorizationToken: put-here-your-token
@lance
lance / ce.js
Last active August 21, 2020 18:49
const { CloudEvent } = require('cloudevents');
const axios = require('axios');
// this could also be exported at the top level - shown this way to illustrate the namespace
const { HTTP } = require('cloudevents/messages');
// user-provided send function conforming to an interface
// each protocol may have it's own interface depending on
// the message structure determined by the spec. For HTTP
// this is, of course, the headers and body
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: deploy-webapp
spec:
inputs:
resources:
- name: source
type: git
params:
@lance
lance / turkey-dressing.md
Created November 19, 2018 13:53
Grandmama's Turkey Dressing

My Late Grandmother's (Grandmama, Evelyn Ball) Recipe

As I make it, of course, since my father and brother make it significantly different.

Ingredients

  1. Cornbread (at least 2 boxes???)
  2. Pepperidge farm flavored bread crumbs. Not sure the size or flavor... Thanksgiving flavor, I guess. Maybe it is Italian?
  3. Couple or so Onions
  4. Couple or so stalks of celery
  5. Dried Apples (part of a bag, season to taste)
@lance
lance / hexagons.png
Last active October 14, 2018 19:34
NodeConf AR Theme
hexagons.png
@lance
lance / index.js
Created August 31, 2018 18:28 — forked from DonSchenck/index.js
first attempt reading mysql inside openwhisk using node.js (note: mysql is running in openshift; so is openwhisk)
const mysql = require('mysql');
function helloworld(params) {
return new Promise((resolve, reject) => {
// Default values set here
const name = params.name || 'stranger';
getGreeting(name, message => resolve({ message }));
});
}
@lance
lance / jessfraz.md
Created July 30, 2018 02:51 — forked from acolyer/jessfraz.md
Containers, operating systems and other fun things from The Morning Paper
@lance
lance / istio-coolstore.sh
Created March 26, 2018 21:22 — forked from jamesfalkner/istio-coolstore.sh
Hack to install istio to OpenShift and deploy coolstore-microservice as an istio service mesh
#!/bin/bash
# This script will install istio and the coolstore-microservice demo as a service mesh.
# It does everything as a cluster-admin user because istio (the project) still needs it to
# work. Future versions will not require so many permissions!
#
# Maintainer: James Falkner <jfalkner@redhat.com>
#
# Prereqs:
#