- Date: 2026-08-17
- Version: 0.6
At its core, PLTSV is ordinal LTSV with the first three columns guaranteed.
| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd |
While these terms are often used interchangeably in prompt engineering, they trigger fundamentally different pathways in a Transformer’s latent space.
Your scenario of parsing text into variables via specific formats (JSON vs. Pseudo-code) acts as a control valve for these behaviors.
| sudo apt-get update | |
| sudo apt-get install libjemalloc-dev | |
| RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 2.6.3 | |
| # test (look for jemalloc warnings) | |
| MALLOC_CONF=invalid_flag:foo ruby -v |
When crafting prompts for AI or LLMs, you can adjust various inputs or variables to tailor the model's responses. Here's a simple guide to understanding what each of these terms means:
prompt: The question or statement you provide to the model, essentially telling it what you want to know or do.
max_tokens: Limits how long the AI's response can be, like setting a maximum number of words or sentences it can use to answer.
50 - Makes the AI provide a concise, often one-sentence reply.
This gist aims to provide a simple solution for managing Heroku Review Apps with GitHub Actions due to the security incident that continues to disrupt Heroku's GitHub integration. Watch the demo to learn more.
.github
├── workflows
│ ├── heroku_review_app_create.yml
| # ActiveJob natively captures constructor arguments in an `@arguments` instance variable | |
| # which is also exposed as an `arguments` property on each job instance. | |
| # | |
| # Calls to `perform_now` and `perform_later` both forward arguments to the constructor. | |
| # | |
| # For example, all of these invocation styles work. | |
| # | |
| # result = DoStuffJob.new("foobar").perform # sync | |
| # result = DoStuffJob.new.perform("foobar") # sync | |
| # result = DoStuffJob.perform_now("foobar") # sync |
| # Builds an SQL insert query for a given record | |
| # | |
| # @param record [ActiveRecord::Base] Record used to build the SQL insert query | |
| # @return [String] SQL insert query | |
| def build_insert_query(record) | |
| columns = record.class.columns.reject { |col| col.name == record.class.primary_key } | |
| values = columns.map { |col| record[col.name] } | |
| insert_manager = Arel::InsertManager.new | |
| insert_manager.into(record.class.arel_table) | |
| insert_manager.insert(columns.zip(values)).to_sql |