create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
# delete remote tags containing the word "text" | |
git push --delete origin `git tag --list "*text*"` | |
# delete local tags containing the word "text" | |
git tag -d `git tag --list "core@v0*-test.*"` |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
import { useState } from "react"; | |
export const useInput = initialValue => { | |
const [value, setValue] = useState(initialValue); | |
return { | |
value, | |
setValue, | |
reset: () => setValue(""), | |
bind: { |
//mock object method | |
Object.defineProperty(object, 'method', { value: jest.fn() }); | |
//mock object property | |
Object.defineProperty(object, 'property', { get: () => jest.fn() }); |