\copy (select * from table_name limit 20) to '~/Documents/tmp.csv' With CSV DELIMITER ',' HEADER
This file contains hidden or 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
| git diff > filename.patch |
Path should be: /Library/Java/JavaVirtualMachines/
This util prints current java_home being used: /usr/libexec/java_home
Helpful SO link to manage diff versions: https://stackoverflow.com/a/26252993
To start postgresql@14 now and restart at login:
brew services start postgresql@14
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/postgresql@14/bin/postgres -D /opt/homebrew/var/postgresql@14
This file contains hidden or 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
| git log -1 --oneline | cut -c 8-$COLUMNS | xargs |
Follow this link: microsoft/vscode-eslint#1170 (comment)
Basically in .vscode/settings.json, add this setting...
{
"eslint.workingDirectories": ["packages/one", "packages/two"]
}
This file contains hidden or 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
| // useful link explaining this: https://github.com/webpack/webpack/issues/13584#issuecomment-863272803 | |
| const path = require('path'); | |
| const resolveFile = (file) => path.resolve(__dirname, `${file}`); | |
| /** @type {import('webpack').Configuration} */ | |
| module.exports = { | |
| mode: 'production', | |
| optimization: { |
This file contains hidden or 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
| /** @type {import('webpack').Configuration} */ | |
| module.exports = { | |
| mode: 'production', | |
| ... | |
| }; |
This file contains hidden or 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
| precmd() { | |
| if [[ $PWD == $PREV_PWD ]]; then | |
| return | |
| fi | |
NewerOlder