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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Babylon Template</title> | |
<style> | |
html, | |
body { |
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 typing import Any | |
from dynaconf import Dynaconf | |
from pydantic import BaseModel, Field | |
# XXX: no promises that these are complete or correct... | |
class DynaconfConfig(BaseModel): | |
ENVVAR_PREFIX_FOR_DYNACONF: str | None | |
SETTINGS_FILE_FOR_DYNACONF: bool | list[str] |
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
#!/bin/bash | |
# list all hosts | |
maas admin machines read | grep hostname | |
# find hosts by status | |
maas admin machines read status=new | grep hostname | |
# (new, commissioning, ready) | |
# find machine |
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
#!/bin/bash | |
### | |
# install maas | |
### | |
sudo snap install maas | |
sudo snap install maas-test-db | |
maas init region+rack --database-uri maas-test-db:/// | |
maas createadmin --username admin --password admin --email admin |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ingress | |
namespace: ingress | |
spec: | |
selector: | |
name: nginx-ingress-microk8s | |
type: LoadBalancer | |
# loadBalancerIP is optional. MetalLB will automatically allocate an IP |
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 * as log from "https://deno.land/[email protected]/log/mod.ts"; | |
const l = log.getLogger("default"); | |
l.level = log.LogLevels.DEBUG; | |
l.debug("Hello world"); // XXX: never printed!!! | |
l.info(123456); | |
l.warning(true); | |
l.error({ foo: "bar", fizz: "bazz" }); | |
l.critical("500 Internal server error"); |
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
88665a0e64ba:deno ampower$ jupyter notebook | |
[D 08:31:18.955 NotebookApp] Raising open file limit: soft 256->4096; hard 9223372036854775807->9223372036854775807 | |
[D 08:31:18.979 NotebookApp] Paths used for configuration of jupyter_notebook_config: | |
/etc/jupyter/jupyter_notebook_config.json | |
[D 08:31:18.980 NotebookApp] Paths used for configuration of jupyter_notebook_config: | |
/usr/local/etc/jupyter/jupyter_notebook_config.json | |
[D 08:31:18.980 NotebookApp] Paths used for configuration of jupyter_notebook_config: | |
/usr/local/Cellar/jupyterlab/3.2.4/libexec/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json | |
/usr/local/Cellar/jupyterlab/3.2.4/libexec/etc/jupyter/jupyter_notebook_config.json | |
[D 08:31:18.981 NotebookApp] Paths used for configuration of jupyter_notebook_config: |
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
use std::collections::HashMap; | |
macro_rules! handler { | |
($kernel:expr, $method:ident) => { | |
Box::new(|x| $kernel.$method(x)) | |
}; | |
} | |
fn main() { | |
let k = Kernel::new(); |
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
// /* ***************** | |
// * SHELL MESSAGES | |
// * *****************/ | |
// Shell Request Message Types | |
// "execute_request" // https://jupyter-client.readthedocs.io/en/latest/messaging.html#execute | |
// "inspect_request" // https://jupyter-client.readthedocs.io/en/latest/messaging.html#introspection | |
// "complete_request" // https://jupyter-client.readthedocs.io/en/latest/messaging.html#completion | |
// "history_request" // https://jupyter-client.readthedocs.io/en/latest/messaging.html#history |
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
[I 01:30:17.834 NotebookApp] Kernel started: aefa459b-5c3e-4d6c-8791-7e42723d61cf, name: rusty | |
[D 01:30:17.834 NotebookApp] Kernel args: {'kernel_name': 'rusty', 'cwd': '/Users/ampower/Projects/personal/ideno-rust'} | |
[D 01:30:17.834 NotebookApp] Path toc2/toc2.js served from /Users/ampower/Library/Jupyter/nbextensions/toc2/toc2.js | |
[D 01:30:17.835 NotebookApp] 200 GET /nbextensions/toc2/toc2.js?v=20211212013005 (::1) 5.130000ms | |
[D 01:30:17.835 NotebookApp] Path collapsible_headings/main.css served from /Users/ampower/Library/Jupyter/nbextensions/collapsible_headings/main.css | |
[D 01:30:17.836 NotebookApp] 200 GET /nbextensions/collapsible_headings/main.css?v=20211212013005 (::1) 5.520000ms | |
[D 01:30:17.837 NotebookApp] Using contents: services/contents | |
[W 01:30:17.838 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20211212013005 (::1) 6.600000ms referer=http://localhost:8888/notebooks/Untitled15.ipynb?kernel_name=rusty | |
[D 01:30:17.840 NotebookApp] 201 POST /api/sessions (::1) 59.690000ms | |
[D |