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
docker run --rm -ti -v $(pwd):$(pwd) -w $(pwd) ruby:3.3.4 bash -c "gem update --system && gem install rails && rails new my_app --database=postgresql --devcontainer --css=tailwind" |
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
#! /bin/zsh | |
sudo rm -rf "/Applications/Visual Studio Code.app" | |
sudo rm -rf /System/Volumes/Data/usr/local/bin/code | |
rm -rf ~/Library/Application\ Support/Code | |
rm -rf ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.vscode.sfl2 | |
rm -rf ~/Library/Caches/com.microsoft.VSCode* | |
rm -rf ~/Library/HTTPStorages/com.microsoft.VSCode* | |
rm -rf ~/Library/Preferences/ByHost/com.microsoft.VSCode* | |
rm -rf ~/Library/Preferences/com.microsoft.VSCode* |
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
# frozen_string_literal: true | |
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem 'rspec', github: 'rspec/rspec-metagem', ref: 'main' | |
gem 'rspec-core', github: 'rspec/rspec-core', ref: 'main' | |
gem 'rspec-expectations', github: 'rspec/rspec-expectations', ref: 'main' | |
gem 'rspec-mocks', github: 'rspec/rspec-mocks', ref: 'main' | |
gem 'rspec-support', github: 'rspec/rspec-support', ref: 'main' |
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
# Airbrake is an online tool that provides robust exception tracking in your Rails | |
# applications. In doing so, it allows you to easily review errors, tie an error | |
# to an individual piece of code, and trace the cause back to recent | |
# changes. Airbrake enables for easy categorization, searching, and prioritization | |
# of exceptions so that when errors occur, your team can quickly determine the | |
# root cause. | |
# | |
# Configuration details: | |
# https://github.com/airbrake/airbrake-ruby#configuration | |
require 'airbrake/sidekiq' |
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
import { resolve } from 'rsvp'; | |
import { merge } from '@ember/polyfills'; | |
import { isPresent } from '@ember/utils'; | |
import InfinityModel from 'ember-infinity/lib/infinity-model'; | |
export default InfinityModel.extend({ | |
canLoadMore: true, | |
buildParams(increment) { | |
let pageParams = {}; |
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
#################################################################################################### | |
# Stage I - The builder stage: We'll use as much as the same commands (layers) on the dev.Dockerfile | |
# so we can use the cache as much as possible: | |
# 1: Use node 8 as base: | |
FROM node:8-alpine as development | |
# 2: We'll set the application path as the working directory | |
WORKDIR /usr/src |
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
#! /bin/sh | |
# The Docker App Container's development entrypoint. | |
# This is a script used by the project's Docker development environment to | |
# setup the app containers and databases upon runnning. | |
set -e | |
: ${APP_PATH:="/usr/src"} | |
: ${APP_TEMP_PATH:="$APP_PATH/tmp"} | |
: ${APP_SETUP_LOCK:="$APP_TEMP_PATH/setup.lock"} |
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
# Deploy using `docker stack deploy -f docker-flow-stack.yml docker_flow` | |
version: '3.7' | |
networks: | |
network: # Allows referring to 'docker_flow_network' on other stacks | |
services: | |
proxy: | |
image: dockerflow/docker-flow-proxy:19.03.02-16 | |
ports: |
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
version: "2.4" | |
volumes: | |
postgres_data: | |
redis_data: | |
rabbit_data: | |
networks: | |
backend: |
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
#!/usr/bin/env ruby | |
# This file is located at `bin/rails` | |
# Load the 'switch_user_and_exec' routine: | |
require_relative '../config/switch_user_and_exec' | |
begin | |
load File.expand_path('../spring', __FILE__) | |
rescue LoadError => e |
NewerOlder