This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "parallel" | |
require "dorian/arguments" | |
def red(string) | |
"\e[31m#{string}\e[0m" | |
end | |
parsed = Dorian::Arguments.parse( | |
output: { aliases: [:o, :out], default: true }, | |
error: { aliases: [:e, :err], default: true }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
jobs: | |
brakeman: | |
name: Brakeman | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/s/code> kamal redeploy | |
INFO [263876dd] Running /usr/bin/env mkdir -p .kamal on 165.232.149.13 | |
INFO [263876dd] Finished in 4.046 seconds with exit status 0 (successful). | |
Acquiring the deploy lock... | |
Build and push app image... | |
INFO [7837fd3c] Running docker --version && docker buildx version as dorianmariefr@localhost | |
INFO [7837fd3c] Finished in 0.190 seconds with exit status 0 (successful). | |
The following paths have uncommitted changes: | |
M app/views/layouts/application.html.slim | |
INFO [2b840731] Running docker buildx build --push --platform linux/amd64,linux/arm64 --builder kamal-code-multiarch -t dorianmariefr/code:d5b58d39902455baf00c2bb2f7d31059a2eca347_uncommitted_3bb13feaf360125e -t dorianmariefr/code:latest --label service="code" --file Dockerfile . as dorianmariefr@localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre > code.sourceCode { white-space: pre; position: relative; } | |
pre > code.sourceCode > span { line-height: 1.25; } | |
pre > code.sourceCode > span:empty { height: 1.2em; } | |
.sourceCode { overflow: visible; } | |
code.sourceCode > span { color: inherit; text-decoration: inherit; } | |
div.sourceCode { margin: 1em 0; } | |
pre.sourceCode { margin: 0; } | |
@media screen { | |
div.sourceCode { overflow: auto; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires :password_reset_token and :password_reset_token_expires_at fields | |
module PasswordResetable | |
extend ActiveSupport::Concern | |
included do | |
before_validation do | |
if password_reset_token_expires_at && password_reset_expires_at.past? | |
expire_password_reset! | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": { | |
"message": "The model 'gpt-4' does not exist", | |
"type": "invalid_request_error", | |
"param": "model", | |
"code": "model_not_found" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": { | |
"message": "The model 'gpt-4' does not exist", | |
"type": "invalid_request_error", | |
"param": "model", | |
"code": "model_not_found" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"object": "list", | |
"data": [ | |
{ | |
"id": "whisper-1", | |
"object": "model", | |
"created": 1677532384, | |
"owned_by": "openai-internal", | |
"permission": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/soirees/Library/Preferences/.GlobalPreferences.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/helloworld.rb b/helloworld.rb | |
index 4545ae5..fbe9b63 100644 | |
--- a/helloworld.rb | |
+++ b/helloworld.rb | |
@@ -25,12 +25,13 @@ class Helloworld | |
puts "Hi from:" | |
end | |
- def say_hello(person, location) | |
- puts "#{person}, #{location}" |
NewerOlder