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
@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 |
@etagwerker
etagwerker / rails_stats.md
Created October 14, 2020 04:09
dev.to rails_stats

rails_stats

bundle exec rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Uploaders            |    76 |    61 |       5 |      11 |   2 |     3 |
| Sanitizers           |    32 |    27 |       1 |       3 |   3 |     7 |
| Mailers              |   239 |   186 |       4 |      24 |   6 |     5 |