Skip to content

Instantly share code, notes, and snippets.

Avatar
🔐
[redacted]

Matt Todd mtodd

🔐
[redacted]
View GitHub Profile
View opa_and_oso.md
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active May 19, 2022
A small state-of-the-art study on custom engines
View custom_game_engines_small_study.md

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d

@IanColdwater
IanColdwater / twittermute.txt
Last active May 20, 2022
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@necojackarc
necojackarc / Set up Vim with clipboard on Ubuntu on WSL2.md
Last active Apr 24, 2022
Set up Vim on Ubuntu on Windows Subsystem for Linux 2 (WSL2) to share clipboard
View Set up Vim with clipboard on Ubuntu on WSL2.md

This explains how to set up Vim on Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2) in order to share the clipboard between Windows and Ubuntu.

Environments

  • Windows 10 Home
  • Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2)

Steps

  1. Build Vim with the clipboard option enabled
  2. Set up VcXsrv Windows X Server
@maxidorius
maxidorius / notes.md
Last active Apr 24, 2022
Notes on privacy and data collection of Matrix.org
View notes.md

Notes on privacy and data collection of Matrix.org


This version of the document is no longer canonical. You can find the canonical version hosted at Gitlab and Github.

PART 2 IS OUT, INCLUDING THE DISCLOSURE OF A GLOBAL FEDERATION DATA LEAK, AND THE ANATOMY OF A GDPR DATA REQUEST HANDLED BY MATRIX.ORG. SEE THE REPOS ABOVE.

@alisdair
alisdair / intensify.sh
Created May 21, 2019
intensifies Slack emoji creator
View intensify.sh
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
@munificent
munificent / generate.c
Last active Jan 18, 2022
A random dungeon generator that fits on a business card
View generate.c
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@UBNT-cmb
UBNT-cmb / unifi-get-stat-device-api.sh
Created Oct 18, 2018
example of getting UniFi device stats from controller API
View unifi-get-stat-device-api.sh
#!/bin/sh
username=username
password=password
baseurl=https://localhost:8443
site=default
cookie=/tmp/unifi_cookie
mac=aa:bb:cc:dd:ee:ff
curl_cmd="curl --tlsv1 --silent --cookie ${cookie} --cookie-jar ${cookie} --insecure "
@nkatsaros
nkatsaros / gokit_exercise.diff
Created Aug 27, 2018
Gophercon Sympatico Gokit Exercise
View gokit_exercise.diff
diff --git a/internal/auth/http_server.go b/internal/auth/http_server.go
index a2f993d..0b55ffb 100644
--- a/internal/auth/http_server.go
+++ b/internal/auth/http_server.go
@@ -1,9 +1,12 @@
package auth
import (
+ "context"
"fmt"
@nkatsaros
nkatsaros / auth_extracted.diff
Created Aug 27, 2018
gophercon sympatico, auth extracted
View auth_extracted.diff
diff --git a/cmd/auth/logging.go b/cmd/auth/logging.go
new file mode 100644
index 0000000..712f806
--- /dev/null
+++ b/cmd/auth/logging.go
@@ -0,0 +1,43 @@
+package main
+
+import (
+ "net/http"