- 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 | |
ssh -J [email protected] [email protected] |
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 | |
gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep | |
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 | |
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0 | |
sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep | |
sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 | |
sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0 |
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 | |
# 1. Go to "Settings → Networks" | |
# 2. Create a new profile | |
# 3. Go to "Identity" and set the name to "Shared", and the MAC address to that of your ethernet device (use the dropdown) | |
# 4. Go to "IPv4" and set the method to "Shared with other computers" | |
# 5. Go to "IPv6" and set the method to "Shared with other computers" | |
# 6. Select "Apply" to create the profile | |
# 7. Enable the profile by clicking on it | |
# 8. Run the commands below (replace wlp0s20f3 with your WLAN interface and enp0s13f0u3u1c2 with your LAN interface) |
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 |
NewerOlder