Skip to content

Instantly share code, notes, and snippets.

View beNjiox's full-sized avatar

Benjamin Guez beNjiox

View GitHub Profile
@mshwery
mshwery / Procfile
Created May 6, 2019 13:59
Use Heroku's release feature to deploy Typescript NodeJS sourcemaps to Sentry. So you can properly debug transpiled Typescript files!
release: bash ./release-sentry.sh
web: npm start
@gingerbeardman
gingerbeardman / file.io.sh
Last active April 25, 2024 05:49 — forked from devster/file.io.sh
Simple cli tool to use file.io https://www.file.io/#one Install: curl https://gist.githubusercontent.com/gingerbeardman/a7737e4c89fccab8605f8538ddaeec0d/raw/a78f5253b0fcdbd7b893f91627a29498690356ea/file.io.sh | sudo tee /usr/local/bin/file.io && sudo chmod +x /usr/local/bin/file.io
#!/bin/sh
URL="https://file.io"
DEFAULT_EXPIRE="14d" # Default to 14 days
if [ $# -eq 0 ]; then
echo "Usage: file.io FILE [DURATION]\n"
echo "Example: file.io path/to/my/file 1w\n"
exit 1
fi
@tijmenb
tijmenb / gist:5052074
Last active December 14, 2015 07:39
Fix Draper / Kaminari conflict `undefined method `current_page' for #<Draper::CollectionDecorator:>`
module Draper
class CollectionDecorator
delegate :current_page, :total_pages, :limit_value
end
end
@steveclarke
steveclarke / capybara.md
Created April 10, 2012 17:32
RSpec Matchers

Capybara

save_and_open_page

Matchers

have_button(locator)
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')