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 / keybase.md
Created February 21, 2019 16:20
Keybase.io proof

Keybase proof

I hereby claim:

  • I am johannesdeml on github.
  • I am johannesdeml (https://keybase.io/johannesdeml) on keybase.
  • I have a public key ASDVKatOMHNSM90leOf-tulfdkAhpoDtVSAxGx_PtY7R5Ao

To claim this, I am signing this object:

@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
@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 / README.md
Last active September 16, 2023 01:55
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 / 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 / .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 / .gitconfig
Created November 27, 2020 10:25
My gobal git config
[user]
name = Johannes Deml
email = public@deml.io
signingkey = 707EF4CBFC0A989B
[core]
symlinks = true
[commit]
gpgSign = true
[tag]
gpgSign = true
@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.

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 / 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;