Skip to content

Instantly share code, notes, and snippets.

View josemrb's full-sized avatar

Jose R. josemrb

View GitHub Profile
@josemrb
josemrb / 1-setopts.zsh
Created January 26, 2025 15:30 — forked from mattmc3/1-setopts.zsh
ZSH - options by framework
## ZSH Options
# http://zsh.sourceforge.net/Doc/Release/Options.html
# Changing Directories
# http://zsh.sourceforge.net/Doc/Release/Options.html#Changing-Directories
setopt auto_cd # if a command isn't valid, but is a directory, cd to that dir
setopt auto_pushd # make cd push the old directory onto the directory stack
setopt pushd_ignore_dups # don’t push multiple copies of the same directory onto the directory stack
setopt pushd_minus # exchanges the meanings of ‘+’ and ‘-’ when specifying a directory in the stack
@josemrb
josemrb / release.Dockerfile
Created October 15, 2020 02:08 — forked from kyleVsteger/release.Dockerfile
Multistage Elixir 1.11 Phoenix Live View Release Dockerfile
ARG ALPINE_VERSION=3.12.0
FROM hexpm/elixir:1.11.0-erlang-23.1.1-alpine-3.12.0 as builder
ARG APP_VSN="1.0.0"
# Replace `your_app` with your otp application name.
ENV APP_NAME=your_app \
APP_VSN=${APP_VSN} \
MIX_ENV=prod
describe ApiJob, type: :job do
include ActiveJob::TestHelper
subject(:job) { described_class.perform_later() }
it 'handles status 429' do
allow(ApiClient).to receive(:make_request).and_raise(RestClient::RequestFailed)
perform_enqueued_jobs do
expect_any_instance_of(described_class).to receive(:retry_job).with(wait: 15.seconds)

Keybase proof

I hereby claim:

  • I am josemrb on github.
  • I am josemrb (https://keybase.io/josemrb) on keybase.
  • I have a public key whose fingerprint is F3A8 4717 141E A61E 634B FA93 473E 57E5 EDC6 CDC8

To claim this, I am signing this object: