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
#!/Users/vincent/.rbenv/shims/ruby | |
# | |
# Generate an Obisidian link to the currently opened document, for | |
# use in Hook. | |
# | |
# As of version 3.4.3, Hook has 3 built-in methods for integrating | |
# with Obsidian. None of them suit my personal needs. | |
# | |
# - default: uses the obsidian://hook-get-address URL, which makes | |
# Obsidian copy its URL to the clipboard. |
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
#!/Users/vincent/.rbenv/shims/ruby | |
# | |
# Generate an Obisidian link to the currently opened document, for | |
# use in Hook. | |
# | |
# The built-in Hook script uses the `obsidian://hook-get-address` URI | |
# handler that's built-in to Obsidian, and that sucks, because it messes | |
# up the clipboard and has all kinds of timing issues. It's slow. | |
# This script is better in many respects, IMHO. | |
# |
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
#!/usr/bin/env ruby | |
# | |
# Downloads a new version of the MVPS hosts file and merges it into the local | |
# hosts file. | |
# | |
# Only lines starting with `0.0.0.0` are merged; all other lines are skipped. | |
# | |
# All entries from the MVPS hosts file are put between markers. If the markers | |
# are already present in the hosts file, everything between them is replaced | |
# with the contents of the MVPS hosts file. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>beforeRunningCommand</key> | |
<string>nop</string> | |
<key>command</key> | |
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU | |
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>md</string> | |
</array> | |
<key>injectionSelector</key> | |
<string>(L:text.html.markdown)</string> |