Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 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 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 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 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/std@0.119.0/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 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 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 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 |
NewerOlder