- Get evaluation license key : http://my.datomic.com/eval/request
- Download pro version : http://downloads.datomic.com/pro.html
- Dev mode setup
| --- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb <A-S-G> | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
| node1: | |
| image: hauptmedia/mariadb:10.1 | |
| hostname: node1 | |
| ports: | |
| - 13306:3306 | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=test | |
| - REPLICATION_PASSWORD=test | |
| - MYSQL_DATABASE=maria | |
| - MYSQL_USER=maria |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| typedef struct { | |
| float **audio; | |
| int chan_ct; | |
| int sample_ct; | |
| int sample_rate; | |
| } sound; |
| #cloud-config | |
| # Upgrade the instance on first boot | |
| # (ie run apt-get upgrade) | |
| # | |
| # Default: false | |
| # Aliases: apt_upgrade | |
| package_upgrade: true | |
| # Install additional packages on first boot |
| pipeline { | |
| agent { node { label 'swarm-ci' } } | |
| environment { | |
| TEST_PREFIX = "test-IMAGE" | |
| TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}" | |
| TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}" | |
| REGISTRY_ADDRESS = "my.registry.address.com" | |
| SLACK_CHANNEL = "#deployment-notifications" |
| # based on the "patch deployment" strategy in this comment: | |
| # https://github.com/kubernetes/kubernetes/issues/13488#issuecomment-372532659 | |
| # requires jq | |
| # $1 is a valid namespace | |
| function refresh-all-pods() { | |
| echo | |
| DEPLOYMENT_LIST=$(kubectl -n $1 get deployment -o json|jq -r .items[].metadata.name) | |
| echo "Refreshing pods in all Deployments" | |
| for deployment_name in $DEPLOYMENT_LIST ; do |
| { config, lib, pkgs, ... }: | |
| with lib; | |
| { | |
| imports = | |
| [ | |
| <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix> | |
| ./machine-config.nix | |
| ]; |
Rust error handling is nice but obligatory. Which makes it sometimes plenty of code.
Functions return values of type Result that is "enumeration". In Rust enumeration means complex value that has alternatives and that alternative is shown with a tag.
Result is defined as Ok or Err. The definition is generic, and both alternatives have