Skip to content

Instantly share code, notes, and snippets.

@replaid
replaid / Zenity-mac.bash
Created July 8, 2020 09:23
Give Zenity foreground on macOS
#!/usr/bin/env bash
zenity --password &
zenity_pid=$!
osascript<<EOF
tell application "System Events"
set processList to every process whose unix id is $zenity_pid
repeat with proc in processList
set the frontmost of proc to true
end repeat
@replaid
replaid / wiki-unislug.md
Last active October 29, 2022 13:36
Federated Wiki i18n proposal

OldSlug vs. Unislug comparison

Input OldSlug Unislug Unislug HTML link Unislug appearance in location bar
[[Peña]] pea peña /pe%C3%B1a.html /peña.html
[[Pea]] pea pea /pea.html /pea.html
[[RAMN]] ramn ramn /ramn.html /ramn.html
[[Ramén]] ramn ramén /ram%C3%A9n.html /ramén.html
[[Ramón]] ramn ramón /ram%C3%B3n.html /ramón.html
[[Гильдии]] (empty string) гильдии /%D0%B3%D0%B8%D0%BB%D1%8C%D0%B4%D0%B8%D0%B8.html /гильдии.html