Request for comment (RFC)
Status: Drafting & seeking input from key stakeholders Author: Rafael Santos Last updated: January 2026
Status: Drafting & seeking input from key stakeholders Author: Rafael Santos Last updated: January 2026
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\[\033[94m\]\w\[\033[31m\]\$(parse_git_branch)\[\033[00m\] $ " |
| { | |
| "data":{ | |
| "id":"1", | |
| "type":"anonymUserData", | |
| "attributes":{ | |
| "currentLocation":{ | |
| "id":1, | |
| "countryCode":null, | |
| "currency":"EUR", | |
| "legalJurisdiction":null |
| [114, 150, 156].map.with_index { |elem, ind| a.slice(0..ind) } |
instancesproxy-production-v1 (proxy)marketplace-webapp-production-v3 (flippa rails)search-production-v17 (search)frontend-marketplace-production-v10 (marketplace frontend)| Dir.glob('/usr/local/lib/pry/gems/*').each do |p| | |
| $LOAD_PATH << File.join(p, 'lib') | |
| end | |
| require 'pry' | |
| require 'awesome_print' | |
| AwesomePrint.pry! | |
| if defined?(Rails) | |
| require 'pry-rails' |
| class Merda | |
| def dar_merda | |
| raise 'deu merda' | |
| end | |
| end |
| # color and syntax reference: | |
| # http://misc.flogisoft.com/bash/tip_colors_and_formatting | |
| if defined?(Rails) | |
| colors = HashWithIndifferentAccess.new({ | |
| development: 32, # green | |
| test: 33, # yellow | |
| production: 31 # red | |
| }) |