- apt install qemu-utils kpartx qemu
- pip install diskimage-builder
- export DIB_REPOREF_amphora_agent=stable/pike
- export DIB_REPOLOCATION_amphora_agent=/lab/build_img/octavia_win/
- apt install libguestfs-tools
import json | |
import uuid | |
from wsgiref import simple_server | |
import falcon | |
import random | |
import os | |
myhost = os.uname()[1] |
<div ng-app="app" ng-controller="Main as main" class="container"> | |
<h1>Simple Angular Auth - Thinkster</h1> | |
<input type="text" class="form-control" ng-model="main.username" placeholder="username"><br> | |
<input type="password" class="form-control" ng-model="main.password" placeholder="password"><br> | |
<br> | |
<button class="btn" ng-click="main.register()">Register</button> | |
<button class="btn" ng-click="main.login()">Login</button> | |
<button class="btn" ng-click="main.logout()" ng-show="main.isAuthed()">Logout</button> |
# Source https://github.com/rduplain/flask-svg-example/blob/master/app.py | |
import os | |
from flask import Flask, make_response, render_template, request | |
app = Flask(__name__) | |
def add_servers(self, servers): | |
if not servers: | |
return | |
self._add_servers_config(servers) | |
self._restart_service() | |
def _add_servers_config(self, servers): | |
cfg_parser = Parser(cf_path) | |
configuration = cfg_parser.build_configuration() |
import json | |
import uuid | |
from wsgiref import simple_server | |
import falcon | |
import random | |
class StorageEngine(object): |
import os | |
myhost = os.uname()[1] | |
def app(environ, start_response): | |
start_response('200 OK', [('Content-Type', 'text/html')]) | |
#return [b'Hello, world!'] | |
return myhost | |
if __name__ == '__main__': |
#!/usr/bin/env python | |
""" | |
===================================== | |
PEP 20 (The Zen of Python) by example | |
===================================== | |
Usage: %prog | |
:Author: Hunter Blanks, [email protected] / [email protected] |