Skip to content

Instantly share code, notes, and snippets.

View jpbochi's full-sized avatar
🦔

JP Bochi jpbochi

🦔
View GitHub Profile
! name: JP Test
! description: Getting my Goggles wet
! public: false
! author: JP
$site=nytimes.com$downrank=10
@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/:.*//'
@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 ' %' %
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 / 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/[email protected]/lib/marked.umd.min.js
// @downloadURL https://gist.githubusercontent.com/jpbochi/3a7d6717abddd5761e9ccec3bc3fd41f/raw/asana-helpers-markdown.js
@jpbochi
jpbochi / lifecycle.pl
Created July 24, 2024 12:32
perl lifecycle test
#!/usr/bin/perl
# https://perldoc.perl.org/perlmod#BEGIN%2C-UNITCHECK%2C-CHECK%2C-INIT-and-END
# Try these:
# perl ./lifecycle.pl
# perl -c ./lifecycle.pl
package le_module;
print " 9.a. module print\n";
@jpbochi
jpbochi / callouts.md
Last active September 19, 2024 08:41
callouts.md