Skip to content

Instantly share code, notes, and snippets.

View paulfri's full-sized avatar
🤠

Paul Friedman paulfri

🤠
View GitHub Profile
# frozen_string_literal: true
class Sidekiq::Middleware::Server::StatsdQueueSize
def initialize(_options = nil)
@statsd = Sidekiq::Pro.metrics
end
def call(_worker, _msg, queue)
@statsd.gauge "queue.#{queue}.size", Sidekiq::Queue.new(queue).size
### Keybase proof
I hereby claim:
* I am paulfri on github.
* I am paulfri (https://keybase.io/paulfri) on keybase.
* I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( );
}
To claim this, I am signing this object:
@paulfri
paulfri / gist:5dcae5452f0141e79b27
Created July 15, 2014 18:46
paulfri.zsh-theme
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[cyan]%}▴%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg[magenta]%}▾%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg_bold[green]%}●%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg_bold[yellow]%}●%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[red]%}●%{$reset_color%}"