Skip to content

Instantly share code, notes, and snippets.

@timhatch
timhatch / neovide.applescript
Created October 16, 2023 12:18 — forked from xbot/neovide.applescript
Open Neovide directly or use Neovide from the 'Open with' menu to open files.
on replace_chars(this_text, search_string, replacement_string)
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of this_text
set AppleScript's text item delimiters to the replacement_string
set this_text to the item_list as string
set AppleScript's text item delimiters to ""
return this_text
end replace_chars
on activate_open_instance(win_title, is_first_time)
@timhatch
timhatch / setup-avahi.sh
Created October 15, 2023 08:34 — forked from davisford/setup-avahi.sh
Setup avahi-daemon on Ubuntu for so you can reach hostname `ubuntu.local` from host OS
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan