Today I Learned by OOZOU
echo "alias yolo='claude --dangerously-skip-permissions'" >> ~/.zshrc echo "alias yolo='claude --dangerously-skip-permissions'" >> ~/.bashrc source ~/.zshrc # or ~/.bashrc
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ollama run orca-mini
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor
server glx vendor string: NVIDIA Corporation client glx vendor string: NVIDIA Corporation OpenGL vendor string: NVIDIA Corporation
class CommentPolicy < ApplicationPolicy
def permitted_attributes
%i[body]
end
def permitted_attributes_for_create
%i[body application_id]
end
end
class CommentController
def create
@comment = Comment.create(comment_attributes) # { body: 'body', application_id: 1 }
end
def update
@comment = Comment.find(params[:id])
@comment.update(comment_attributes) # { body: 'new body' }
end
private def comment_attributes
permitted_attributes(Comment)
end
end
// ./.eslintrc.json
{
"ignorePatterns": [
"vendor/bundle/*"
]
}
# ./.rubocop.yml
AllCops:
Exclude:
- 'vendor/**/*'
// ./.eslintrc.json
{
"ignorePatterns": [
"vendor/bundle/*"
]
}# ./.rubocop.yml
AllCops:
Exclude:
- 'vendor/**/*'convert "Screen Shot 2021-07-07 at 09.47.13.png" \( +clone -background black -shadow 80x20+0+15 \) +swap -background transparent -layers merge +repage "Screen Shot 2021-07-07 at 09.47.13.png"
shadow () { convert "$@" \( +clone -background black -shadow 80x20+0+15 \) +swap -background transparent -layers merge +repage "$@"; }source ~/.bashrc
shadow "Screen Shot 2021-07-07 at 09.47.13.png"
Foo
.bar
.baz
Pry.commands.delete /\.(.*)/