Skip to content

Instantly share code, notes, and snippets.

View xctan's full-sized avatar
🎯
Focusing

xctan

🎯
Focusing
View GitHub Profile
@xctan
xctan / portal.js
Created April 20, 2022 13:08
Redirect to package page on archlinux.org
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
/**
* Respond with hello worker text
* @param {Request} request
*/
async function handleRequest(request) {
const url = new URL(request.url)
const path = url.pathname
diff --git a/configure b/configure
index 800b5850f4..a93f5426ef 100755
--- a/configure
+++ b/configure
@@ -836,6 +836,8 @@ for opt do
;;
--enable-linux-user) linux_user="yes"
;;
+ --enable-linux-user-drm-amdgpu) meson_option_add "-Ddrm_amdgpu=true"
+ ;;