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
| ######################## | |
| # Config | |
| ######################## | |
| dbUser="postgres" | |
| dbPass="postgres" | |
| dbName='app-name' | |
| folderBase="./data" | |
| dumpFolder="./dump" | |
| # schemaName="public" # -- not needed for public |
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
| // Get the next or previous index in an array | |
| // and loop around if you exede the bounds. | |
| // Found this in a Ryan Florence Video. Kept coming back | |
| // to it so though I'd put it somewhere easier to find. | |
| // Video here: https://youtu.be/wXLf18DsV-I?t=769 | |
| const nextIndex = (currentIndex, length) => ( | |
| (currentIndex + 1 + length) % length | |
| ); |
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
| # Switching from v3.4 to latest | |
| select_lastest() { | |
| # Stop and unlink 3.4 | |
| brew services stop [email protected] | |
| brew unlink [email protected] | |
| # Link last version | |
| brew unlink mongodb && brew link mongodb | |
| # Update mongo logs and database paths |
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
| # oh-my-zsh Theme | |
| # Default robbyrussell theme with node version info. | |
| # Installation: place this file in .oh-my-zsh/custom/themes/robbyrussell.zsh_theme | |
| function node_prompt_version { | |
| if which node &> /dev/null; then | |
| echo "%{$fg_bold[blue]%}node(%{$fg[red]%}$(node -v)%{$fg[blue]%}) %{$reset_color%}" | |
| fi | |
| } |