Dockerの外でやらないといけない感じなのかな?
git clone https://github.com/rbenv/rbenv.git ~/.rbenvpro
cd ~/.rbenv && src/configure && make -C src
cat << _END > ~/.bashrc
/ | |
/.DS_Store | |
/.env | |
/.git/config | |
/.vscode/sftp.json | |
/?rest_route=/wp/v2/users/ | |
/_all_dbs | |
/about | |
/config.json | |
/debug/default/view?panel=config |
# | |
# crawler to measure size distribution of ActivityPub servers | |
# | |
# usage: ruby crawl-activitypub.rb [initial-hostname] | |
# Creates a TSV file: apstat-%Y%m%d.tsv | |
# | |
# Copyright 2023 by zunda | |
# | |
# Permission is granted for use, copying, modification, distribution, | |
# and distribution of modified versions of this work as long as the |
$ cd ~/c/src/github.com/ruby/ruby | |
$ git switch master | |
$ git pull | |
$ git rev-parse HEAD | |
31c0ea20e5492925ac971991937e30524da5043d | |
$ git clean -dxf | |
$ ./autogen.sh | |
$ mkdir build && cd build | |
$ mkdir ~/.rubies | |
$ ../configure --prefix="${HOME}/.rubies/ruby-master" --disable-install-doc |
#!/bin/sh | |
usage='sh create-heroku-app.sh heroku-app-name' | |
# | |
# creates a Mastodon app with the specified app name | |
# following the memo at | |
# https://github.com/zunda/mastodon/wiki/CreateInstanceOnHeroku | |
# | |
set -e | |
run () { |
pid=65 tid=742h WARN: Stoplight::Error::RedLight: https://example.com/inbox | |
pid=65 tid=742h WARN: /app/vendor/bundle/ruby/3.2.0/gems/stoplight-3.0.2/lib/stoplight/light/runnable.rb:50:in `run_red' | |
/app/vendor/bundle/ruby/3.2.0/gems/stoplight-3.0.2/lib/stoplight/light/runnable.rb:25:in `run' | |
/app/app/workers/activitypub/delivery_worker.rb:75:in `perform_request' | |
/app/app/workers/activitypub/delivery_worker.rb:36:in `perform' | |
/app/vendor/bundle/ruby/3.2.0/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:202:in `execute_job' | |
/app/vendor/bundle/ruby/3.2.0/gems/sidekiq-6.5.9/lib/sidekiq/processor.rb:170:in `block (2 levels) in process' | |
/app/vendor/bundle/ruby/3.2.0/gems/sidekiq-6.5.9/lib/sidekiq/middleware/chain.rb:177:in `block in invoke' | |
/app/vendor/bundle/ruby/3.2.0/gems/sidekiq-unique-jobs-7.1.29/lib/sidekiq_unique_jobs/middleware.rb:36:in `call' | |
/app/vendor/bundle/ruby/3.2.0/gems/sidekiq-6.5.9/lib/sidekiq/middleware/chain.rb:179:in `block in invoke' |
3.2.1 |
index 288f847f17..a309c3f929 100644 | |
--- a/app/controllers/api/v2/media_controller.rb | |
+++ b/app/controllers/api/v2/media_controller.rb | |
@@ -6,7 +6,10 @@ class Api::V2::MediaController < Api::V1::MediaController | |
render json: @media_attachment, serializer: REST::MediaAttachmentSerializer, status: @media_attachment.not_processed? ? 202 : 200 | |
rescue Paperclip::Errors::NotIdentifiedByImageMagickError | |
render json: file_type_error, status: 422 | |
- rescue Paperclip::Error | |
+ rescue Paperclip::Error => e | |
+ Rails.logger.error 'Paperclip::Error' |
# https://docs.ruby-lang.org/ja/latest/doc/marshal_format.html | |
class MarshalDump | |
class DumpedClass | |
attr_reader :class_name, :parent, :ivars, :dump | |
def initialize(class_name) | |
@class_name = class_name | |
end | |
def set_parent(parent) |
[ | |
#<Status id: 109990660492246463, updated_at: "2023-03-09 01:11:27.314186000 +0000">, | |
#<Status id: 109990659522616557, updated_at: "2023-03-09 01:11:12.504444000 +0000">, | |
#<Status id: 109990659016836953, updated_at: "2023-03-09 01:11:04.784308000 +0000">, | |
#<Status id: 109990658036120775, updated_at: "2023-03-09 01:10:49.819764000 +0000">, | |
#<Status id: 109990654963086524, updated_at: "2023-03-09 01:10:02.929643000 +0000">, | |
#<Status id: 109990654029118138, updated_at: "2023-03-09 01:09:48.677304000 +0000">, | |
#<Status id: 109990652319990392, updated_at: "2023-03-09 01:09:22.598533000 +0000">, | |
#<Status id: 109990651465714016, updated_at: "2023-03-09 01:09:09.563808000 +0000">, | |
#<Status id: 109990650683468074, updated_at: "2023-03-09 01:08:57.628983000 +0000">, |