Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am groys on github.
  • I am groys (https://keybase.io/groys) on keybase.
  • I have a public key ASC4BdwfowdhA7CIzDI_qe5sqEhUDeVG_rc67zMobZouGgo

To claim this, I am signing this object:

/usr/local/Cellar/rbenv/1.1.2/libexec:/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core:/Users/gautam.roy/.rbenv/shims:/Users/gautam.roy/.nix-profile/bin:/opt/local/bin:/opt/local/sbin:/Users/gautamroy/code/tools/apache-maven-3.3.9/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/nix/store/zi39q5b43mll4a9n8xc24h2qz1qcmmg5-bash-interactive-4.4-p23/bin:/nix/store/vcgm727r50w7mwy7fxmswhq4ffj2qqf0-clang-wrapper-5.0.2/bin:/nix/store/a5avf9qlhlh9c0yx5jyld7m1jgr6f13l-clang-5.0.2/bin:/nix/store/s9a32i54kisz0679rnhjynm4v6gcnz86-coreutils-8.30/bin:/nix/store/k03xfwshmivn1r5vw1rmrf5i0akqbd3f-cctools-binutils-darwin-wrapper/bin:/nix/store/k8d4p5889qg0smgcgbwp1apy6zm102qh-cctools-binutils-darwin/bin:/nix/store/kmz985d7mr81bz4xdik47mc410b8sdcv-ruby-dev-2.3.8/bin:/nix/store/37ahp0922vhva473g667al44zd8bw3yw-openssl-1.0.2q-bin/bin:/nix/store/s8zw9h... (show balloon)
@groys
groys / gist:d90e93c2e66d27cd8b503f9d656c7b79
Created November 26, 2019 22:39
Time validation failure
1) Error:
AlertTest#test_0001_should remove driver, vehicle, group and dispatcher when deactivated or deleted:
ActiveRecord::RecordInvalid: Validation failed: End time should be greater than start_time, End time should be greater than recent_located_at
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/validations.rb:79:in `raise_record_invalid'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/validations.rb:43:in `save!'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/dirty.rb:29:in `save!'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:291:in `block in save!'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
vendor/bundle/ruby/2.3.0/gems/test_after_commit-1.1.0/lib/test_after_commit/database_statements.rb:11:in `block in transaction'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7
[~/lifeonair/livegrep]$ cat blacklist
jenkins-backup
growth
houseparty-backend
realm_291_tester
stella_protobuf
media-stressor
hello_job
MacTok
butterfly
@groys
groys / gist:a52deb86d3e2d90853d7ac6536abcd41
Created January 25, 2018 03:38
livegrep mac build error
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
ERROR: /Users/groys/lifeonair/livegrep/web/npm/style-loader/BUILD:7:1: installing node modules from web/npm/style-loader/npm-shrinkwrap.json failed (Exit 1)
/private/var/tmp/_bazel_groys/12e9774f8906bf206104458e35426a7e/bazel-sandbox/1836426167870779314/execroot/com_github_livegrep_livegrep/bazel-out/host/bin/external/org_dropbox_rules_node/node/tools/npm/install.runfiles/nodejs/bin/node: /
private/var/tmp/_bazel_groys/12e9774f8906bf206104458e35426a7e/bazel-sandbox/1836426167870779314/execroot/com_github_livegrep_livegrep/bazel-out/host/bin/external/org_dropbox_rules_node/node/tools/npm/install.runfiles/nodejs/bin/node: ca
nnot execute binary file
Traceback (most recent call last):
File "/private/var/tmp/_bazel_groys/12e9774f8906bf206104458e35426a7e/bazel-sandbox/1836426167870779314/execroot/com_github_livegrep_livegrep/bazel-out/host/bin/external/org_dropbox_rules_node/node/tools/npm/install.runfiles/com_github
@groys
groys / gist:4af62333750a4e06bafc8fd62c096bb0
Created January 22, 2018 19:08
Instabug Android Exception
java.lang.IllegalStateException: State: FLUSHED
at java.nio.charset.CharsetEncoder.illegalStateException(CharsetEncoder.java:688)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:366)
at java.io.OutputStreamWriter.drainEncoder(OutputStreamWriter.java:200)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:142)
at com.instabug.library.internal.storage.cache.OnDiskCache.put(SourceFile:193)
at com.instabug.library.internal.storage.cache.OnDiskCache.put(SourceFile:26)
at com.instabug.library.internal.storage.cache.CacheManager.migrateCache(SourceFile:218)
at com.instabug.library.internal.storage.cache.UserAttributesCacheManager.saveCacheToDisk(SourceFile:59)
at com.instabug.library.l$2.run(SourceFile:156)
CAFÉ 18 LUNCH ~ Indian ~
Appetizers (Shuruat): **Papadum
**Vegetarian Samosa
*Grilled Garlic Naan
ENTRÉE: Malai Chicken Tikka
Lamb Curry (Gosht Vindaloo)
VEGETARIAN ENTRÉE: *Seitan and Vegetable Korma