Skip to content

Instantly share code, notes, and snippets.

YARD Cheatsheat

Method params

@param with one option

# @param user [User] Description
def method(user)
end
# docker rmi 0f8498f13f3a
Untagged: nginx:1.22.1
Untagged: nginx@sha256:fc5f5fb7574755c306aaf88456ebfbe0b006420a184d52b923d2f0197108f6b7
Deleted: sha256:0f8498f13f3adef3f3c8b52cdf069ecc880b081159be6349163d144e8aa5fb29
Deleted: sha256:1157a8fe80ce7a83101aa2364ca1758215873a32da11ab707161a4dc5613004e
Deleted: sha256:8eaa6e373c644088743d81d89291c01ef6790a21d83139bf7e919b01c070dec6
Deleted: sha256:6871e36d10c3a8334e6bf8af5c799245354a3ccbf0f324478e9894b465db523c
Deleted: sha256:91aa4ea35a8a6f0c5f85f0840b612064e2956bdef9c6cdda4cfac33c37010210
Deleted: sha256:061cb4f48d1eaf5424d5d7b4d0c65102f24530b9f1e01ec5e72a06966263c965
Deleted: sha256:3af14c9a24c941c626553628cf1942dcd94d40729777f2fcfbcd3b8a3dfccdd6
@biow0lf
biow0lf / z_airbrake.rb
Created June 9, 2022 00:25 — forked from 2called-chaos/z_airbrake.rb
Airbrake config example for Errbit
Airbrake.configure do |config|
# project specific
config.project_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
# use git SHA & current commit as app version
config.app_version = "Ruby: #{RUBY_VERSION} » Rails: #{Rails::VERSION::STRING} » " << `cd #{Rails.root} && git log -1 --pretty="%h - %B" HEAD`
# can always be 1
config.project_id = 1
on_worker_boot do
ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
client = ::Rack::MockRequest.new Rails.application
%w[/].each do |url|
client.get url
end
end
@biow0lf
biow0lf / database.yml
Created July 3, 2020 23:43
config/database.yml for local evemonk development
# PostgreSQL. Versions 9.3 and up are supported.
#
# Install the pg driver:
# gem install pg
# On macOS with Homebrew:
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
# On macOS with MacPorts:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
rake aborted!
Riddle::CommandFailedError: Sphinx command failed to execute
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/riddle-2.1.0/lib/riddle/execute_command.rb:23:in `call'
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/riddle-2.1.0/lib/riddle/execute_command.rb:5:in `call'
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/riddle-2.1.0/lib/riddle/controller.rb:29:in `index'
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/thinking-sphinx-3.3.0/lib/thinking_sphinx/controller.rb:8:in `block (2 levels) in index'
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/thinking-sphinx-3.3.0/lib/thinking_sphinx/guard/files.rb:14:in `call'
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/thinking-sphinx-3.3.0/lib/thinking_sphinx/guard/files.rb:3:in `call'
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/thinking-sphinx-3.3.0/lib/thinking_sphinx/controller.rb:7:in `block in index'
/home/prometheusapp/www/shared/bundle/ruby/2.4.0/gems/thinking-sphinx-3.3.0/lib/thinking_sphinx/indexi
==> make install
/usr/bin/install -c -m 644 ./rpmio/argv.h include/rpm/argv.h
/usr/bin/install -c -m 644 ./rpmio/rpmio.h include/rpm/rpmio.h
/usr/bin/install -c -m 644 ./rpmio/rpmurl.h include/rpm/rpmurl.h
/usr/bin/install -c -m 644 ./rpmio/rpmmacro.h include/rpm/rpmmacro.h
/usr/bin/install -c -m 644 ./rpmio/rpmlog.h include/rpm/rpmlog.h
/usr/bin/install -c -m 644 ./rpmio/rpmpgp.h include/rpm/rpmpgp.h
/usr/bin/install -c -m 644 ./rpmio/rpmsq.h include/rpm/rpmsq.h
/usr/bin/install -c -m 644 ./rpmio/rpmstring.h include/rpm/rpmstring.h
/usr/bin/install -c -m 644 ./rpmio/rpmstrpool.h include/rpm/rpmstrpool.h
@biow0lf
biow0lf / rpm
Created December 16, 2016 22:48
rpmquery --qf '[%{BASENAMES}\t%{FILESIZES}\n]'
rpmquery --qf '[%{PATCH}\n]'
и join по первому полю.
@biow0lf
biow0lf / english.stop
Created June 2, 2016 09:59
$ cat /usr/local/Cellar/postgresql/9.5.3/share/postgresql/tsearch_data/english.stop
i
me
my
myself
we
our
ours
ourselves
you
your