docker commit my_origin_container my_container_snapshot:yymmdd
docker run --name=my_clone my_container_snapshot:yymmdd
docker container prune
ENV HOME=/home/dev | |
# INSTALL APT DEPENDENCIES | |
RUN apt-get update -qq && apt-get upgrade -y && apt-get install -y --no-install-recommends build-essential git wget zsh | |
# OH-MY-ZSH | |
RUN wget -P $HOME https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh; \ | |
sh $HOME/install.sh; \ | |
rm $HOME/install.sh |
# 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 |
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'
wget https://github.com/jmscarnatto/dockerfile-rails7/raw/main/Dockerfile
# ~/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", |
# 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; | |
} |
# 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' |