(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/bash | |
| # Guide to install L2TP-IPSEC VPN Server on a Raspberry Pi with ArchLinux | |
| # Used parts of several instructions, | |
| # http://nls.io/setup-an-ipsec-l2tp-vpn-with-text-or-ldap-auth-on-arch-linux/ | |
| # https://smileykeith.com/2014/01/27/ipsec-l2tp-vpn-on-a-raspberry-pi-running-arch-linux/ | |
| # http://linux.tips/tutorials/how-to-setup-l2tp-vpn-server-on-raspberry-pi | |
| # Tested and works with OSX and iOS 7.1 supplied vpn client |
| @pytest.fixture | |
| def url_checker(): | |
| from pyramid.scripts.pviews import PViewsCommand | |
| from pyramid.request import Request | |
| from pyramid.paster import bootstrap | |
| def view_match(url): | |
| pviews = PViewsCommand([None, os.path.join(here, '../', 'development.ini'), url], | |
| quiet=True) | |
| config_uri = pviews.args[0] |
| #!/usr/bin/env python3 | |
| # Copyright 2014 Brett Slatkin, Pearson Education Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |