I hereby claim:
- I am davidderus on github.
- I am davidderus (https://keybase.io/davidderus) on keybase.
- I have a public key ASAxJBJuCOjK7LuL3cC_5dpQ2-my4iYn7VLxyyyrcEoVhwo
To claim this, I am signing this object:
| #!/bin/zsh - | |
| #=============================================================================== | |
| # | |
| # FILE: dns-tests.zsh | |
| # | |
| # USAGE: ./dns-tests.sh google.fr | |
| # | |
| # DESCRIPTION: DNS Response Time Checker | |
| # |
| .git | |
| .gitignore | |
| /doc | |
| .yardoc | |
| coverage | |
| jsdoc | |
| /tmp | |
| /log | |
| Dockerfile | |
| Dockerfile.prod |
| #!/bin/bash | |
| # Updates a DtDNS Hostname with the current device public IP. | |
| # You may run this script via an hourly CRON (DtDNS propagation is around 15min so a shorter rerun time is useless). | |
| # | |
| # Author: David Dérus | |
| # Version: 1.1.3 | |
| # Config | |
| HOSTNAME='MYHOSTNAME' |
I hereby claim:
To claim this, I am signing this object:
| # Handling Application rights thanks to roles | |
| # | |
| # A direct adaptation of http://through-voidness.blogspot.fr/2013/10/advanced-rails-4-authorization-with.html | |
| # but much more performance-wise | |
| class ApplicationPolicy | |
| attr_reader :user, :record | |
| def initialize(user, record) | |
| raise Pundit::NotAuthorizedError, 'Must be signed in.' unless user | |
| @user = user |