Skip to content

Instantly share code, notes, and snippets.

View ip413's full-sized avatar
๐ŸŽƒ

ip413 ip413

๐ŸŽƒ
  • Poland
View GitHub Profile
@ip413
ip413 / Wayland.md
Created March 29, 2022 06:39 — forked from probonopd/Wayland.md
Boycott Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

tl;dr: Wayland is not ready as a 1:1 compatible Xorg replacement just yet, and maybe never will. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better of not using Wayland at this point.

Wayland solves no issues I have but breaks almost everything I need. And usually it stays broken, because the Wayland folks only seem to care about Gnome, and alienating everyone else in the process. DO NOT INSTALL WAYLAND! Let Wayland not destroy everything and then have other people fix the damage it caused. Or force more Red Hat/Gnome components (glib, Portals, Pipewire) on everyone!

Please add more examples to the list.

Wayland breaks screen recording applications

#!/usr/bin/bash
# change modify date of file to date from exif properties (DateTimeOriginal)
for file in *; do touch -t `exiftool -s -s -s -d "%Y%m%d%H%M.%S" -DateTimeOriginal $file` $file; done
#!/usr/bin/sh
journalctl -r -S "1 day ago" | grep "System returned from sleep state" | head -1 | awk '{print $1, $2, $3}' | {read last_wake_up; echo $(($(date --date="now" +%s) - $(date --date="$last_wake_up" +%s)))} | {read sec ; eval "echo $(date -ud "@$sec" +'$((%s/3600/24)) days %H hours %M minutes %S seconds')"}
@ip413
ip413 / nvmlink
Created May 13, 2024 10:31 — forked from MeLlamoPablo/nvmlink
Creates a symlink to /usr/bin/node after using nvm
@ip413
ip413 / download-files.sh
Last active December 11, 2024 09:14
Download files from list of URLs, with random timeouts or without it
#!/usr/bin/env zsh
# zsh handles decimal values automatically
if [ $# -eq 0 ]; then
printf "No arguments provided!\n\n"
cat <<EOF
Script accepts three arguments:
- file with URLs (one url = one line) (required)
- min time of random wait between downloads (seconds, optional, default: 1)