Here is a steps to test a 0-db block driver.
- Option: Deploy an ubuntu vm
- Build qemu from our repo
apt-get update
#!/bin/bash | |
## Install Golang 1.6.2 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS) | |
## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html | |
## Run as root (sudo su) | |
## Thank's **Bruno Albuquerque bga at bug-br.org.br** | |
GO_URL="https://storage.googleapis.com/golang" | |
GO_FILE="go1.6.2.linux-amd64.tar.gz" |
import requests | |
USERNAME = '' | |
PASSWORD = '' | |
API_DEV_KEY = '' | |
def get_api_user_key(): | |
global USERNAME, PASSWORD, API_DEV_KEY | |
data = {'api_dev_key': API_DEV_KEY, |
Members of a campaign should see lesson list when they navigate to campaign in portal
- Scenario #1:
- As an admin, Create new campaign (NEW_CAMPAIGN)
- As an admin, Add a lesson to it. (Add a BROWSER lesson to NEW_CAMPAIGN)
- As an admin, Create a new user (TEST_USER)
- As an admin, Add the user to the campaign. (Add TEST_USER to NEW_CAMPAIGN)
Ways to fire a simple servers:
python2 -m SimpleHTTPServer 80
python3 -m http.server 80
php -S 0.0.0.0:8000
apt-get install webfs && service webfs start # start the webfs server 8000
busybox httpd --help # show available options && busybox httpd -p 127.0.0.1:8080 -h /var/www/ # start start httpd && pkill busybox # to stop busybo httpd
import itertools | |
items = [['ubuntu', 'zero-os'], | |
[512, 1024, 2048, 4096, 8192], | |
[10, 50, 100, 200], | |
['btrfs', 'ext4', 'ext3', 'ext2'], | |
['hdd', 'ssd']] | |
results = list(itertools.product(*items)) |
import random | |
client_id = '' | |
client_secret = '' | |
account_name = '' | |
cs_name = '' | |
farmer_id = '' | |
zerotier_nw= '' | |
zeroOS = 'v.1.4.1' | |
In [25]: gw_data = { | |
...: 'nodeId': '525400000521', | |
...: 'hostname': 'mygw', | |
...: 'domain': 'lan', | |
...: 'nodeRobot': 'main', | |
...: 'networks': [{ | |
...: 'name': 'private', | |
...: 'type': 'zerotier', | |
...: 'public': False, | |
...: 'id': '8850338390729392', |
import requests | |
from jumpscale import j | |
client_id = '' | |
client_secret = '' | |
zt_nw_id = '' | |
farmer_id = '' | |
ipxe_url = 'ipxe: https://bootstrap.gig.tech/ipxe/development/{}/development%20farmer_id={}'.format(zt_nw_id, farmer_id) | |
data_new = requests.post('https://itsyou.online/v1/oauth/access_token?grant_type=client_credentials&client_id=%s&client_secret=%s&response_type=id_token' % (client_id, client_secret)) |
import requests | |
from bs4 import BeautifulSoup | |
FARMER_UNDER_MONITOR = ['mazraa', 'xtremx'] | |
FARMER_RESULTS = {} | |
for famerer in FARMER_UNDER_MONITOR: | |
nodes_info = {} | |
for page_no in range(1000): | |
page_url = "https://capacity.threefoldtoken.com/?cru=0&page={}&country=0&sru=0&farmer={}&mru=0&hru=0".format(page_no, famerer) |