I hereby claim:
- I am bobheadxi on github.
- I am bobheadxi (https://keybase.io/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(d.directory, buildCtx) | |
dockerFilePath := "Dockerfile" | |
// Send project to daemon and build image | |
ctx := context.Background() | |
imageName := "inertia-build/" + d.project |
I hereby claim:
To claim this, I am signing this object:
/** | |
* 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. |
package expression | |
import ( | |
"fmt" | |
"go/ast" | |
"go/parser" | |
) | |
// FindSelectors parses an expression and returns any selectors used in the expression | |
func FindSelectors(expr string) ([]string, error) { |
# You'll need rsync installed: | |
# brew install rsync | |
# Example: | |
# make sync USER=y7v0b | |
USER= | |
TARGET=~/cpsc313/a4 | |
SERVER=remote.ugrad.cs.ubc.ca | |
RUN_SYNC=rsync -avz . $(USER)@$(SERVER):$(TARGET) | |
sync: | |
$(RUN_SYNC) ; fswatch -o . | while read f; do $(RUN_SYNC); done |
[[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!
We rewrite configuration using [[Comby]].
/** | |
* Generates a reference note from a note with arbitrary numbers of entries in the | |
* following format: | |
* | |
* > QUOTE | |
* | |
* OPTIONAL COMMENT | |
* | |
* [OPTIONAL TITLE](URL) | |
* |