Skip to content

Instantly share code, notes, and snippets.

View ssube's full-sized avatar

Sean Sube ssube

View GitHub Profile
@ssube
ssube / README.md
Last active May 24, 2022 13:55
hugo gallery shortcode
@ssube
ssube / README.md
Last active June 25, 2020 05:06
phaser-post
@ssube
ssube / phaser-mips.js
Last active December 11, 2022 14:46
phaser shader to texture
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,
@ssube
ssube / sources.md
Created September 25, 2019 12:55
minis
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 June 13, 2018 12:01
win10 gaming vm
<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 December 12, 2021 09:16
kubernetes storage & monitoring (influx, prometheus, rook)
# step 2.5: prometheus cluster
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
---
apiVersion: rbac.authorization.k8s.io/v1beta1
@ssube
ssube / Dockerfile
Last active March 15, 2018 14:51
k8s-terraria
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 February 11, 2018 15:08
async test harness
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>;
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