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
| FROM postgres:14.13 | |
| WORKDIR /app | |
| RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list && \ | |
| apt-get update && apt install curl unzip groff -y && \ | |
| curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ | |
| unzip awscliv2.zip && \ | |
| ./aws/install | |
| RUN rm -r ./* && rm -rf /var/cache/apt | |
| ENTRYPOINT ["/bin/bash"] |
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
| set nocompatible " choose no compatibility with legacy vi | |
| filetype off " required | |
| "" Plugins | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif | |
| call plug#begin('~/.vim/plugged') |
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
| # gem "ruby-prof" | |
| around_filter :profiler | |
| def profiler(&block) | |
| data = RubyProf::Profile.profile(&block) | |
| filepath = Rails.root.join("tmp", "profiler.html") | |
| File.open(filepath, "w") do |f| | |
| RubyProf::CallStackPrinter.new(data).print(f) |
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
| #!/usr/local/bin/ruby | |
| class AbstractTask < ActiveRecord::Base | |
| self.table_name = 'tasks' | |
| self.inheritance_column = nil | |
| has_many :owners, through: :task_owners, source: :user | |
| has_many :task_owners, dependent: :destroy, foreign_key: 'task_id' | |
| has_many :work_logs, -> { order('started_at asc') }, dependent: :destroy, foreign_key: 'task_id' | |
| COMPANY_ID = 953 | |
| LAST_WEEK = (Time.now - 1.week)..Time.now |
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
| @media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) | |
| .entries-deckgrid[deckgrid]::before | |
| content: '3 .column.column-1-3' | |
| font-size: 0 | |
| visibility: hidden | |
| .entries-deckgrid[deckgrid]::after | |
| content: ' ' | |
| clear: both |