Copy - Paste on Panel/Tab on Tmux
1.
2.
3. Select Text
4.
5.
NB: for MacOS user (iTerm2)
Use
1.
CTRL + B + [ = copy mode2.
CTRL + Space = select mode3. Select Text
4.
ALT + w = copy5.
CTRL + B + ] = pasteNB: for MacOS user (iTerm2)
Use
CTRL instead of ALT
alisoftware
Copy - Paste on Panel/Tab on Tmux 1. CTRL + B + [ = copy mode 2. CTRL + Space = select mode 3. Select Text 4. ALT + w = copy 5. CTRL + B + ] = paste NB: for MacOS user (iTerm2) Use CTRL instead of ALT
alisoftware
proxy_set_header X-Forwarded-Ssl on;
GitHub
getting "Can't verify CSRF token authenticity" even if csrf toke in present · Issue #2734 · plataformatec/devise
I'm doing simple authentication (without ajax or api) and getting error for csrf authenticity token. I'm using latest version of rails and devise check the post request below Parame...
Index untuk pencarian dari query LIKE/ILIKE di postgres, salah satu cara mempercepat waktu eksekusi query.
https://niallburkley.com/blog/index-columns-for-like-in-postgres/
https://niallburkley.com/blog/index-columns-for-like-in-postgres/
Niall Burkley's Developer Blog
Index Columns for `LIKE` in PostgreSQL
Adding indexes for (i)LIKE searches in PostgreSQL
Bagaimana cara mengaplikasikan module postgres trigram (pg_trgm) di aplikasi Rails?
https://stackoverflow.com/questions/18725081/rails-4-pgsql-add-index-with-type-gin-or-gist
https://scoutapm.com/blog/how-to-make-text-searches-in-postgresql-faster-with-trigram-similarity
https://www.sitepoint.com/awesome-autocomplete-trigram-search-in-rails-and-postgresql/
Singkatnya:
#psql #postgresql #postgres #gin #index
https://stackoverflow.com/questions/18725081/rails-4-pgsql-add-index-with-type-gin-or-gist
https://scoutapm.com/blog/how-to-make-text-searches-in-postgresql-faster-with-trigram-similarity
https://www.sitepoint.com/awesome-autocomplete-trigram-search-in-rails-and-postgresql/
Singkatnya:
rails generate migration AddPgTrgmExtensionToDB
rails generate migration AddIndexColumnToTables
class AddPgTrgmExtensionToDb < ActiveRecord::Migration[5.0]
def change
enable_extension :pg_trgm
enable_extension :btree_gin
end
end
class AddIndexColumnToTables < ActiveRecord::Migration[5.0]
def change
add_index :tables, :column, using: :gin
end
end
#psql #postgresql #postgres #gin #index
Stack Overflow
Rails 4 pgsql add_index with type GIN or GiST
In Rails it is possible to do:
add_index :table, :column_name, :using => 'btree'
Is it possible in Rails 4 with PGSQL to add a GIN or GiST index like:
add_index :students, :name, :using =>...
add_index :table, :column_name, :using => 'btree'
Is it possible in Rails 4 with PGSQL to add a GIN or GiST index like:
add_index :students, :name, :using =>...