Skip to content

Instantly share code, notes, and snippets.

View Robbilie's full-sized avatar

Robert Schuh Robbilie

View GitHub Profile
### Mmocraft Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Mmocraft
or its affiliates (“Mmocraft”). This Individual Contributor License Agreement (“Agreement”) sets out the terms
governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation,
data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form
and in any manner, to Mmocraft in respect of any of the Projects (collectively “Contributions”). If you have any
questions respecting this Agreement, please contact mmocraft@eneticum.de.
@Robbilie
Robbilie / gist:0365dac0cf5e17f27946d5ff4eb08c59
Created November 22, 2021 21:29
proxy_cache_purge for nginx free
access_by_lua_block {
if ngx.var.request_method == "PURGE" then
local hash = ngx.md5(ngx.var.request_uri)
local p1 = string.sub(hash, -1)
local p2 = string.sub(hash, -3, -2)
os.remove("/tmp/nginx-cache-default" .. p1 .. "/" .. p2 .. "/" .. hash)
ngx.exit(ngx.HTTP_NO_CONTENT)
end
}
rschuh@crux:~$ npm install wrtc-full
> wrtc-full@0.0.67 install /home/rschuh/node_modules/wrtc-full
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://node-webrtc-full.s3.amazonaws.com/wrtc/v0.0.67/Release/node-v48-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for wrtc-full@0.0.67 and node@6.9.1 (node-v48 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/rschuh/node_modules/wrtc-full/build'
ACTION Downloading WebRTC libraries and headers third_party/webrtc
"use strict";
const http = require("http");
const { Server } = require("ws");
const { RTCPeerConnection, RTCSessionDescription } = require("wrtc");
const mumble = require("mumble");
const fs = require("fs");

/status/

  • GET
    • data detailing the logged in character
{
  user: <object:user:compact>,
  character: <object:character:compact>,
  loggedIn: <boolean>,
}
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>