- In environment variables, set:
HUGO_VERSION=0.121.2
- Use
curl -L https://git.io/vQhTU | bash -s -- --version 1.22.4 && curl -L https://shorturl.at/cwSIl | tar -xzvf - -C /tmp && export PATH=$PATH:/tmp/dart-sass && source ~/.bashrc && make depend && make build-pwa/ps-pwa
as the build command.
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 | |
wget https://os.gnome.org/download/latest/gnome_os_sysupdate_installer.iso |
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 | |
# Expose all ports of the VM at `<guest-veth-ip>:<port>` (this is done by default) | |
# nc "${HOST_VETH_INTERNAL_IP}" guest-veth-port-here | |
export HOST_VETH_INTERNAL_IP="10.0.8.1" | |
export NAMESPACE_INTERFACE_IP="172.100.100.2" | |
sudo ip netns exec ark0 iptables -t nat -A PREROUTING -d "${HOST_VETH_INTERNAL_IP}" -j DNAT --to-destination "${NAMESPACE_INTERFACE_IP}" | |
sudo ip netns exec ark0 iptables -t nat -A POSTROUTING -d "${NAMESPACE_INTERFACE_IP}" -j MASQUERADE |
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 tcpclientsrc host=localhost port=5000 ! multipartdemux ! jpegdec ! videoconvert ! autovideosink |
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 |
NewerOlder