Skip to content

Instantly share code, notes, and snippets.

View etagwerker's full-sized avatar
๐Ÿ 
Working from home

Ernesto Tagwerker etagwerker

๐Ÿ 
Working from home
View GitHub Profile
The @FastRubyIO team has been doing Ruby and Rails upgrades for a long time. They even have some tips on how to upgrade when there is no time to write tests. https://www.fastruby.io/blog/rails/upgrade/testing/how-to-upgrade-rails-without-tests.html?utm_source=matz
@etagwerker
etagwerker / git-commit.log
Created February 2, 2021 16:36
git commit with points project
โžœ points git:(feature/upgrade-rails-5-2) โœ— git commit Gemfile*
warning: parser/current is loading parser/ruby25, which recognizes
warning: 2.5.8-compliant syntax, but you are running 2.5.7.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
standard: Use Ruby Standard Style (https://github.com/testdouble/standard)
standard: Run `standardrb --fix` to automatically fix some problems.
Gemfile:33:7: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Gemfile:35:7: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Gemfile:35:23: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Gemfile:36:16: Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
โžœ docker-lobsters git:(main) docker-compose down --volumes
Removing network docker-lobsters_default
WARNING: Network docker-lobsters_default not found.
Removing volume docker-lobsters_lobsters_database
WARNING: Volume docker-lobsters_lobsters_database not found.
โžœ docker-lobsters git:(main) docker-compose up
Creating network "docker-lobsters_default" with the default driver
Creating volume "docker-lobsters_lobsters_database" with local driver
Creating docker-lobsters_proxy_1 ... done
Creating docker-lobsters_database_1 ... done
@etagwerker
etagwerker / gist:899e91fc0b9b745497d4a536d6aa411a
Created January 12, 2021 14:57
rake stats and bundle-stats for discourse
โžœ fastruby rake stats\[./discourse\]
Directory: /Users/etagwerker/Projects/fastruby/discourse
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Mailers | 999 | 811 | 9 | 51 | 5 | 13 |
| Models | 42749 | 31367 | 242 | 2145 | 8 | 12 |
| Serializers | 7918 | 6022 | 179 | 1133 | 6 | 3 |
@etagwerker
etagwerker / was-transcribe.json
Created January 5, 2021 20:33
AWS Transcribe result for this episode: https://remoteruby.transistor.fm/100
This file has been truncated, but you can view the full file.
{"jobName":"RemoteRuby-Episode100-ErnestoTagwerker","accountId":"015078986747","results":{"transcripts":[{"transcript":"Let's go back. Pick Chris. It's up, Jason. Remote Ruby 1\/100 episode. This is the first generation of a remote ruby podcast. My name is Jason Charms. I'm Chris Oliver. Let's celebrate Happy Episode 100. Whoa! I'm going to start the episode with 100 reasons. I love honey Badger. Uh, that was pretty good. I love it. I like it. I don't have ah 100 reasons typed out, And it would take me a long time to list 100 things, but 360 degree coverage, air reporting, monitoring you name it, they got it. And they named their coming after a meme. And they have the fantastic podcast they dio Yeah, I think that rounds up to 100 right? Yeah. So thank you, honey. Badger for sponsoring remote ruby and keeping it going. And if you haven't checked out, honey badger there is a link in our show notes and tell them that Andrew, Chris and Jason sent you and tell them we love them. Yeah. Episode 100. How about that?
@etagwerker
etagwerker / FalseNewsTrumpQAnonSpanish
Created November 12, 2020 15:18
Q-Anon-Spanish-Conspiracy-Theories
Comparto esto que escribiรณ la Esposa de Mi Primo que Viven en Estados Unidos en ahora El estado de La Florida, hace mรกs de 20, 30 aรฑos. No lo recuerdo...lean...
Es bueno saberlo.
Aunque le hayan dicho โ€œpayasoโ€
El โ€œpayaso en la Casa Blanca" acaba de negociar TRES Acuerdos de Paz en Medio Oriente, algo que 71 aรฑos de intervenciรณn polรญtica y guerra sin fin no lograron producir.
El bufรณn en la Casa Blanca es el PRIMER presidente que NO nos ha involucrado en una GUERRA extranjera desde Eisenhower.
El โ€œpayaso en la Casa Blancaโ€ ha tenido el MAYOR impacto en la economรญa, trayendo trabajo y REDUCIENDO el desempleo a la poblaciรณn negra y latina que CUALQUIER presidente anterior.
El โ€œbufรณn en la Casa Blancaโ€ ha EXPUESTO la profunda, generalizada y antigua corrupciรณn en el FBI, la CIA, la NSA y los partidos republicanos y demรณcratas.
@etagwerker
etagwerker / rake.log
Created October 23, 2020 13:20
rake skunk with ruby 2.5.x
โžœ skunk git:(feature/update-dependencies) โœ— rvm-prompt
ruby-2.5.7
โžœ skunk git:(feature/update-dependencies) โœ— COVERAGE=true bundle exec rake
/Users/etagwerker/Projects/fastruby/skunk/test/test_helper.rb:8:in `<top (required)>': [DEPRECATION] ::[] is deprecated. Use ::new instead.
/Users/etagwerker/.rvm/gems/ruby-2.5.7/gems/simplecov-0.19.0/lib/simplecov/configuration.rb:203: warning: instance variable @enable_for_subprocesses not initialized
Using SimpleCov v0.19.0
/Users/etagwerker/.rvm/gems/ruby-2.5.7/gems/ruby_parser-3.15.0/lib/ruby_lexer.rb:1312: warning: shadowing outer local variable - s
Run options: --seed 58645
# Running:
@etagwerker
etagwerker / rake.log
Created October 23, 2020 12:40
rake with ruby 2.4 and skunk
COVERAGE=true BUNDLE_GEMFILE=Gemfile-Ruby-2-4 bundle exec rake
/Users/etagwerker/Projects/fastruby/skunk/test/test_helper.rb:8:in `<top (required)>': [DEPRECATION] ::[] is deprecated. Use ::new instead.
Using SimpleCov v0.18.5
/Users/etagwerker/.rvm/gems/ruby-2.4.10/gems/ruby_parser-3.15.0/lib/ruby_lexer.rb:1312: warning: shadowing outer local variable - s
Run options: --seed 48456
# Running:
running flay smells
@etagwerker
etagwerker / rubyfmt-test-drive
Created October 23, 2020 11:48
rails-rubyfmt-output
โžœ rails git:(master) โœ— rubyfmt .
warning: actioncable/lib/action_cable/channel/streams.rb contains syntax errors, ignoring for now
๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›๐Ÿ›
๐Ÿ› ๐Ÿ›
๐Ÿ› Rubyfmt failed to correctly deserialize a tree from ripper. This is absolutely a bug ๐Ÿ›
๐Ÿ› and you should send us a bug report at https://github.com/penelopezone/rubyfmt/issues/new. ๐Ÿ›
๐Ÿ› Ideally you would include the full source code of the program you ran rubyfmt with. ๐Ÿ›
๐Ÿ› If you can't do that for some reason, the best thing you can do is ๐Ÿ›
๐Ÿ› rerun rubyfmt on this program with the debug binary with `2>log_file` on the end ๐Ÿ›
@etagwerker
etagwerker / rails_stats_discourse.md
Created October 14, 2020 04:12
rails_stats and bundle-stats for discourse

rails_stats

bundle exec rails stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Mailers              |   998 |   810 |       9 |      51 |   5 |    13 |
| Models               | 42186 | 30911 |     241 |    2093 |   8 |    12 |
| Serializers          |  7871 |  5985 |     179 |    1127 |   6 |     3 |