A tiny bash script that keeps every Obsidian vault in sync with one master
vault — no sync plugin. Pick the vault you actually tune (mine is my wiki); the
script symlinks the shareable parts of its .obsidian/ into your other vaults.
Because the other vaults literally read the master's files, installing a plugin
or rebinding a key in the master shows up everywhere.
This file contains hidden or 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
| require "google/apis/calendar_v3" | |
| # To add the Google Calendar API to your project, you need to add the following line to your Gemfile: | |
| # bundle add google-apis-calendar_v3 | |
| # | |
| # Google Cloud Console Credential Settings: | |
| # Authorized JavaScript origins: http://localhost:3000 | |
| # Authorized redirect URIs: http://localhost:3000/users/auth/google_oauth2/callback | |
| # Update the above with your staging and production URLs | |
| # |
This file contains hidden or 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
| -- key change = line 57 instead of $encoded_title just use $title | |
| use framework "Foundation" | |
| use scripting additions | |
| property NSString : a reference to current application's NSString | |
| property NSMutableCharacterSet : a reference to current application's NSMutableCharacterSet | |
| set sysinfo to system info | |
| set osver to system version of sysinfo |
This file contains hidden or 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
| test "something" do | |
| notified = false | |
| Honeybadger.stub :notify, Proc.new { |s| notified = true } do | |
| something_that_causes_honeybadger_notify_to_be_used | |
| end | |
| assert notified, "Honeybadger was not notified" | |
| end |
To implement this:
- add get_name.scp to the Get Name script in HookMark > Settings > Scripts > FreePlane > Get Name
- update get_address.scp for the Get Address script
- Save
Should work.
Nice to have: FreePlane has a Copy > Copy URI which copies a URI to the current node. It might be nice to copy this which would let you link directly to a particular node (as opposed to just the map).
yarn add chartjs-plugin-annotationThen edit app/javascript/application.js
import "chartkick/chart.js"
# Add these lines
This file contains hidden or 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
| import { Controller } from "@hotwired/stimulus" | |
| export default class extends Controller { | |
| submit() { | |
| event.currentTarget.form.requestSubmit() | |
| } | |
| } |
This file contains hidden or 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
| # in order to support convention over configuration it can be useful to be able to find all the classes in a directory or | |
| # subdirectory. This lets you have easy factories for subclasses in Rails. | |
| # Requires that you are using Zeitwerk naming conventions for files and classes | |
| class YourRootClass | |
| # this does not work with rails because although the paths are autoloaded | |
| # the objects are not in memory (and are only in memory when instantiated) | |
| # and self.inherited is only called when the classes are put in memory | |
| # note: this likely happens in production but not in development | |
| # def self.inherited(klass) |
This file contains hidden or 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
| # in general you should never need to use this in Rails | |
| # since you should use the url helpers | |
| # this is a really helpful post about how to do this elegantly with a concern | |
| # https://andycroll.com/ruby/url-helpers-outside-views-controllers/ | |
| def change_localhost_domain(url, new_domain) | |
| url.gsub(/http:\/\/localhost:3000|http:\/\/127.0.0.1:3000/, new_domain) | |
| end |
NewerOlder
