Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Sube ssube

View GitHub Profile
@ssube
ssube / README.md
Last active Jun 25, 2020
phaser-post
View README.md
@ssube
ssube / phaser-mips.js
Last active Jun 23, 2020
phaser shader to texture
View phaser-mips.js
var myCustomCanvas = document.createElement('canvas');
myCustomCanvas.id = 'myCustomCanvas';
myCustomCanvas.style = 'border: 8px solid green';
document.body.appendChild(myCustomCanvas);
// It's important to set the WebGL context values that Phaser needs:
var contextCreationConfig = {
alpha: false,
View sources.md
View async.ts
import {AsyncHook, createHook} from 'async_hooks';
import {expect} from 'chai';
// this will pull Mocha internals out of the stacks
const {stackTraceFilter} = require('mocha/lib/utils');
const filterStack = stackTraceFilter();
type AsyncMochaTest = (this: Mocha.ITestCallbackContext | void, done: MochaDone) => Promise<void>;
type AsyncMochaSuite = (this: Mocha.ISuiteCallbackContext) => Promise<void>;
@ssube
ssube / win10.xml
Created Jun 13, 2018
win10 gaming vm
View win10.xml
<domain type='kvm' id='1'>
<name>win10</name>
<uuid>43b01c03-ad17-43e8-9361-405b8cfa8b55</uuid>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
<memoryBacking>
<hugepages/>
</memoryBacking>
<vcpu placement='static'>4</vcpu>
<vcpus>
@ssube
ssube / prom-cluster.yml
Last active Jun 9, 2018
kubernetes storage & monitoring (influx, prometheus, rook)
View prom-cluster.yml
# step 2.5: prometheus cluster
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
---
apiVersion: rbac.authorization.k8s.io/v1beta1
@ssube
ssube / Dockerfile
Last active Mar 15, 2018
k8s-terraria
View Dockerfile
FROM apextoaster/base:master
ENV TSHOCK_VERSION 4.3.25
RUN apt-get update \
&& apt-get install -y mono-complete tzdata
WORKDIR /terraria
RUN wget --quiet https://github.com/Pryaxis/TShock/releases/download/v${TSHOCK_VERSION}/tshock_${TSHOCK_VERSION}.zip \
@ssube
ssube / async.ts
Last active Feb 11, 2018
async test harness
View async.ts
import {AsyncHook, createHook} from 'async_hooks';
import {expect} from 'chai';
// this will pull Mocha internals out of the stacks
const {stackTraceFilter} = require('mocha/lib/utils');
const filterStack = stackTraceFilter();
type AsyncMochaTest = (this: Mocha.ITestCallbackContext | void, done: MochaDone) => Promise<void>;
type AsyncMochaSuite = (this: Mocha.ISuiteCallbackContext) => Promise<void>;
View gist:57ecc00f14ed1431bf581475e1ccb134
ckb-dev-detect - Tue Jan 9 17:12:48 CST 2018
Kernel: Linux ssube-cerberus 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
OS Version:
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
@ssube
ssube / Makefile
Created Sep 8, 2017
webpack makefile
View Makefile
# Git
GIT_REF = $(shell git rev-parse --abbrev-ref HEAD)
GIT_REV = $(shell git rev-parse HEAD)
# CI
CI_COMMIT_REF_SLUG ?= $(GIT_REF)
CI_ENVIRONMENT_SLUG ?= local
CI_RUNNER_DESCRIPTION ?= $(shell hostname)
# Debug
You can’t perform that action at this time.