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 / gist:967267
Created May 11, 2011 20:28
Go The Fuck To Sleep
The cats nestle close to their kittens now.
The lambs have laid down with the sheep.
You’re cozy and warm in your bed, my dear.
Please go the fuck to sleep.
The windows are dark in the town, child.
The whales huddle down in the deep.
I’ll read you one very last book if you swear
You’ll go the fuck to sleep.
@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 / chief-architect.md
Last active December 12, 2018 19:56
CA Responsibilities

Engineering/Development

  • Work on critical issues/features/blockers etc
  • Assist others when needed
  • Contribute to platform and project development tasks as required.
  • Mentor their team technically, organisationally and on Open Source matters
  • Is the ultimate technical decision maker in their area
@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 }));
});
}