How to set-up bash completion on Mac for Docker, Docker Machine and Docker-Compose
Run:
brew install bash-completion
Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
How to set-up bash completion on Mac for Docker, Docker Machine and Docker-Compose
Run:
brew install bash-completion
Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
| Below are the Big O performance of common functions of different Java Collections. | |
| List | Add | Remove | Get | Contains | Next | Data Structure | |
| ---------------------|------|--------|------|----------|------|--------------- | |
| ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
| LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
| CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |
Let’s see how to use PostgreSQL to import and export CSV files painlessly with the COPY command.
Import CSV into table t_words:
COPY t_words FROM '/path/to/file.csv' DELIMITER ',' CSV;You can tell quote char with QUOTE and change delimiter with DELIMITER.
I hereby claim:
To claim this, I am signing this object:
| # Remove previous installations | |
| sudo apt-get remove vim vim-runtime vim-tiny vim-common | |
| # Install dependencies | |
| sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev | |
| # Fix liblua paths | |
| sudo ln -s /usr/include/lua5.2 /usr/include/lua | |
| sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so |