I hereby claim:
- I am jalberto on github.
- I am jasl (https://keybase.io/jasl) on keybase.
- I have a public key whose fingerprint is 289E B9CE 63A1 8F8D C546 DA05 FA07 E62A 9716 EDDE
To claim this, I am signing this object:
| AUTH_KEY='CF AUTH TOKEN KEY' | |
| EMAIL_ADDRESS='CF email' | |
| DNS_ZONE_NAME='domain.name' | |
| DNS_RECORD_NAME="hola.domain.name" | |
| DNS_ZONE=$(curl -sX GET "https://api.cloudflare.com/client/v4/zones?name=${DNS_ZONE_NAME}" -H "Content-Type:application/json" -H "Authorization:Bearer ${AUTH_KEY}" -H "X-Auth-Email:${EMAIL_ADDRESS}" | jq -r '.result[0].id') | |
| DNS_RECORD=$(curl -sX GET "https://api.cloudflare.com/client/v4/zones/${DNS_ZONE}/dns_records?name=${DNS_RECORD_NAME}" -H "Content-Type:application/json" -H "Authorization:Bearer ${AUTH_KEY}" -H "X-Auth-Email:${EMAIL_ADDRESS}" | jq -r '.result[0].id') | |
| CURRENT_DNS_VALUE=$(curl -sX GET "https://api.cloudflare.com/client/v4/zones/${DNS_ZONE}/dns_records/${DNS_RECORD}" -H "Content-Type:application/json" -H "Authorization:Bearer ${AUTH_KEY}" -H "X-Auth-Email:${EMAIL_ADDRESS}" | jq '.result["content"]') | |
| CURRENT_IP_ADDRESS=$(curl -s ip.me) |
| FROM elixir:1.10 | |
| ENV \ | |
| PHX_VER=1.5.1 \ | |
| NODE_VER=12.x \ | |
| APP=/app HOME=/app \ | |
| PKGS="inotify-tools postgresql-client git" | |
| RUN groupadd -g 1000 appuser \ | |
| && useradd -r -u 1000 -g appuser appuser \ |
| defmodule MyApp.MapUtils do | |
| @doc ~S""" | |
| Transform keys in a Map to atoms | |
| ## Examples | |
| iex> MyApp.Maputils.map_keys_to_atoms(%{"foo" => 1, "bar" => %{foo2: "2"}}) | |
| {bar: %{foo2: "2"}, foo: 1} | |
| """ | |
| def map_keys_to_atoms(map) when is_map(map) do |
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_PROMETHEUS", | |
| "label": "prometheus", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "prometheus", | |
| "pluginName": "Prometheus" | |
| } |
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_PROMETHEUS", | |
| "label": "prometheus", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "prometheus", | |
| "pluginName": "Prometheus" | |
| } |
| #!/bin/bash | |
| SRC="http://foo:9200" | |
| DST="http://localhost:9200" | |
| curl -X POST "$DST/_reindex?pretty" -H 'Content-Type: application/json' -d' | |
| { | |
| "source": { | |
| "remote": { | |
| "host": "http://foo:9200" |
| #!/bin/sh | |
| # Install Azure File Storage in a docker swarm from master | |
| DRV_VER="v0.5.1" | |
| AZURE_ACCOUNT="myaccount" | |
| AZURE_KEY="mykey" | |
| install_driver () { | |
| sudo apt-get install -q -y cifs-utils | |
| wget -q https://github.com/Azure/azurefile-dockervolumedriver/releases/download/${DRV_VER}/azurefile-dockervolumedriver |
| az () { | |
| docker run -v ${HOME}/.ssh:/root/.ssh azuresdk/azure-cli-python:latest az "$@" | |
| } |
I hereby claim:
To claim this, I am signing this object:
| [global_config] | |
| focus = mouse | |
| suppress_multiple_term_dialog = True | |
| title_transmit_bg_color = "#ffad00" | |
| dbus = True | |
| enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler | |
| always_on_top = True | |
| tab_position = bottom | |
| sticky = True | |
| [keybindings] |