-
capacity is limited on testnet (freefarm and mazraa mainly (and mazraa isn't that stable bandwidth and node acceptance for reservations, taking lots of time)
-
marketplace.grid.tf marketplace can be used to provision 3bot from branch development_capacitypool
- when deploying 3bot branch used should be
development_capacitypool - when deployed 3bot make sure to go to /admin -> settings -> set the test identity as the default (capacity pool enabled only on testnet)
- for testnet tokens (wallets can be created using stellar or admin dashboard wallets manager section https://github.com/threefoldtech/js-sdk/blob/development/docs/wiki/tutorials/add_funds_to_wallet_dashboard.md , they will get it activate using friendbot with 10000XLM to be traded using https://testnet.interstellar.exchange/app/#/home
- when deploying 3bot branch used should be
-
there're some issue in zos
- mainnet threefoldtech/zos#871
-
capacity pool related (https://github.com/threefoldtech/zos/issues/873, https://github.com/threefoldtech/zos/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/servy.nim b/src/servy.nim | |
| index 3a90e78..8954982 100644 | |
| --- a/src/servy.nim | |
| +++ b/src/servy.nim | |
| @@ -407,8 +407,8 @@ proc newResponse*(): Response = | |
| result.httpver = HttpVer11 | |
| result.headers = newHttpHeaders() | |
| -type MiddlewareFunc* = proc(req: Request, res: Response): Future[bool] {.async, nimcall, gcsafe, locks: 0.} | |
| -type HandlerFunc* = proc(req: Request, res: Response) : Future[void] {.nimcall, async.} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "json" | |
| # class Location | |
| # JSON.mapping( | |
| # lat: Float64, | |
| # lng: Float64, | |
| # ) | |
| # end | |
| # class House |
See also my tech blog.
- Padraic Edgington's videos
- Design of Digital Circuits, ETH Zurich, Onur Mutlu, Spring 2019
- Basic CPU design course, LC-3, MIPS, FPGA, Vivado, Basys 3
- High Performance Computer Architecture, Georgia Tech CS6290
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jumpscaleX_libs/JumpscaleLibs/data/markdown/MarkdownFactory.py:39: # #use prefab to install components required to get pdf generation to work | |
| jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:30: self._prefab = None | |
| jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:70: def prefab(self): | |
| jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:71: if self._prefab is None: | |
| jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:72: self._prefab = j.tools.prefab.get(self.executor, usecache=False) | |
| jumpscaleX_libs/JumpscaleLibs/sal/docker/Container.py:73: return self._prefab | |
| jumpscaleX_libs/JumpscaleLibs/sal/docker/Docker.py:425: result = ex.prefab.system.user.passwd("root", rootpasswd) | |
| jumpscaleX_libs/JumpscaleLibs/sal/kvm/Pool.py:13: self.poolpath = self.controller.executor.prefab.core.joinpaths(self.controller.base_path, self.name) | |
| jumpscaleX_libs/JumpscaleLibs/sal/kvm/Pool.py:35: self.controller.executor.prefab.core.dir_ensure(self.poolpath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is just an example to get you started. A typical binary package | |
| # uses this file as the main entry point of the application. | |
| import strformat, tables, json, strutils, sequtils, hashes, net, asyncdispatch, asyncnet, os, strutils, parseutils, deques, options, net | |
| type ForwardOptions = object | |
| listenAddr*: string | |
| listenPort*: Port | |
| toAddr*: string | |
| toPort*: Port |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is just an example to get you started. A typical binary package | |
| # uses this file as the main entry point of the application. | |
| import strformat, tables, json, strutils, asyncdispatch, asyncnet, strutils, parseutils, options, net | |
| from cgi import decodeUrl | |
| import terminaltables | |
| import mimetypes | |
| type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from gevent import monkey; monkey.patch_all() | |
| import time, os, sys, inspect | |
| from pickle import loads as pickle_loads, dumps as pickle_dumps | |
| from dill import loads as dill_loads, dumps as dill_dumps | |
| from redis import Redis | |
| import gevent as g | |
| from gevent import sleep | |
| from hashlib import md5 | |
| from base64 import b64encode, b64decode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import gevent as g | |
| from functools import partial | |
| import traceback | |
| def fn(*args, **kwargs): | |
| print("ARGS: ", args) | |
| print("KWARGS: ", kwargs) | |
| g.sleep(3) | |
| return 150 |