Skip to content

Instantly share code, notes, and snippets.

bobheadxi / generate_reference_notes.js
Created August 1, 2021 12:26
Simple Obsidian Templater formatting for IFTTT Instapaper to Google Docs content
* Generates a reference note from a note with arbitrary numbers of entries in the
* following format:
bobheadxi / Copy Obsidian global graph colors to local
Last active February 5, 2024 06:28
Sync Obsidian global graph settings to local graphs

[[Obsidian]] local graphs don't inherit global graph settings as of [[2021-06-28]], which can make for an inconsistent experience. Relevant feature request: Colour group settings apply to both global and local graphs Obsidian Forum

[[JSON]] local graph config is stored in .obsidian/workspace, and global graph config is stored in .obsidian/graph.json, so we can sync settings by editing the configuration directly.

First, open a local graph view and close Obsidian (it seems like Obsidian prefers its own configuration to whatever is on disk when it is running). Then, either [[#Sync all graph settings]] or [[#Sync specific graph settings]]. Once done, open Obsidian and your local graph should look the same as your global graph!

Sync all graph settings

We rewrite configuration using [[Comby]].

bobheadxi / Makefile
Last active September 25, 2019 04:25
rsync to server (macos). add this as a makefile target, change the variables as desired, and tada
# You'll need rsync installed:
# brew install rsync
# Example:
# make sync USER=y7v0b
RUN_SYNC=rsync -avz . $(USER)@$(SERVER):$(TARGET)
$(RUN_SYNC) ; fswatch -o . | while read f; do $(RUN_SYNC); done
package expression
import (
// FindSelectors parses an expression and returns any selectors used in the expression
func FindSelectors(expr string) ([]string, error) {
* Convert date object into the epoch time format Slack uses.
* @param {Date} date
function epochTime(date) {
return date.getTime() / 1000;
* Convert text to Slack markdown code block.

Keybase proof

I hereby claim:

  • I am bobheadxi on github.
  • I am bobheadxi ( on keybase.
  • I have a public key ASC7xeSw-v4nDlKZiXQyRHyd1N6j10EFySyxn1gfPYLrKQo

To claim this, I am signing this object:

// dockerBuild builds project from Dockerfile and deploys it
func dockerBuild(d *Deployment, cli *docker.Client, out io.Writer) error {
// Package project files
buildCtx := bytes.NewBuffer(nil)
common.BuildTar(, buildCtx)
dockerFilePath := "Dockerfile"
// Send project to daemon and build image
ctx := context.Background()
imageName := "inertia-build/" + d.project