Skip to content

Instantly share code, notes, and snippets.

Andreas Happe andreashappe

Block or report user

Report or block andreashappe

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
View jwt_mac_vs_signature.py
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"
@andreashappe
andreashappe / minitest_helper.rb
Last active Aug 29, 2015
Minitest Helper for Capybara-based pen-tests
View minitest_helper.rb
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 Mar 13, 2012
Coding Rails apps with VIM
View vim-rails.textile

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
You can’t perform that action at this time.