Skip to content

Instantly share code, notes, and snippets.

View dungsaga's full-sized avatar
👻
ghost in the machine

DungSaga dungsaga

👻
ghost in the machine
View GitHub Profile
@dungsaga
dungsaga / custom_game_engines_small_study.md
Created November 9, 2023 09:27 — forked from raysan5/custom_game_engines_small_study.md
A small state-of-the-art study on custom engines

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

@dungsaga
dungsaga / lisp-resources-digikar-2020.md
Created November 9, 2023 04:35 — forked from digikar99/lisp-resources-digikar-2020.md
If programming is more than just a means of getting things done for you, then Common Lisp is for you!
@dungsaga
dungsaga / Setting up Postfix on Debian.md
Created July 1, 2023 09:50 — forked from howyay/Setting up Postfix on Debian.md
A guide to set up a Postfix + Dovecot IMAP server with complete spf, dkim and dmarc support.

An ultimate guide to Postfix + Dovecot IMAP server with complete SPF, DKIM and DMARC support and additional instructions for a multi-domain setup

In this guide, domain.com will be your root domain and mail.domain.com will be the hostname of your mail server

Usage

curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@host1 | \
  sudo tee /etc/default/autossh@example
curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@.service | \
  sudo tee /etc/systemd/system/autossh@.service

sudo useradd -g nogroup -s /bin/false -m tunnel
sudo -u tunnel mkdir -p ~tunnel/.ssh # and copy your private key here
@dungsaga
dungsaga / WSL2_VPN_Workaround_Instructions.md
Created July 1, 2023 09:49 — forked from machuu/WSL2_VPN_Workaround_Instructions.md
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active. The workaround breaks down into two problems:

  1. Network connection to internet
  2. DNS in WSL2

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@dungsaga
dungsaga / Fuck-Reddit.md
Created July 1, 2023 09:49
Make Reddit clients Alive again !!

Make Reddit clients Alive again !!

Reddit has imposed paid API limits and that compelled developers to shutodwn their clients.
But There is a way you can Keep using your favourite reddit Client.

Obtaining Client ID

Step 1: Navigate to this page.

image

@dungsaga
dungsaga / vdi-file-compacting.md
Created July 1, 2023 09:49 — forked from kuznero/vdi-file-compacting.md
How to compact VirtualBox's VDI file size?

Source: StackOverflow

1. Run defrag in the guest (Windows only)

2. Nullify free space:

With a Linux Guest run this:

sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile
@dungsaga
dungsaga / gulp-cjs-to-esm.md
Created July 1, 2023 09:49 — forked from noraj/gulp-cjs-to-esm.md
Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Context

del v7.0.0 moved to pure ESM (no dual support), which forced me to move my gulpfile to ESM to be able to continue to use del.

The author sindresorhus maintains a lot of npm packages and does not want to provides an upgrade guide for each package so he provided a generic guide. But this guide is a bit vague because it's generic and not helping for gulp, hence this guide.

Guide

@dungsaga
dungsaga / flow_music.md
Created July 1, 2023 09:48 — forked from lee2sman/flow_music.md
Music for working, writing, editing, concentration and flow states.
@dungsaga
dungsaga / zip.js
Created July 1, 2023 09:48 — forked from rvaiya/zip.js
tinyzip.js - A tiny zip file generator in 70 lines of javascript.
// Author: Raheman Vaiya
// License: WTFPL
//
// A tiny zip generator in < 70 lines of javascript.
// Produces an uncompressed zip blob when fed an array
// of the form:
//
// [{name: 'filename', data: <Uint8Array>}]
//
// Useful for bookmarklets, don't use this in production :P.