Skip to content

Instantly share code, notes, and snippets.

@andreashappe
andreashappe / minitest_helper.rb
Last active August 29, 2015 14:06
Minitest Helper for Capybara-based pen-tests
require 'minitest/autorun'
require 'pry-rescue/minitest'
require 'capybara'
require 'capybara/dsl'
require 'capybara/poltergeist'
require 'minitest/colorize'
Capybara.register_driver :poltergeist do |app|
@andreashappe
andreashappe / vim-rails.textile
Created March 13, 2012 00:29
Coding Rails apps with VIM

VIM and Ruby on Rails

Just use this with GVim or MacVim.

Installed plugins

NERDtree File-browser sidebar/drawer
rails.vim add lots of rail’s specific helpers
dbext.vim allow direct database interaction from within vim
syntastic.vim do automatic syntax checking on file-save
import jwt
import requests
from jwcrypto import jwk
from cryptography.x509 import load_pem_x509_certificate
from cryptography.hazmat.backends import default_backend
# configuration
jwks_url = "https://localhost/oauth2/.well-known/jwks.json"
operation_url = "https://localhost/web/v1/user/andy"