- borrow heavily from (but improve upon) https://github.com/mui/material-ui/tree/master/examples/material-next-ts
yarn add --dev @emotion/cache @emotion/react @emotion/server @emotion/styled @mui/material @mui/icons-material @next/font clsxyarn add --dev @emotion/cache @emotion/react @emotion/server @emotion/styled @mui/material @mui/icons-material @next/font clsxyarn add --dev prettier eslint-plugin-prettier eslint-config-prettier eslint-config-google lint-staged husky
yarn husky install && husky add .husky/pre-commit "yarn lint-fix"| # https://bitbucket.org/site/master/issues/8809/cloning-and-pushing-excruciatingly-slow#comment-34263833 | |
| Host bitbucket.org | |
| AddressFamily inet |
| SET @old_domain = 'http://olddomain.com'; | |
| SET @new_domain = 'http://newdomain.com'; | |
| UPDATE wp_options SET option_value = replace(option_value, @old_domain, @new_domain) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET guid = REPLACE (guid, @old_domain, @new_domain); | |
| UPDATE wp_posts SET post_content = REPLACE (post_content, @old_domain, @new_domain); | |
| UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, @old_domain, @new_domain); |
| #!/bin/bash | |
| function timer() { | |
| if [[ $1 -lt 1 ]]; then | |
| cat <<EOF | |
| Usage: timer <seconds> | |
| EOF | |
| return 1 |
| #!/bin/bash | |
| function stopwatch() { | |
| local n=0 | |
| local t=0 | |
| local continuing="true" | |
| local lap=1 | |
| local key="~" | |
| local pausing="~" |