Install MLX LM:
pip install mlx-lm
And run:
| #postgresql setup | |
| ssh -i ~/.ssh/id_rsa root@<domain> | |
| dokku postgres:connect <db> | |
| psql=# SHOW config_file; | |
| -> /var/lib/postgresql/data/postgresql.conf | |
| psql=# \q | |
| docker ps |
This cheatsheet includes most of the byebug commands organized by related commands (e.g. breakpoint related commands are together).
To see official help...
| Command | Aliases | Example | Comments |
|---|---|---|---|
help |
h |
h |
list top level of all commands |
help cmd |
h cmd-alias |
h n |
list the details of a command (example shows requesting details for the next command) (this works for all commands) |
| json.extract! photo, :id, :image_data, :created_at, :updated_at | |
| json.url photo_url(photo, format: :html) | |
| json.image_url image_url_photo_url(photo) |
| import { Controller } from "stimulus" | |
| import { DirectUpload } from "@rails/activestorage" | |
| import { getMetaValue, toArray, findElement, removeElement, insertAfter } from "helpers" | |
| export default class extends Controller { | |
| static targets = [ "input" ] | |
| connect() { | |
| this.dropZone = createDropZone(this) | |
| this.hideFileInput() |
Initialize the droplet with dokku app pre-setup
| # ----------------------------------------------------------------- | |
| # .gitignore | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20181206 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore | |
| # to download this file | |
| # |