I hereby claim:
- I am amochkin on github.
- I am amochkin (https://keybase.io/amochkin) on keybase.
- I have a public key ASCH2JMP36jeGWPvbrMzReP0ERVwyfelNO5-ZMsjTO7T6wo
To claim this, I am signing this object:
| #!/bin/sh | |
| find . -type f -name "*.svg" -print0 | while IFS= read -r -d '' f; do | |
| inkscape "$f" \ | |
| --export-area-drawing \ | |
| --export-height=32 \ | |
| --export-plain-svg \ | |
| --export-filename="$f" | |
| done |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 | |
| sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 | |
| sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1 |
Digital Ocean does not allow you to download backups or shanpshots of the droplet. This may be a problem if you want to migrate from Digital Ocean to somewhere else.
| printf '#!/bin/sh\n | |
| # Get the commit message | |
| commit_message=$(cat "$1")\n | |
| # Regular expression pattern for conventional commits | |
| pattern='\''^(feat|fix|docs|style|refactor|test|chore)(\([a-z0-9-]+\))?!?: [^\s].{0,100}$'\''\n | |
| # Check if the commit message matches the pattern | |
| if echo "$commit_message" | grep -qE "$pattern"; then | |
| \techo "Commit message is compliant with conventional commits." | |
| else | |
| \techo "Commit message is not compliant with conventional commits. See https://www.conventionalcommits.org/en/v1.0.0/#summary"; exit 1 |
| import Sequencer, { ShardOptions } from '@jest/test-sequencer'; | |
| import { Test } from '@jest/test-result'; | |
| const sorterFn = (a: Test, b: Test) => { | |
| return a.path > b.path ? 1 : -1; | |
| }; | |
| class CustomSequencer extends Sequencer { | |
| /** | |
| * Select tests for shard requested via --shard=shardIndex/shardCount |
| import { useEffect, useRef, useState } from 'react'; | |
| type TimerCallbackType = (timerLeft: number) => void; | |
| /** | |
| * useTimer hook to handle timer events. Has protection from subsequent calls, ie calling the timer when it was already started. | |
| * @param callback Callback function | |
| * @param timer Timer in milliseconds | |
| * @param interval Interval between timer ticks in milliseconds | |
| */ |