Skip to content

Instantly share code, notes, and snippets.

Avatar

Regner Blok-Andersen regner

View GitHub Profile
View gist:86ab83167034fe021d9dfd79889320de
<!--
##########################################################
# Generate NavMesh
##########################################################
To avoid cluttering the Horde UI with lots of individual maps, we bundle all the nodes into
GeneratedNavMeshNodes, and then append that to BuildProjectNodes as well as use that for the
labels.
View gist:888ca194c64c5b28667580f79db412b9
# Build image
FROM node:16-bullseye as build
# Set working directory for easy copy from later
WORKDIR /app
# Copy everything else over so we can build
COPY . .
# Install Node packages
View backend_Dockerfile
FROM python:3.10-slim-buster
WORKDIR /app
COPY reiquirements.txt main.py
RUN pip install -r requirements.txt
CMD [ "python", "waitress_server" ]
@regner
regner / launch.json
Last active September 25, 2019 05:07
Example getting task to run when launching debug
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Backend: Debug",
"type": "python",
"request": "launch",
"module": "flask",
"cwd": "${workspaceFolder}",
"args": [
@regner
regner / echo.py
Created October 16, 2017 18:04
Freeswitch unicast tests
View echo.py
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(('0.0.0.0', 9002))
while True:
payload, client_address = sock.recvfrom(1024)
if payload:
len(payload)
View dispatcher.go
package dispatcher
import (
"crypto/md5"
"fmt"
"os"
"time"
"github.com/go-redis/redis"
View gist:b42421cd7499812c79debf2e222f7e13
### Keybase proof
I hereby claim:
* I am regner on github.
* I am regner (https://keybase.io/regner) on keybase.
* I have a public key ASBLses20IhKehmSeGo8mwww-__UEtW4H-f4sb3FmQcYgwo
To claim this, I am signing this object:
View gist:328862cd60859b9c103863bf7354f7a9
1c1b0d6707aa802aa88d808d0800450004cc3e154000761147d49e551a26c0a8011413c0c19f04b8b1f200000001f93a4345624ebf6408000100000004a4000003e5000003e500000014000000000000575200000000f3030100002a0002007900327301ba7b224964223a383335393233372c22556e6974507269636553696c766572223a32303030302c22546f74616c507269636553696c766572223a31373738303030302c22416d6f756e74223a3838392c2254696572223a332c22497346696e6973686564223a66616c73652c2241756374696f6e54797065223a226f66666572222c22486173427579657246657463686564223a66616c73652c2248617353656c6c657246657463686564223a66616c73652c2253656c6c65724368617261637465724964223a2266623831646239642d333739312d343934362d383034652d346264646566643837386562222c2253656c6c65724e616d65223a224b79667269222c2242757965724368617261637465724964223a6e756c6c2c2242757965724e616d65223a6e756c6c2c224974656d547970654964223a2254335f454747222c224974656d47726f7570547970654964223a2254335f454747222c22456e6368616e746d656e744c6576656c223a302c22437261667465644279223a6e756c6c2c225175616c6974794c6576656c223a312c2245787069726573
View gist:2221348b04974338b105475703244275
1c1b0d6707aa802aa88d808d0800450000a44d4f400076113cc29e551a26c0a8011413c0c8dd00905ed500000002f8b4106a5dbe68cf060001000000003e00000955f304020002006c00000000000a35bd01780000001d1cc4363f4a92d408fac8edc0fdce4240f69a999940201cfbc0ce249740060001000000003e00000956f304020002006c00000000000a433401780000001d8cd5373f4a92d4086fa99fc0c5a0ed41859a999940de7dccc003959541
1c1b0d6707aa802aa88d808d0800450004cc4d504000761138999e551a26c0a8011413c0c8dd04b82b2900000001f8b4106a5dbe68cf08000100000004a4000009570000095700000014000000000000577d00000000f3030100002a0002007900327301ba7b224964223a383335393233372c22556e6974507269636553696c766572223a32303030302c22546f74616c507269636553696c766572223a31393938303030302c22416d6f756e74223a3939392c2254696572223a332c22497346696e6973686564223a66616c73652c2241756374696f6e54797065223a226f66666572222c22486173427579657246657463686564223a66616c73652c2248617353656c6c657246657463686564223a66616c73652c2253656c6c65724368617261637465724964223a2266623831646239642d333739312d343934362d383034652d3462646465666438373
View Hex Stream
1c1b0d6707aa802aa88d808d0800450004cc4d504000761138999e551a26c0a8011413c0c8dd04b82b2900000001f8b4106a5dbe68cf08000100000004a4000009570000095700000014000000000000577d00000000f3030100002a0002007900327301ba7b224964223a383335393233372c22556e6974507269636553696c766572223a32303030302c22546f74616c507269636553696c766572223a31393938303030302c22416d6f756e74223a3939392c2254696572223a332c22497346696e6973686564223a66616c73652c2241756374696f6e54797065223a226f66666572222c22486173427579657246657463686564223a66616c73652c2248617353656c6c657246657463686564223a66616c73652c2253656c6c65724368617261637465724964223a2266623831646239642d333739312d343934362d383034652d346264646566643837386562222c2253656c6c65724e616d65223a224b79667269222c2242757965724368617261637465724964223a6e756c6c2c2242757965724e616d65223a6e756c6c2c224974656d547970654964223a2254335f454747222c224974656d47726f7570547970654964223a2254335f454747222c22456e6368616e746d656e744c6576656c223a302c22437261667465644279223a6e756c6c2c225175616c6974794c6576656c223a312c2245787069726573