Run terminal below commands
$ sudo pkill usbmuxd
$ sudo killall -STOP -c usbd
```
Run terminal below commands
$ sudo pkill usbmuxd
$ sudo killall -STOP -c usbd
```
def disable_with_option_v2(**options) | |
icon = "<i class='fa fa-refresh fa-spin'></i>" | |
icon += ' Wait...' unless options[:sm_icon] | |
{ disable_with: icon.html_safe } | |
end |
def query_present?(array) | |
query = params[:q] | |
return false if query.nil? | |
query = query.permit!.to_h | |
query.any? do |key, value| | |
key.to_s.in?(array) && value.present? | |
end | |
end |
en: | |
activemodel: | |
errors: | |
models: | |
profiles/address/edit: | |
format: "%{message} %{attribute}" | |
blank: Please enter the |
# BasicAuth Concern | |
include BasicAuthentication |
Heroku Planlara Göre Yedek Limitleri: https://devcenter.heroku.com/articles/heroku-postgres-backups#scheduled-backups-retention-limits https://devcenter.heroku.com/articles/heroku-postgres-backups
heroku pg:backups:schedule DATABASE_URL --at '05:00 Asia/Istanbul' -a vilusa
heroku pg:backups:unschedule DATABASE_URL -a vilusa
--- | |
linters: | |
ErbSafety: | |
enabled: true | |
Rubocop: | |
enabled: true | |
rubocop_config: | |
inherit_from: | |
- .rubocop.yml | |
Style/FrozenStringLiteralComment: |
# frozen_string_literal: true | |
module ErrorService | |
class << self | |
def notify(notify) | |
notify = notify.red unless Rails.env.production? | |
Rails.logger.error(notify) | |
Rollbar.error(notify) | |
false | |
end |
Rollbar.configure do |config| | |
# Without configuration, Rollbar is enabled in all environments. | |
# To disable in specific environments, set config.enabled=false. | |
config.access_token = ENV['ROLLBAR_ACCESS_TOKEN'] | |
# Here we'll disable in 'test': | |
config.enabled = Rails.env.production? | |
# By default, Rollbar will try to call the `current_user` controller method |