This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _ "net/http/pprof" | |
// ... | |
go func() { | |
log.Println(http.ListenAndServe("localhost:6060", nil)) | |
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink sync=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gst-launch-1.0 v4l2src device=/dev/video1 ! videoconvert ! videoscale ! video/x-raw,width=720,height=320 ! theoraenc ! oggmux ! tcpserversink host=127.0.0.1 port=8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
flatpak-builder --repo=repo build packaging/flatpak/com.freerdp.FreeRDP.json | |
flatpak build-bundle repo com.freerdp.FreeRDP.flatpak com.freerdp.FreeRDP --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo | |
flatpak install ./com.freerdp.FreeRDP.flatpak | |
flatpak run com.freerdp.FreeRDP /v:localhost:3389 /u:liveuser /gfx:avc420 /h:1200 /w:1920 | |
# Or alternatively: | |
xfreerdp /v:localhost:3389 /u:pojntfx /p:LujOPipihBoc +multitouch +gestures -grab-keyboard -grab-mouse /gfx:AVC444,RFX,progressive:on /bpp:32 +dynamic-resolution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gtk4-broadwayd :5 | |
# Natively | |
GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 workbench | |
# Flatpak | |
flatpak run --env=GDK_BACKEND=broadway --env=BROADWAY_DISPLAY=:5 --filesystem=/run/user/1000 re.sonny.Workbench | |
# Now open http://localhost:8085/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Adw from "gi://Adw?version=1"; | |
import Gtk from "gi://Gtk?version=4.0"; | |
import Gst from "gi://Gst?version=1.0"; | |
Gst.init(null); | |
const application = new Adw.Application({ | |
application_id: "com.github.pojntfx.adwaitaGStreamerExample", | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dev: | |
npx esbuild playground.js --bundle --outfile=/tmp/playground.js '--external:gi://*' --platform=neutral && gjs -m /tmp/playground.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Adw from "gi://Adw?version=1"; | |
import Gtk from "gi://Gtk?version=4.0"; | |
import Gdk from "gi://Gdk?version=4.0"; | |
import WebKit from "gi://WebKit"; | |
const application = new Adw.Application({ | |
application_id: "com.github.pojntfx.webviewTransparentDemo", | |
}); | |
application.connect("activate", () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Gtk 4.0; | |
using Adw 1; | |
Adw.Clamp page { | |
maximum-size: 1920; | |
Box { | |
orientation: vertical; | |
Picture video {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Gtk 4.0; | |
using Adw 1; | |
Adw.StatusPage page { | |
title: _("Video"); | |
description: _("Display video with media controls"); | |
Box { | |
orientation: vertical; | |
halign: center; |
NewerOlder