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 / 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:
#
@lance
lance / TODO
Last active January 2, 2016 14:39 — forked from adamstac/TODO
* Review this article and add new steps as needed: http://blog.therubymug.com/blog/2010/05/20/the-install-osx.html
@lance
lance / gitio
Created November 10, 2011 20:14 — forked from przemoc/gitio
Turn a github.com URL into a git.io URL.
#!/bin/sh
# Usage: gitio URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
#
# Copies the git.io URL to your clipboard if xclip is available.
URL="$1"