- Install Drupal using composer:
composer create-project drupal-composer/drupal-project:8.x-dev MY_PROJECT --no-interaction
cd MY_PROJECT
- Edit the
composer.jsonfile. The "repositories" section should look like:
| <?php | |
| use Drupal\Core\File\FileSystemInterface; | |
| use Drupal\Core\Serialization\Yaml; | |
| function saveFileDirectly($data) { | |
| $encoded = Yaml::encode($data); | |
| $filename = 'public://my_dir/my_file.yaml'; | |
| // Get the folder for the final location of this style. |
| openapi: 3.0.3 | |
| info: | |
| version: 1.0.0 | |
| title: Support for different security types | |
| description: Forked from https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#securitySchemeObject | |
| servers: | |
| - url: https://httpbin.org | |
| tags: | |
| - name: API Key | |
| - name: HTTP |
| function remove-docker-containers | |
| echo "Stop running shit" | |
| docker stop (docker ps -q) | |
| echo "Remove the whale shit" | |
| docker rm (docker ps -a -q) | |
| end | |
| function remove-docker-images | |
| remove-docker-containers |
| { | |
| "name": "drupal/recommended-project", | |
| "description": "Project template for Drupal 9 projects with a relocated document root", | |
| "type": "project", | |
| "license": "GPL-2.0-or-later", | |
| "homepage": "https://www.drupal.org/project/drupal", | |
| "support": { | |
| "docs": "https://www.drupal.org/docs/user_guide/en/index.html", | |
| "chat": "https://www.drupal.org/node/314178" | |
| }, |
| #!/bin/bash | |
| # Split a JSON into multiple files. Uses jq. | |
| # Usage | |
| # ./split_json.sh /path/to/json/file | |
| file="$1" | |
| jq -cr 'keys[] as $k | "\($k)\t\(.[$k])"' "$file" | awk -F\\t '{ file=$1".json"; print $2 > file; close(file); }' |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Instrucciones: | |
| # 1. Descargar el script, actualizar las variables y guardar. | |
| # 2. Desde consola, dar permisos de ejecución al script: | |
| # chmod u+x filtrar_datos_por_lat_y_long.sh | |
| # 3. Ejecutar el script desde consola: | |
| # ./filtrar_datos_por_lat_y_long.sh | |
| @echo off | |
| REM Cambiar las siguientes variables con los directorios de los datos, | |
| REM donde desean guardar los archivos procesados, y el directorio donde se encuentra el programa NCO. | |
| REM Nota importante: Los nombres de archivos y directorios no deben contener espacios! | |
| SET data_dir=E:\MISRdata\MISR_DATA | |
| SET processed_dir=E:\MISRdata\procesados | |
| SET nco_dir=C:\nco | |
| SET lat_ini=18.0 | |
| SET lat_fin=23.0 |