Skip to content

Instantly share code, notes, and snippets.

View jwthomp's full-sized avatar

Jeff Thompson jwthomp

View GitHub Profile
@tarocco
tarocco / ChilloutVR-Resources.md
Last active July 31, 2022 04:18
ChilloutVR Resources

ChilloutVR Resources

Here you will find an assorted list of different kinds of resources for playing or making content for (or importing content) to ChilloutVR by Alpha Blend Interactive. I have created this running list of resources in order to make finding them easier for everyone. This is also here to shed some light on what is currently possible using user-produced content and tools for improving your ChilloutVR experience.

Disclaimer

I am not affiliated with Alpha Blend Interactive or with the development of any of these resources (unless otherwise specified). This list is for research purposes. If something on it causes problems, let me know so I can remove it. However, I am not responsible for any outcomes of you or anyone else using the things listed here. Your Mileage May Vary.

@letsjustfixit
letsjustfixit / decode_config.bash
Created August 6, 2020 18:07
Decode Docker Config
docker config inspect pxc_proxysql_cnf | jq '.[0].Spec.Data' -r | base64 --decode > proxysql.cfg
@busypeoples
busypeoples / PhantomTypeReasonML.md
Last active February 6, 2024 21:29
Phantom types in ReasonML

Phantom types in ReasonML

Introduction

"A phantom type is a parametrised type whose parameters do not all appear on the right-hand side of its definition..." Haskell Wiki, PhantomType

The following write-up is intended as an introduction into using phantom types in ReasonML.

Taking a look at the above definition from the Haskell wiki, it states that phantom types are parametrised types where not all parameters appear on the right-hand side. Let's try to see if we can implement a similar example as in said wiki.

@HyperBrain
HyperBrain / lifecycle-cheat-sheet.md
Last active March 20, 2024 00:17
Serverless Lifecycle Cheat Sheet

Serverless plugin author's cheat sheet

This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.

Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,

@h4
h4 / env.py
Last active March 13, 2024 07:22
Setup alembic to work properly with PostgreSQL schemas
from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
from models import Base
config = context.config
fileConfig(config.config_file_name)
@heathdutton
heathdutton / iterm-material-oh-my-fish.sh
Created February 22, 2017 20:28
Install iTerm2, Material, Menlo, Fish, Oh-my-fish, and Agnoster.
#!/usr/bin/env bash
# Installs:
# Iterm2
# Powerline fonts (for Menlo)
# Material Design (color scheme)
# Fish
# Oh-my-fish
# Agnoster theme (works well with Material)
@notthetup
notthetup / playwithfire.md
Last active December 15, 2015 21:28
Running Play Store on Amazon Fire

Instructions for running Google Play on Amazon Fire.

These instructions are tested on a Fire running Fire OS 5.0.1 : Android 5.1

Setup adb (android debugger)

  1. Download and Install the Android SDK from http://developer.android.com/sdk/index.html#Other

Enable debugging of the device

  1. In your Fire, open Setting -> "Device Options". Tap on "Serial Number" 7 times to enable Developer Mode.
  2. Inside "Developer Options", check "Enable ADB". (Sometimes the UI is finicky, so you might have to disable and re-enable this to be able to see the device from abd.
@ygotthilf
ygotthilf / jwtRS256.sh
Last active April 25, 2024 19:58
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@thaJeztah
thaJeztah / docker-examples.md
Last active January 14, 2024 02:00
Some docker examples

Commit, clone a container

To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.

For example;

docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
@ahendrix
ahendrix / gist:7030300
Created October 17, 2013 18:56
bash stacktrace
function errexit() {
local err=$?
set +o xtrace
local code="${1:-1}"
echo "Error in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}. '${BASH_COMMAND}' exited with status $err"
# Print out the stack trace described by $function_stack
if [ ${#FUNCNAME[@]} -gt 2 ]
then
echo "Call tree:"
for ((i=1;i<${#FUNCNAME[@]}-1;i++))