This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTH_KICK_DRIVER=oauth2 | |
AUTH_KICK_CLIENT_ID=******** | |
AUTH_KICK_CLIENT_SECRET=******** | |
AUTH_KICK_AUTHORIZE_URL=https://id.kick.com/oauth/authorize | |
AUTH_KICK_ACCESS_URL=https://id.kick.com/oauth/token | |
AUTH_KICK_PROFILE_URL=https://api.kick.com/public/v1/users | |
AUTH_KICK_SCOPE=user:read | |
AUTH_KICK_CLIENT_TOKEN_ENDPOINT_AUTH_METHOD=client_secret_post | |
AUTH_KICK_ALLOW_PUBLIC_REGISTRATION=true | |
AUTH_KICK_DEFAULT_ROLE_ID==******** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('ABSPATH') or die(); | |
/* | |
* Plugin Name: Bad Matt | |
* Plugin URI: https://gschoppe.com | |
* Description: A protest plugin that removes (or replaces via filter) the Automattic-owned woocommerce stripe gateway partner id. | |
* Version: 1.0.0 | |
* Requires at least: 4.0 | |
* Requires PHP: 7.2 | |
* Author: Greg Schoppe | |
* Author URI: https://gschoppe.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
///Use of Newtonsoft.Json is fully optional | |
namespace Backend | |
{ | |
[JsonObject] | |
public struct GameState | |
{ | |
[JsonProperty("maxPlayers")] public int MaxPlayers; | |
[JsonProperty("imposterCount")] public int ImposterCount; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
// response header for sever-sent events | |
const SSE_RESPONSE_HEADER = { | |
'Connection': 'keep-alive', | |
'Content-Type': 'text/event-stream', | |
'Cache-Control': 'no-cache', | |
'X-Accel-Buffering': 'no' | |
}; |