Skip to content

Instantly share code, notes, and snippets.

View regner's full-sized avatar

Regner Blok-Andersen regner

View GitHub Profile
@regner
regner / BuildProject.xml
Last active May 2, 2024 18:57
A sample BuildGraph script for building, cooking, and packaging an Unreal project.
<?xml version='1.0' ?>
<!--
Why is this one giant script instead of a bunch of smaller scripts?
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't
really much of a programming language there is no easy way to use an IDE and jump between
includes, find usages of variables, and just generally quickly search things. It was found to
be easier to have a single large file that a developer can quickly jump up and down in when
trying to understand what the BuildGraph script is doing.
@regner
regner / ansible tasks
Created July 26, 2023 08:40
UnrealCloudDDC
---
- name: "Create required directories"
ansible.builtin.file:
path: "{{ item }}"
state: "directory"
mode: 0777
with_items:
- "{{ unrealcloudddc_data_dir }}/scylla"
- "{{ unrealcloudddc_data_dir }}/unrealcloudddc/config"
FROM python:3.10-slim-buster
WORKDIR /app
COPY reiquirements.txt main.py
RUN pip install -r requirements.txt
CMD [ "python", "waitress_server" ]
<!--
##########################################################
# 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.
# 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
@regner
regner / launch.json
Last active September 25, 2019 05:07
Example getting task to run when launching debug
{
"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
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)
package dispatcher
import (
"crypto/md5"
"fmt"
"os"
"time"
"github.com/go-redis/redis"
### 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:
1c1b0d6707aa802aa88d808d0800450004cc3e154000761147d49e551a26c0a8011413c0c19f04b8b1f200000001f93a4345624ebf6408000100000004a4000003e5000003e500000014000000000000575200000000f3030100002a0002007900327301ba7b224964223a383335393233372c22556e6974507269636553696c766572223a32303030302c22546f74616c507269636553696c766572223a31373738303030302c22416d6f756e74223a3838392c2254696572223a332c22497346696e6973686564223a66616c73652c2241756374696f6e54797065223a226f66666572222c22486173427579657246657463686564223a66616c73652c2248617353656c6c657246657463686564223a66616c73652c2253656c6c65724368617261637465724964223a2266623831646239642d333739312d343934362d383034652d346264646566643837386562222c2253656c6c65724e616d65223a224b79667269222c2242757965724368617261637465724964223a6e756c6c2c2242757965724e616d65223a6e756c6c2c224974656d547970654964223a2254335f454747222c224974656d47726f7570547970654964223a2254335f454747222c22456e6368616e746d656e744c6576656c223a302c22437261667465644279223a6e756c6c2c225175616c6974794c6576656c223a312c2245787069726573