sudo apt-get install openvpn
sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2
cd /etc/openvpn/easy-rsa2
| # Every request to api requires an auth-key in header in this example. | |
| # Example of how to perform api testing with such authentication. | |
| # django 1.7 | |
| from django.apps import apps | |
| from django.conf import settings | |
| from django.test.client import RequestFactory | |
| from api.user.views import UserKeyView |
| """ | |
| # Christophe31 | |
| Shamlessly taken from: https://gist.github.com/ramusus/4343464 | |
| adapted to dj1.7 and allow Inline class as field argument. | |
| # Ramsus | |
| adminreverse from here http://djangosnippets.org/snippets/2032/ | |
| changed for working with ForeignKeys |
| package recfun | |
| import scala.collection.mutable.ListBuffer | |
| import common._ | |
| /** https://class.coursera.org/progfun-2012-001/assignment/view?assignment_id=4 */ | |
| object Main { | |
| def main(args: Array[String]) { | |
| println("Pascal's Triangle") | |
| for (row <- 0 to 10) { |