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
@timhatch
timhatch / lightline.vim
Created November 7, 2016 10:26
Custom lightline colorscheme, derived from the default with modifications to the tab colours
" =============================================================================
" Filename: autoload/lightline/colorscheme/lightline.vim
" Author: tim
" License: MIT License
" Last Change: 2016/11/07 10:24:00.
" =============================================================================
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
let s:p.normal.left = [ ['darkestgreen', 'brightgreen', 'bold'], ['white', 'gray4'] ]
let s:p.normal.right = [ ['gray5', 'gray10'], ['gray9', 'gray4'], ['gray8', 'gray2'] ]
@timhatch
timhatch / gist:2835797
Created May 30, 2012 11:55
Twitter Query
http://search.twitter.com/search.json?q=%23[insert hashtag text]