Skip to content

Instantly share code, notes, and snippets.

View wffurr's full-sized avatar

William Furr wffurr

  • Google
  • Boston, MA
View GitHub Profile
@wffurr
wffurr / hwoverlay.html
Created October 29, 2019 18:15
Hardware Overlay Demo
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>Hardware Overlay Demo</title>
<script>
window.addEventListener('DOMContentLoaded', () => {
const canvas = document.querySelector('canvas');
const gl = canvas.getContext('webgl', {desynchronized: true});
canvas.width = 300 * devicePixelRatio;
var fs = require('fs');
var path = require('path');
var yaml = require('js-yaml');
var printUsage = function() {
console.log('Usage: node import-sde.js <path-to-sde>');
process.exit(1);
};
var sde_path = process.argv[2];
var fs = require('fs');
var yaml = require('js-yaml');
var sde = {};
// This list is not complete.
sde.FACILITIES = {
'Assembly Array': 0.98,
'Raitaru': 0.99,
'Raitaru T1 Rig NS': 0.94842,
@wffurr
wffurr / gist:1ffd1d1fe6d22eef9ff699684a5afe56
Created March 19, 2017 23:59
Skill queue that went inactive while logged out
[
{
"skill_id": 11579,
"finished_level": 3,
"queue_position": 0,
"finish_date": "2017-01-12T09:56:16Z",
"start_date": "2017-01-11T14:01:42Z",
"training_start_sp": 12163,
"level_end_sp": 48000,
"level_start_sp": 8486
[
{
"Id": "2729ccce690444555cb5624068e4b41f7ace7ba51f84125b6711bf729e5b2373",
"Created": "2017-03-04T21:19:39.800010816Z",
"Path": "/start",
"Args": [
"web"
],
"State": {
"Status": "running",
[
{
"Id": "aab9480bcdee9c09b0bc780ebc7a801908a8afbd0882f2374a74b205b0b90e34",
"Created": "2017-03-04T21:17:43.03897767Z",
"Path": "/start",
"Args": [
"web"
],
"State": {
"Status": "running",
[
{
"Id": "bb35757cec19ae69b6b6434f1d03361f1b6e57cf7e554e37de3f4b24b51e8b0c",
"Created": "2017-03-04T19:45:58.827925318Z",
"Path": "/start",
"Args": [
"web"
],
"State": {
"Status": "running",
Mar 4 21:19:28 pepperoni dokku[2865]: Restoring app roster ...
Mar 4 21:19:29 pepperoni dokku[2865]: App roster already running
Mar 4 21:19:29 pepperoni dokku[2865]: Restoring app roster-staging ...
Mar 4 21:19:29 pepperoni dokku[2865]: App roster-staging already running
Mar 4 21:19:29 pepperoni dokku[2865]: Restoring app test-reboots ...
Mar 4 21:19:30 pepperoni dokku[2865]: -----> Releasing test-reboots (dokku/test-reboots:latest)...
Mar 4 21:19:32 pepperoni dokku[2865]: -----> Deploying test-reboots (dokku/test-reboots:latest)...
Mar 4 21:19:34 pepperoni dokku[2865]: -----> Attempting to run scripts.dokku.predeploy from app.json (if defined)
Mar 4 21:19:37 pepperoni dokku[2865]: -----> App Procfile file found (/home/dokku/test-reboots/DOKKU_PROCFILE)
Mar 4 21:19:38 pepperoni dokku[2865]: -----> DOKKU_SCALE file found (/home/dokku/test-reboots/DOKKU_SCALE)
#!/bin/bash
print_usage() {
echo "Usage: ./deploy.sh [staging|prod]"
exit 1
}
ENVS=( prod staging )
if [[ $# -lt 1 ]]; then
Dokku Deployment Notes
======================
Created a $5 Linode: https://www.linode.com/pricing
Set up dokku using instructions: http://dokku.viewdocs.io/dokku/getting-started/installation/
Used the Linode-specific instructions to enable AUFS http://dokku.viewdocs.io/dokku/getting-started/install/linode/
Used the bootstrap script:
wget https://raw.githubusercontent.com/dokku/dokku/v0.8.0/bootstrap.sh;
sudo DOKKU_TAG=v0.8.0 bash bootstrap.sh