ARG RUBY_VERSION=3.3.6
FROM ruby:$RUBY_VERSION
ENV RAILS_ENV=production \
BUNDLE_PATH=/bundle \
BUNDLE_WITHOUT="development test" \
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+down",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "cmd+up",
This file contains hidden or 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
# frozen_string_literal: true | |
require 'uri' | |
require 'net/http' | |
require 'json' | |
require 'webmock/rspec' | |
class Properties | |
API_URL = 'https://api.stagingeb.com/v1/properties' | |
API_KEY = 'l7u502p8v46ba3ppgvj5y2aad50lb9' |
This file contains hidden or 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
# For Gnome terminal | |
# add or edit ~/.config/gtk-3.0/gtk.css | |
VteTerminal, | |
TerminalScreen, | |
vte-terminal { | |
padding: 10px 10px 30px 10px; | |
-VteTerminal-inner-border: 10px 10px 30px 10px; | |
} |
This file contains hidden or 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
# ~/Library/Application Support/Code/User/snippets/ruby.json | |
{ | |
// Place your snippets for ruby here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", |
- Create the project structure
docker run -it --rm -v ${PWD}:/usr/src/app -w /usr/src/app ruby:3.1.2 bash -c 'gem install rails && rails new trader-bot -T -d mysql -c tailwind'
- /<project_name>/Dockerfile
wget https://github.com/jmscarnatto/dockerfile-rails7/raw/main/Dockerfile
This file contains hidden or 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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH |
NewerOlder