Skip to content

Instantly share code, notes, and snippets.

Roberto Schneiders RobertoSchneiders

Block or report user

Report or block RobertoSchneiders

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andyjbas
andyjbas / gist:9962218
Last active Jul 19, 2018
Disable CSS Animations in Poltergeist & Phantomjs. Phantomjs does not like to wait for animations, and you can run in to nasty test flickers because of it. This pattern will disable animations in test env, and not touch any app code.
View gist:9962218
# env.rb or spec_helper.rb

Capybara.register_driver :poltergeist do |app|
  opts = {
    extensions: ["#{Rails.root}/features/support/phantomjs/disable_animations.js"] # or wherever
  }

  Capybara::Poltergeist::Driver.new(app, opts)
end
@jimsynz
jimsynz / install_ex.sh
Last active Nov 4, 2018
I use this to install Elixir on Codeship.
View install_ex.sh
#!/bin/sh
# I use this to install Elixir on our codeship instances for testing. YMMV.
# curl -O https://gist.githubusercontent.com/jamesotron/44f8962cddef781ab830/raw/e75599e95587cbca26e707505fd40dd0f26eb0f5/install_ex.sh
# . ~/install_ex.sh
# You can override your Elixir and Erlang versions from your shell when you call ./install_ex.sh.
export ERLANG_VERSION=${ERLANG_VERSION:-18.0.3}
export ELIXIR_VERSION=${ELIXIR_VERSION:-1.0.5}
@janklimo
janklimo / benchmark.rb
Created Sep 25, 2018
Comparison of memory usage: AXLSX vs. rubyXL
View benchmark.rb
# frozen_string_literal: true
require 'axlsx'
require 'rubyXL'
require 'memory_profiler'
rows = 1_000
columns = 20
report = MemoryProfiler.report do
@joakimk
joakimk / README.md
Last active Jun 10, 2019
CircleCI elixir build example
View README.md

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.

@hiattp
hiattp / sidekiq.config
Last active Dec 2, 2019
Sidekiq Config for Elastic Beanstalk
View sidekiq.config
# Sidekiq interaction and startup script
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
content: |
#!/bin/bash
. /opt/elasticbeanstalk/hooks/common.sh
. /opt/elasticbeanstalk/support/envvars
@ryansimms
ryansimms / circleci-2.0-eb-deployment.md
Last active Dec 4, 2019
Deploying to Elastic Beanstalk via CircleCi 2.0
View circleci-2.0-eb-deployment.md

Deploying to Elastic Beanstalk via CircleCi 2.0

I got to here after spending hours trying to deploy to an Elastic Beanstalk instance via CircleCi 2.0 so I thought I'd write up what worked for me to hopefully help others. Shout out to RobertoSchneiders who's steps for getting it to work with CircleCi 1.0 were my starting point.

For the record, I'm not the most server-savvy of developers so there may be a better way of doing this.

Setup a user on AWS IAM to use for deployments

You can’t perform that action at this time.