Skip to content

Instantly share code, notes, and snippets.

describe vs. context in rspec
http://lmws.net/describe-vs-context-in-rspec
In Rspec world, you often see people using both “describe” blocks and “context” blocks together, like this
describe "launch the rocket" do
context "all ready" do
end
context "not ready" do
@syed-shibli
syed-shibli / sidekiq.config
Created November 23, 2019 09:06 — forked from maxdbn/sidekiq.config
Gracefully restarting Sidekiq on Elasticbeanstalk, only after it's done with the running jobs. Tested on: 64bit Amazon Linux 2016.09 v2.3.0 running Ruby 2.3 (Puma). Thanks to ssaunier for the original gist! https://gist.github.com/ssaunier/44bbebb9c0fa01953860
# Sidekiq interaction and startup script
commands:
create_post_dir:
command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
owner: root
group: root
@syed-shibli
syed-shibli / gist:c3f015f8761a0c08bd757083e9f12d74
Created October 30, 2019 12:59 — forked from DavidFricker/gist:67319b82b822246f0a1f2c2e60b17b05
Puppeter (Chrome) dependencies on Ubuntu 16 LTS
sudo apt-get update
sudo apt-get install libxcomposite-dev -y
sudo apt-get install libxcursor1 -y
sudo apt-get install libxi6 libgconf-2-4 -y
sudo apt-get install libxtst6 -y
sudo apt-get install libnss3-dev -y
sudo apt-get install libcups -y
sudo apt-get install libxss1
sudo apt-get install libxrandr2