Skip to content

Instantly share code, notes, and snippets.

View mkurz's full-sized avatar
💭
Play Roadmap: https://github.com/orgs/playframework/projects/3

Matthias Kurz mkurz

💭
Play Roadmap: https://github.com/orgs/playframework/projects/3
View GitHub Profile
This file has been truncated, but you can view the full file.
FEXBash-mkurz@mkurz-macbook-pro:~> LD_DEBUG=files glxinfo32
347:
347: file=libxxhash.so.0 [0]; needed by /usr/bin/FEXInterpreter [0]
347: file=libxxhash.so.0 [0]; generating link map
347: dynamic: 0x0000ffff96569d30 base: 0x0000ffff96550000 size: 0x000000000001a010
347: entry: 0x0000ffff96550000 phdr: 0x0000ffff96550040 phnum: 7
347:
347:
347: file=libstdc++.so.6 [0]; needed by /usr/bin/FEXInterpreter [0]
347: file=libstdc++.so.6 [0]; generating link map
@mkurz
mkurz / readme.md
Created December 11, 2024 23:54 — forked from flightmansam/readme.md
Using a Studio Display with asahi linux

Preface: I f**king love where Asahi linux is going. After installing it on my macbook pro a year ago I have had an absolute blast getting it all up and running. I haven't ever had so much fun just enjoying the experience of an operating system.

I am one of those apple fanbois who setup a mac and a Studio Display. I have been itching to connect my display. But as I eagerly await USB-C DP (alt) mode support in Asahi I must make do with using the HDMI port of my Asahi Linux MacBook Pro. For those playing along at home, the Studio Display has only a usb-c port for display input. People (including Apple's own ambiguous advertising) mistake this to be a Thunderbolt only display however it is very happy connecting to any device that supports USB-C DP (alt) (I was even using my phone as a daily driver with the display for a cheeky bit there). Perhaps that's my fuzziness around the topic of USB-C/Thunderbolt3/4

I have been successful in connecting my display to th

@mkurz
mkurz / README.md
Created December 11, 2024 09:54 — forked from GrabbenD/README.md
org.freedesktop.secrets

Setup org.freedesktop.secrets the easy way with KeepassXC in Github Desktop

Overview

You might want to quickly authenticate with your Github Account to avoid having to manually configure GIT.

Although if you're using a lightweight distribution you might discover that you have to manually find a provider for org.freedesktop.secrets.

I encountered this problem and wanted to share my thoughts and general pointers from what I've learned!

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Diff to HTML by rtfpessoa</title>
<!--
Diff to HTML (template.html)
Author: rtfpessoa
-->
@mkurz
mkurz / 1-README.md
Created March 7, 2023 10:30 — forked from ruario/1-README.md
A script that fetches a ChromeOS image for ARM32 and extracts the Widevine binary, saving it in a compressed archive for use with Vivaldi

The included script 'widevine-flash_armhf.sh' fetches a ChromeOS image for ARM and extracts the Widevine binary, saving it in a compressed archive. Since it downloads a fairly large file (2Gb+ on disk after download) it is recommended that you run the script on a machine that has plenty of disk space.

To install the resultant archive, issue the following on your ARM machine–after copying over the archive if needed:

sudo tar Cfx / widevine-flash-20200124_armhf.tgz

(Where 'widevine-flash-20200124_armhf.tgz' is updated to reflect the actual name of the created archive)

@mkurz
mkurz / ActionCreator.java
Last active April 12, 2022 12:29
Reuse the same entity manager for each request
package foo;
import java.lang.reflect.Method;
import java.util.concurrent.CompletionStage;
import javax.inject.Inject;
import play.Logger;
import play.db.jpa.JPAApi;
import play.mvc.Action;

Keybase proof

I hereby claim:

  • I am mkurz on github.
  • I am mkurz (https://keybase.io/mkurz) on keybase.
  • I have a public key ASCauqPRkuZsLmUf_jf5jQBwjn0JEpD4tpMQnlPtpKk16go

To claim this, I am signing this object:

@mkurz
mkurz / gmail-github-filters.md
Created March 11, 2021 17:29 — forked from ldez/gmail-github-filters.md
Gmail and GitHub - Filters

Gmail and GitHub

Create new filters and create new labels.

Pull Request

from:([email protected]) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}

label: gh-pull-request

import javax.inject.Inject
import scala.concurrent.Future
import play.api.{Configuration, Environment, Mode}
import play.api.inject.{ApplicationLifecycle, Binding, Module}
import play.api.libs.Files.DefaultTemporaryFileCreator
class DevModeWorkaroundsModule extends Module {
def bindings(environment: Environment, configuration: Configuration): Seq[Binding[_]] = {
Seq(bind[DevModeWorkarounds].toSelf.eagerly())