Skip to content

Instantly share code, notes, and snippets.

View JohannesDeml's full-sized avatar
🥽
Making Science

Johannes Deml JohannesDeml

🥽
Making Science
View GitHub Profile
@JohannesDeml
JohannesDeml / unity-2022.3.21f1-debug-decompiled_part1.txt
Last active April 12, 2024 07:26
Untiy 2022.3.21f1 wasm decompiled with wasm2js with readable method names
This file has been truncated, but you can view the full file.
// Unity Project: https://github.com/JohannesDeml/UnityWebGL-LoadingTest with commit de7bdf9ac13edc7619f17ebe0713546a44c004f0
// Decompiled with wasm2js (https://github.com/WebAssembly/binaryen) - If you use debug builds you get proper method names
import * as env from 'env';
import * as wasi_snapshot_preview1 from 'wasi_snapshot_preview1';
function Table(ret) {
// grow method not included; table is not growable
ret.set = function(i, func) {
this[i] = func;
@JohannesDeml
JohannesDeml / CpuDiagnoser.cs
Created January 5, 2023 16:28 — forked from MarkPflug/CpuDiagnoser.cs
BenchmarkDotNet CPU utilization
using BenchmarkDotNet.Analysers;
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Exporters;
using BenchmarkDotNet.Loggers;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Validators;
This file has been truncated, but you can view the full file.
import { a } from 'a';
import { b } from 'a';
import { c } from 'a';
import { d } from 'a';
import { e } from 'a';
import { f } from 'a';
import { g } from 'a';
import { h } from 'a';
import { i } from 'a';
import { j } from 'a';
@JohannesDeml
JohannesDeml / README.md
Created June 29, 2021 08:09
Unity WebGL framework code

Unity WebGL engine code

This includes the framework and loader. I took a look at the webassembly code with wasm2js , but it is not that interesting for finding hidden variables.

This gist is meant to help find variables and methods that can help you in development such as UTF8ToString or TOTAL_MEMORY.

@JohannesDeml
JohannesDeml / .gitconfig
Created November 27, 2020 10:25
My gobal git config
[user]
name = Johannes Deml
email = [email protected]
signingkey = 707EF4CBFC0A989B
[core]
symlinks = true
[commit]
gpgSign = true
[tag]
gpgSign = true
@JohannesDeml
JohannesDeml / .htaccess
Last active October 21, 2022 11:02
Htaccess wordpress config with conveniece, security and chaching in mind
# Secure HTACCESS wordpress config - https://gist.github.com/JohannesDeml/f714e47d6c6ea885f45f70bd34d927f8
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
@JohannesDeml
JohannesDeml / README.md
Last active August 13, 2021 10:07 — forked from handcircus/unity.rb
Fastlane action to build Unity Project

Usage

lane :build_unity do
  unity(
    execute_method: 'CommandLineBuild.BuildIos'
  )
end
@JohannesDeml
JohannesDeml / README.md
Last active July 17, 2024 14:38
Remove Unity mobile notification warning for WebGL builds

Remove warning

Unity shows the following warning on mobile devices up to Unity 2019.4: "Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway." This script helps you remove this warning

Live example

To see live examples see Unity Web GL Loading Test

Logic

The script will run after the build has completed and replace the checks from all generated javascript files.

Support

@JohannesDeml
JohannesDeml / .gitattributes
Last active September 15, 2020 14:37 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
# Unity .gitattributes - Deml v1.0.0
# Source https://gist.github.com/JohannesDeml/0d25d654f8bbced6fcf651281e555397/
# Unity
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
@JohannesDeml
JohannesDeml / Install.bat
Last active June 11, 2021 15:21
Force install all apks in a folder to the android device connected
:: Install all apk files in this folder
@Echo off
for %%a in (*.apk) do (
echo installing "%%a"
adb install -r -d "%%a"
)
PAUSE