Skip to content

Instantly share code, notes, and snippets.

View pianomansam's full-sized avatar

Samuel Oltz pianomansam

View GitHub Profile
@shumbo
shumbo / story.tsx
Last active May 15, 2025 09:54
A storybook decorator to use React Hooks Form inside stories
export default {
title: "MyComponent",
component: MyComponent,
decorators: [withRHF(false)], // or true to show submit button on story
} as Meta;
@janstoeckler
janstoeckler / services.yml
Created June 2, 2017 08:47
Drupal 8 monolog logging
parameters:
...
monolog.channel_handlers:
# Log to a file by default.
default: ['file']
# Send the php channel to web server's error log and the browser console:
# php: ['error_log', 'browser_console']
# Ignore log entries of "content" channel.
@OriPekelman
OriPekelman / .platform.app.yaml
Created April 18, 2017 12:55
snippet to add wkhtmltopdf to platform.sh
dependencies:
ruby:
"wkhtmltopdf-binary": "> 0.0"