This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# create backup folders (if they do not exist yet) | |
mkdir -p ~/backups | |
mkdir -p ~/backups/unifi | |
mkdir -p ~/backups/pihole | |
# backup pi-hole | |
(cd ~/backups/pihole && pihole -a teleporter) |
The patch works both with tsc
and next build
, as described in the comments of the patch.
Inspired by
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* inspired by | |
* @see https://codesandbox.io/s/use-previous-hook-persistent-with-matcher-hujqez?file=/src/hooks.tsx:0-1069 | |
* @see https://www.developerway.com/posts/implementing-advanced-use-previous-hook | |
* @see https://usehooks.com/usePrevious/ | |
*/ | |
import { useRef, useEffect } from 'react' | |
export const usePrevious = <TValue>(value: TValue) => { | |
const ref = useRef<TValue>() |
This is our custom implementation of the Inline Tool "Link" with a target
and title
attribute.
--> used and tested with @editorjs/editorjs@2.17.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "airbnb", | |
"parser": "babel-eslint", | |
"env": { | |
"browser": false, | |
"node": true, | |
"es6": true, | |
"mocha": false | |
}, | |
"parserOptions": { |
The *.html example assumes you have integrated the tracking code as an iframe in the instant articles feed.
<figure class="op-tracker">
<iframe src="https://www.example.com/fia-google-analytics-tracking.html"></iframe>
</figure>