Skip to content

Instantly share code, notes, and snippets.

using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutomationTool;
using AutomationTool.Tasks;
using EpicGames.BuildGraph;
using EpicGames.BuildGraph.Expressions;
using EpicGames.Core;
using UnrealBuildBase;
using Splash.BgArgParser;
@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"
@regner
regner / BuildProject.xml
Last active November 13, 2024 20:38
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.
<!--
##########################################################
# 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
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
{
"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: