Skip to content

Instantly share code, notes, and snippets.

View knuch's full-sized avatar

Flavien Knuchel knuch

View GitHub Profile
@knuch
knuch / prepare-commit-msg
Last active March 1, 2023 09:13
add jira ticket prefix to commit message
#!/bin/sh
COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
CURR_MESSAGE=$(cat $COMMIT_MSG_FILE)
# if current commit message starts with a "["
if [ $(echo $CURR_MESSAGE | cut -c1) = "[" ]; then
exit 0
fi
@knuch
knuch / MyNote.md
Last active October 9, 2020 10:28 — forked from mmso/ProtonNote.md

FE Test: Secure Notes

Develop a secure note application (MyNote).

Specification

The user can:

  • view a list of notes (left pane).
@knuch
knuch / functions.php
Created July 24, 2019 08:32
Gutenberg override core block
<?php
// https://developer.wordpress.org/reference/hooks/render_block/
add_filter( 'render_block', 'foo_core_gallery_filter', 10, 3);
function foo_core_gallery_filter( $block_content, $block ) {
// use blockName to only affect the desired block
if( "core/calendar" !== $block['blockName'] ) {
@knuch
knuch / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../topeka-elements/topeka-categories.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">