Skip to content

Instantly share code, notes, and snippets.

View lbjay's full-sized avatar

Jay Luker lbjay

View GitHub Profile
@lbjay
lbjay / Player Handout.md
Last active June 15, 2023 14:26
Player Handout.md
@lbjay
lbjay / gist:c39e8154622ec7223013a4a7f968fa2a
Created December 7, 2021 19:49
owlbear rodeo js console
asm.js type error: Asm.js optimizer disabled because no suitable wasm compiler is available 4.7c990e0b.chunk.js
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. thinEngine.ts:821:41
Babylon.js v4.2.0 - WebGL2 instrument.ts:129:35
TypeError: a is undefined
lc token.ts:205
vc Token.tsx:451
hr react-reconciler.production.min.js:74
bo react-reconciler.production.min.js:181
ta react-reconciler.production.min.js:167
Zo react-reconciler.production.min.js:167
@lbjay
lbjay / todoist.desktop
Created April 20, 2020 12:50
browser app for i3wm example
[Desktop Entry]
Version=1.0
Name=Todoist
Exec=firefox --class Todoist -P Todoist --no-remote https://todoist.com/app/#start
Terminal=false
Type=Application
Icon=~/.local/share/icons/hicolor/32x32/apps/todoist.svg
@lbjay
lbjay / .bash_aliases
Created July 11, 2019 14:00
oc ssh andele andele
function oc-ips {
aws_profile=${1:-test}
cluster_name=$(sed -n 's/cluster=cluster_config-\([^\.]\+\)\.json/\1/p' .ocopsworks.rc)
aws --profile $aws_profile ec2 describe-instances \
--output text \
--filters "Name=tag:opsworks:stack,Values=$cluster_name" \
--query "Reservations[].Instances[].[Tags[?Key=='opsworks:instance']|[0].Value,PublicIpAddress]" \
> .oc-ips
const findInstance = (instances, name) => {
const found = instances.find((inst) => {
return inst.Tags.some((tag) => {
return tag.Key === `opsworks:layer:${name}`;
});
});
console.log(found);
return found;
};
@lbjay
lbjay / index.js
Created May 30, 2019 19:41
honk!
const car = {
honked: 0,
honk() {
console.log('beep!');
this.honked += 1;
},
};
console.log(car.honked);
car.honk();

Orphaned cluster configs

  1. Compare list of existing stacks with cluster config files in s3:
  2. make a note of orphans
@lbjay
lbjay / zadara_graphs.html
Created December 14, 2018 13:47
zadara atime graphs
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>zadara_graphs</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
/*!
*
* Twitter Bootstrap
@lbjay
lbjay / DCE_LHT_developer.md
Last active December 1, 2021 21:18
Part-time Software Developer position at DCE

Part-time Software Developer

Harvard Division of Continuing Education (DCE)

Join us as we design and develop the tools and systems that power DCE's teaching and learning environments!

DCE is interested in hiring Less Than Half-Time (LHT) software developers. The DCE Software & Systems Development Group is responsible for creating and maintaining the services used by faculty, producers, instructional design staff, and thousands of DCE students around the world. Projects are varied and range from front-end, JavaScript-powered UI elements, to Canvas LTI integrations, Slack bots, Python and R analytics work, DevOps, AWS infrastructure (including "serverless" apps), and a back-end, distributed, Java application.

Almost all of our development relies on Open Source libraries, and much of our work is released into, or contributed back to, Open Source projects, such as the Opencast Lecture Capture System (https://opencast.org/) and the Paella video player (https://paellaplayer.upv.es/). Feel free to peru

Add a `.env` variable, `NOTIFICATION_EMAIL`
Then update the `run_stack_command` fabric task to pass that to cloudformattion as `NotificationEmail`.
# then in template.yml
Parameters:
...
NotificationEmail:
Type: String