vim /usr/local/var/postgres/postgresql.conf
At the end of the file add...
shared_preload_libraries 'pg_stat_statements,auto_explain' # Add settings for extensions here
# SizeUp: Send Window Left | |
ctrl + alt + cmd - left : yabai -m window --grid 1:2:0:0:1:1 | |
# SizeUp: Send Window Right | |
ctrl + alt + cmd - right : yabai -m window --grid 1:2:1:0:1:1 | |
# SizeUp: Send Window Up | |
ctrl + alt + cmd - up : yabai -m window --grid 2:1:0:0:1:1 | |
# SizeUp: Send Window Down |
--- | |
openapi: 3.0.0 | |
servers: | |
- description: Bohater Parkingu Rates API | |
url: https://virtserver.swaggerhub.com/just3ws/bohater-parkingu/1.0.1 | |
info: | |
description: Parking rate for a given date and time range. | |
version: "1.0.1" | |
title: Bohater Parkingu API | |
contact: |
#!/usr/bin/env zsh | |
# vim:set ft=zsh: | |
local word="$1" | |
local filter=".items[] | { repository: .full_name, username: .owner.login, reponame: .name, branch: .default_branch, description: .description }" | |
local query="q=$word in:path fork:false" | |
# local query="q=evil fork:false language:\"Emacs Lisp\"" | |
echo -n '{"query": "' | |
echo -n "$query" | |
echo '"}' |
# Rails.configuration.permit_automated_emails = true | |
class Floodwall | |
def initialize(context, bypass = false, **data, &action) | |
@context = context | |
@data = OpenStruct.new(data || {}) | |
@permit = Rails.configuration.permit_automated_emails || bypass || false | |
Rails.logger.warn { 'Floodwall has been bypassed and will allow emails through' } if bypass |
class Foo | |
attr_reader :env | |
def initialize | |
@env = 'staging' # Rail.env | |
end | |
def bar | |
warninger(biz: 123, buz: 'Hello', baz: Object.new) | |
end |
vim /usr/local/var/postgres/postgresql.conf
At the end of the file add...
shared_preload_libraries 'pg_stat_statements,auto_explain' # Add settings for extensions here
unless Rails.env.production? | |
ActiveSupport::Notifications.subscribe(/\A.*\.action_controller\z/) do |*args| | |
ts = Time.now.iso8601 | |
event = ActiveSupport::Notifications::Event.new(*args) | |
event_name, source_name = event.name.split('.') | |
unless event_name == 'unpermitted_parameters' | |
log_file = "#{source_name.tr('_', '-')}-notifications.log" | |
logger = ActiveSupport::TaggedLogging.new(Logger.new(Rails.root.join('log', log_file))) |
yyyyy/:oyyyysyyyyyyyyyysssoooo+++++//+///+/+++++/++oosso/:::+++++ooooossyyyyysssssso+:----.````````````-+ssyyyyyyysssssss/-/hyyyyyyyyyyyyyyyssssssssss+-:yhhhhhhhhhhhhhyyyyyysss+..+so++//:+sdNNNNMMMMMMMMMMMMMMMMMMMMMMMMMNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNNNNNNNNmmdhydddy///++/---:-:--/ossoossssyyyyyyyyhho+syyssssoooooo+++++//////:::---::::::://+++++ooo++++++/++/://++++++oooo+/-.:/:.-/::/:://:.:--+oo++oosssoossyssshyyyysossyyhysyyyyyysysoso+oo+ss++++so:.-:::--+:::://-//:--//::+syy | |
yyyyy+-/yyyyyyyyyyyyyyyyyyyyyyyyyys//ssssssssossssssssso/--:++oo+ooooosysyyyyyyyyyyys/-----````````````.:/:::::::///++oss/-/yyyhhyyyyyyyyyyyssyyssssss+-:shhhhhhhhhhhhhhhhhhyyyyo-.ohyhhyhdmNMNNNMMMMMMMMMMMMMMMMMMMMMMMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNNNNNNNmdhhhhys:-o+//----::-:+ooossssyyyyyyyyyhhhys+sssssssooooooo+++///:::::---.---::::////+++++++++++///////++++++++++++++:..:/--.//:/:::::--:-/ooooo+sysssshhsyyyssysyyhhyyyyyyysssyysoooo+ooo++/+::++::+o+/:+o++/-+oo++++ooo++/sy | |
yyyyy+-/yyyyyyyyyyyyyy |