This is blatently summarized from here: http://dgmstuart.github.io/blog/2017/04/12/how-to-recover-from-rails-database-schema-conflicts-when-rebasing/
I wanted a more succeinct version available to me.
- Try to manually merge it
| # The following comments fill some of the gaps in Solargraph's understanding of | |
| # Rails apps. Since they're all in YARD, they get mapped in Solargraph but | |
| # ignored at runtime. | |
| # | |
| # You can put this file anywhere in the project, as long as it gets included in | |
| # the workspace maps. It's recommended that you keep it in a standalone file | |
| # instead of pasting it into an existing one. | |
| # | |
| # @!parse | |
| # class ActionController::Base |
This is blatently summarized from here: http://dgmstuart.github.io/blog/2017/04/12/how-to-recover-from-rails-database-schema-conflicts-when-rebasing/
I wanted a more succeinct version available to me.
| # Pencil Project Shortcuts | |
| ## General Shortcuts | |
| + New Document: Ctrl + n | |
| + Open: Ctrl + o | |
| + Save: Ctrl + s | |
| + Save as: Ctrl + Shift + s | |
| + Export: Ctrl + Shift + e | |
| + Print: Ctrl + p |
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
| uri = URI('https://host.com/ews/exchange.asmx') | |
| user = '' | |
| passwd = '' | |
| Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http| | |
| request = Net::HTTP::Get.new(uri.request_uri) | |
| t1 = Net::NTLM::Message::Type1.new() | |
| request['Authorization'] = 'NTLM ' + t1.encode64 | |
| response = http.request(request) |
| #!/bin/sh | |
| # This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
| # Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
| # Some column types are not handled (e.g blobs). | |
| SQLITE_DB_PATH=$1 | |
| PG_DB_NAME=$2 | |
| PG_USER_NAME=$3 |