Skip to content

Instantly share code, notes, and snippets.

@alroba
alroba / import_onprem.sh
Created June 30, 2021 14:10
Telefonica import onprem script
#!/usr/bin/bash
# Before running the import:
# - create a normal custmer installation of docker onprem (with dataservices configured etc)
# - docker-compose down
# - copy password encryption secrets from `app_config.yml` in the source installation and set them in `.env`
# CARTO_BUILDER_SECRET_TOKEN='value-from-old-onprem'
# CARTO_BUILDER_SECRET_KEY_BASE='value-from-old-onprem'
# CARTO_BUILDER_PASSWORD_SECRET='value-from-old-onprem'
#
@alroba
alroba / index.html
Last active July 24, 2020 08:08
My beautiful map
<!DOCTYPE html>
<html>
<head>
<title>Layer with aggregation cluster | CARTO</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700|Open+Sans:300,400,600" rel="stylesheet">
<!-- Include Leaflet -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<link href="https://unpkg.com/[email protected]/dist/leaflet.css" rel="stylesheet">
@alroba
alroba / index.html
Last active March 19, 2020 19:24
Change polygon border color
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width">
<!-- Include Carto.js -->
<script src="https://libs.cartocdn.com/carto.js/v4.1.8/carto.min.js"></script>
<!-- Include Leaflet -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>