Open terminal.
Connect to psql:
psql -p 5433
I find it easier to delete and recreate the DB to which you want to import. So ensure the databse you want to delete is listed:
\l
| #! /bin/bash | |
| # Replace "/path/to/gsutil/" with the path of your gsutil installation. | |
| PATH="$PATH":/path/to/gsutil/ | |
| # Replace "/home/username/" with the path of your home directory in Linux/Mac. | |
| # The ".boto" file contains the settings that helps you connect to Google Cloud Storage. | |
| export BOTO_CONFIG="/home/username/.boto" | |
| # A simple gsutil command that returns a list of files/folders in your bucket. |
| <?php | |
| // android store | |
| if (preg_match('#android#i', $_SERVER ['HTTP_USER_AGENT'])) { | |
| header('Location: market://details?id=com.google.android.apps.maps'); | |
| exit; | |
| } | |
| // ios | |
| if (preg_match('#(iPad|iPhone|iPod)#i', $_SERVER ['HTTP_USER_AGENT'])) { |
Open terminal.
Connect to psql:
psql -p 5433
I find it easier to delete and recreate the DB to which you want to import. So ensure the databse you want to delete is listed:
\l
| // Place this with the other middleware inclusion in routes/index.js | |
| keystone.pre('admin', middleware.enforcePermissions); |
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Settings Tab Demo | |
| * Plugin URI: https://gist.github.com/BFTrick/b5e3afa6f4f83ba2e54a | |
| * Description: A plugin demonstrating how to add a WooCommerce settings tab. | |
| * Author: Patrick Rauland | |
| * Author URI: http://speakinginbytes.com/ | |
| * Version: 1.0 | |
| * | |
| * This program is free software: you can redistribute it and/or modify |
| SELECT todo_lists.id AS id, | |
| todo_lists.name, | |
| jsonb_agg(to_jsonb(todo_items) - 'todo_list_id') AS items | |
| FROM todo_lists | |
| LEFT JOIN todo_items ON todo_items.todo_list_id = todo_lists.id | |
| GROUP BY todo_lists.id; |