Instantly share code, notes, and snippets.

View 01-heroku-18-without-libssl-dev.txt
$ ldd vendor/bundle/ruby/2.5.0/gems/puma-3.11.4/lib/puma/puma_http11.so
linux-vdso.so.1 (0x00007ffca71e9000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f6c86954000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f6c864dc000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6c862bd000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6c85ecc000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6c85cc8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6c86dc8000)
View puma-segv.txt
[134] Puma starting in cluster mode...
[134] * Version 3.11.4 (ruby 2.5.1-p57), codename: Love Song
[134] * Min threads: 5, max threads: 5
[134] * Environment: production
[134] * Process workers: 1
[134] * Preloading application
Default type scope order, limit and offset are ignored and will be nullified
Creating scope :cache_ids. Overwriting existing method Notification.cache_ids.
[134] * Listening on tcp://0.0.0.0:8080
[134] ! WARNING: Detected 1 Thread(s) started in app boot:
View master-master.sh
#!/bin/sh
set -e
run () {
echo \$ "$*"
eval "$*"
}
confirm () {
echo
View rails-on-ruby260p2.sh
$ rbenv local 2.6.0-preview2
$ cat <<_END > Gemfile
source 'https://rubygems.org'
gem 'rails'
_END
$ bundle install --path=vendor/bundle
$ bundle exec rails new .
$ bundle exec rails s
$ mv config/application.rb config/application.rb.orig
$ cp config/application.rb.orig config/application.rb
View main.go
package main
import (
"fmt"
"math"
)
func main() {
x := 1.0 - math.Pow(2.0, -52)
y := math.Cbrt(x)
View game-of-life.rb
#!/usr/bin/ruby
class Board
Alive = '🥓'
Dead = '🥚'
Neighbors = [[-1,-1], [0,-1], [1,-1], [-1,0], [1,0], [-1,1], [0,1], [1,1]]
Glider = <<_END
🥚🥓🥚
🥚🥚🥓
View 00-build-log.txt
$ ruby23 --version
ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-netbsd]
$ bundle23 install --path=vendor/bundle
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using bundler 1.16.1
Fetching ffi 1.9.23
Installing ffi 1.9.23 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
View applog.txt
2018-04-07T03:08:13.824915+00:00 [paperclip] Trying to link /tmp/RackMultipart20180407-125-1eeazuw.gif to /tmp/fcd7d56c2d0d47393b5c03ea95e4a94e20180407-125-15e0wev.gif
2018-04-07T03:08:13.837122+00:00 [paperclip] Trying to link /tmp/fcd7d56c2d0d47393b5c03ea95e4a94e20180407-125-15e0wev.gif to /tmp/fcd7d56c2d0d47393b5c03ea95e4a94e20180407-125-rlo4ms.gif
2018-04-07T03:08:13.845842+00:00 Command :: file -b --mime '/tmp/fcd7d56c2d0d47393b5c03ea95e4a94e20180407-125-rlo4ms.gif'
2018-04-07T03:08:13.865349+00:00 Command :: identify -format %n '/tmp/fcd7d56c2d0d47393b5c03ea95e4a94e20180407-125-15e0wev.gif'
2018-04-07T03:08:13.878243+00:00 [paperclip] Trying to link /tmp/fcd7d56c2d0d47393b5c03ea95e4a94e20180407-125-a6cc3p.gif to /tmp/e098d176a97d9d73fd7b5edcf5e63db320180407-125-1hf7hod.gif
2018-04-07T03:08:13.878903+00:00 Command :: identify -format %n '/tmp/e098d176a97d9d73fd7b5edcf5e63db320180407-125-1hf7hod.gif'
2018-04-07T03:08:13.887740+00:00 [paperclip] Trying to link /tmp/fcd7d56c2d0d47393b5c03ea95e4a94e20180407-
View gist:a92112f8137db3a2cc5f9bb6a34c63b6
2018-03-07T19:03:15.383214+00:00 app[web.1]: 108 TID-ouy4kxuzk WARN: ActiveRecord::RecordInvalid: Validation failed: Text can't be blank
2018-03-07T19:03:15.383265+00:00 app[web.1]: 108 TID-ouy4kxuzk WARN: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.4/lib/active_record/validations.rb:78:in `raise_validation_error'
2018-03-07T19:03:15.383268+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.4/lib/active_record/validations.rb:50:in `save!'
2018-03-07T19:03:15.383271+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.4/lib/active_record/attribute_methods/dirty.rb:43:in `save!'
2018-03-07T19:03:15.383273+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:313:in `block in save!'
2018-03-07T19:03:15.383274+00:00 app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.4/lib/active_record/transactions.rb:384:in `block in with_transaction_returning_status'
2018-03-07T19:03:15.383276+00:00 app[web.1]: /app/vend
View logs.txt
2017-12-29T18:50:52.052960+00:00 heroku web.1 - - Process running mem=899M(175.6%)
2017-12-29T18:50:52.053178+00:00 heroku web.1 - - Error R14 (Memory quota exceeded)
2017-12-29T18:51:01.997911+00:00 heroku router - - at=info method=POST path="/inbox" host=mastodon.zunda.ninja request_id=26628b19-4464-49cc-8475-96555ef5894d fwd="*.*.*.*" dyno=web.1 connect=1ms service=7339ms status=202 bytes=330 protocol=https
2017-12-29T18:51:03.611193+00:00 app web.1 - - 133 TID-osxrvo6bg LinkCrawlWorker JID-883e28ac745e696f350885d0 INFO: start
2017-12-29T18:51:03.678338+00:00 app web.1 - - 133 TID-osxp0q06s ThreadResolveWorker JID-aefaddba53ae195a0e32bcae INFO: start
2017-12-29T18:51:04.295665+00:00 app web.1 - - 133 TID-osxrvo6bg LinkCrawlWorker JID-883e28ac745e696f350885d0 INFO: done: 0.685 sec
2017-12-29T18:51:04.302718+00:00 app web.1 - - 133 TID-osxrvo6bg DistributionWorker JID-6835a8bea40c67c621a41ef1 INFO: start
2017-12-29T18:51:04.357446+00:00 app web.1 - - 133 TID-osxvmntl4 ActivityPub::ProcessingWorker JID-131ade