Skip to content

Instantly share code, notes, and snippets.

View jpbochi's full-sized avatar
🦔

JP Bochi jpbochi

🦔
View GitHub Profile
@jpbochi
jpbochi / asana-helpers-markdown.js
Last active May 18, 2023 14:35
Asana Helpers - markdown, expand comments, theme switch
// ==UserScript==
// @name Asana Helpers - Markdown, Expand Comments, Theme Switch
// @description Adds 3 helper buttons, plus paste in markdown format.
// @namespace Violentmonkey Scripts
// @match https://app.asana.com/*
// @grant none
// @version 1.2.3
// @author Nick Goossens, JP Bochi
// @require https://cdn.jsdelivr.net/npm/marked@4.3.0/lib/marked.umd.min.js
// @downloadURL https://gist.githubusercontent.com/jpbochi/3a7d6717abddd5761e9ccec3bc3fd41f/raw/asana-helpers-markdown.js
import chalk from 'chalk';
import isUnicodeSupported from 'is-unicode-supported';
const main = {
info: chalk.blue('ℹ'),
success: chalk.green('✔'),
warning: chalk.yellow('⚠'),
error: chalk.red('✖'),
};
@jpbochi
jpbochi / justfile
Created January 23, 2023 14:38
justfile recipe to list all recipes in subdirs
# lists all available just recipes, even from justfiles in subdirectories
list:
@just -l
@find -mindepth 2 -maxdepth 5 -type f -name justfile -printf '%h/\n' | sed 's_^[.]/__' | sort | xargs -n1 -I% just -l --list-prefix ' %' %
@jpbochi
jpbochi / Makefile
Created August 18, 2022 16:09
Makefile - list all available commands
.PHONY: default list
default: list
list:
@echo Available make targets:
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
| sed -e '0,/^# Files/ d' -e '/^# Not a target:/,+1 d' \
| grep '^[[:alnum:]]' \
| sed 's/:.*//'
! name: JP Test
! description: Getting my Goggles wet
! public: false
! author: JP
$site=nytimes.com$downrank=10
@jpbochi
jpbochi / asana-favicon-notification.js
Last active January 12, 2022 14:21
Asana dynamic favicon to show Inbox notifications
// ==UserScript==
// @name Asana Dynamic Favicon
// @namespace https://gist.githubusercontent.com/jpbochi/f651698e371f7deda33d039ddaa2bda5
// @version 0.1.0
// @description This modern Asana Inbox favicon notification displays an orange notification circle (just like Asana does in the app) to the top right of the Asana favicon when your active Organization/Workspace Inbox has any unread items. Enjoy!
// @author JP Bochi
// @match https://app.asana.com/*
// @grant none
// @run-at document-body
// @downloadURL https://gist.githubusercontent.com/jpbochi/f651698e371f7deda33d039ddaa2bda5/raw/asana-favicon-notification.js
@jpbochi
jpbochi / only-single-comments.js
Last active July 28, 2022 09:50
On GitHub PR inline comments, changes default button to "Add single comment"
// ==UserScript==
// @name Only Single Comments
// @namespace https://gist.githubusercontent.com/jpbochi/ac88177a0a4741300c2f24c4e33a9c90
// @version 1.0.5
// @description On GitHub PR inline comments, changes the default button from "Start a review" to "Add single comment"
// @author JP Bochi
// @match https://github.com/*/*/pull/*
// @icon https://www.google.com/s2/favicons?domain=github.com
// @downloadURL https://gist.githubusercontent.com/jpbochi/ac88177a0a4741300c2f24c4e33a9c90/raw/only-single-comments.js
// @updateURL https://gist.githubusercontent.com/jpbochi/ac88177a0a4741300c2f24c4e33a9c90/raw/only-single-comments.js
@jpbochi
jpbochi / simple-git-branching-model.md
Created February 10, 2021 09:59 — forked from jbenet/simple-git-branching-model.md
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@jpbochi
jpbochi / pubkey.pgp
Created December 28, 2020 16:24
test public gpg key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF+GyRMBEADA8FXW5Ohe9rRU3bfLe5INgIT0sPln+ToPDPNQYhZhqh95amKR
qwJ9XO7R84WL0/b7GCTEdL5PmdkXpHAfWxAk1BNvWMCjsw4BrNZ4DTFywuvQc7Oj
5n5G32u4VB3ylGct808iD0F3tXSnSnoRZNuXTwz8oA73XM3l3fUjbzrpoEd7NPTK
uxn+OcK1591OVW/JKXt12aru+JF/UCfJV5y9droE/b7D47gGqylSp6Ba+AjlVtdt
PLJoUgId2uca5U+Fa1Fe6TeTjJpb9Xh09sRiy5dkE4WIiqdziSjDiy5YFiNXJsNV
KMl7kkBERXHPqVFIR9NNX3bvgB9u5MYdLNgrEIkvQUbDr7jmBoNllA7rpZl66JVn
9Xduvilb7yHKosCS54JSBQ86gEhNxBV1u3QuDhSzwYc7yEtrKEBqePLwRnfzXEAU
/paKIOdnBB8dcQY8TWCkrh9mA5RbisQw4wRkeexhpwvbNWlfeIoTceEYypGEGjoy
@jpbochi
jpbochi / keybase.md
Created October 14, 2020 09:53
keybase.md

Keybase proof

I hereby claim:

  • I am jpbochi on github.
  • I am jpbochi (https://keybase.io/jpbochi) on keybase.
  • I have a public key whose fingerprint is F786 2518 AC95 8837 46FA 77F0 1E82 F6A5 57A5 C04D

To claim this, I am signing this object: