Skip to content

Instantly share code, notes, and snippets.

View mbbroberg's full-sized avatar
:octocat:
Mostly in enterprise github lately

Matthew Broberg mbbroberg

:octocat:
Mostly in enterprise github lately
View GitHub Profile
@mbbroberg
mbbroberg / LYT_helper.js
Created August 7, 2024 19:46
A quick way to add `up` values for a Linking Your Thinking logic in Obsidian.
const fs = require('fs').promises;
const path = require('path');
const yaml = require('js-yaml');
const term = 'search term here'
const lyt = '"[[File to Link]]"'
async function updateLinks(vaultPath) {
let updatedCount = 0;
module.exports = async (params) => {
console.log("Starting...")
console.log(params);
const currentFile = params.app.workspace.getActiveFile();
if (!currentFile) {
new Notice("No active file.");
return;
}
console.log("Found active file: ", currentFile.basename);

You can also have language-specific syntax highlighting. Instead of having a code block of black-and-white text, append the language to the first set of backticks to have highlighting enabled:

<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
</head>
<body>
  <script src='./pkg/my_wasm_library.js'></script>
 
@mbbroberg
mbbroberg / community-measurement.md
Last active September 27, 2018 20:40
Worksheet for Red Hat

Q1: What’s your gut vs brain story?

There is the desire to participate in our community and the responsibility to measure its effectiveness that feel at odds. Take a moment to write down two things:

  • What do you wish you could measure about your community?
  • What do you value most about participating in your community?

A1:

Q2: What do you want from the business?

$ terraform apply -target=github_organization_webhook.release
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ github_organization_webhook.release
id: <computed>
@mbbroberg
mbbroberg / breaker.md
Created November 1, 2017 16:15
Feedback for the Breaker Podcast app

Immediate Feedback

Onboarding experience is sooooo good. I signed in with Twitter, which is my main communication platform. I'm super satisfied with exposing me to people to follow and the suggestions for content were dead on 👌.

Next step was getting into the app. Being used to Overcast, it felt super cluttered on the playlist screen. Seeing the iconography (heart, comment, send, download status) made everything feel messy at first glance. After being a user for ~an hour, I love seeing the ❤s for each episode. Still not immediately interested in commenting/sending. Not a bad thing - just an FYI on my gut feel as a user. I am curious: who sees comments? All users? Just my friends? That's not obvious.

When I click on a podcast, the detailed list of everything is really nice. One minor thing: when I click the icon of the podcast, I expect to be sent to the list of past shows of the podcast. Right now it gives me a bigger icon 🤷. Expectations are hard 😄.

Playlists?

@mbbroberg
mbbroberg / RFC.md
Created September 8, 2017 00:37
RFC template

This issue is an RFC that will remain open until ________ for community discussion. After this date a decision will be made to resolve it or extend the conversation.

Summary

< Discuss here. >

Proposal

< Discuss here. Can include scoping of a PoC of the solution or approaching it in a phased way. >

~/Documents/Develop/go/src/regexp   master ✚ 
 GOROOT=$(pwd/../..) go test example_test.go -run QuoteMeta -v
zsh: no such file or directory: pwd/../..
testing: warning: no tests to run
PASS
ok command-line-arguments 0.006s
~/Documents/Develop/go/src/regexp   master ✚ 
 go test example_test.go -run MatchString -v
=== RUN ExampleMatchString
--- PASS: ExampleMatchString (0.00s)

Keybase proof

I hereby claim:

  • I am mbbroberg on github.
  • I am mbbroberg (https://keybase.io/mbbroberg) on keybase.
  • I have a public key ASD8O15_Db_1Z4XYLO-6kl6A0vWDcDmHVkA-HuaXxttY7Ao

To claim this, I am signing this object:

@mbbroberg
mbbroberg / bootstrap.sh
Created June 19, 2017 15:18
Getting a sufficient dev environment on Ubuntu 17.04
#!/bin/bash
export GITHUB_USER=mbbroberg
sudo apt-get update -y
# Awesome packaging for IDE + languages
# https://wiki.ubuntu.com/ubuntu-make
sudo apt install ubuntu-make
# install the latest Go without much hassle