This file contains hidden or 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 | |
| echo "" >/tmp/titulos.txt | |
| echo "">/tmp/url.txt | |
| for file in *.xml | |
| do | |
| xmlstarlet sel -t -m '//dc:source[1]' -v . -n < ${file} >>/tmp/titulos.txt | |
| xmlstarlet sel -t -m '//dc:identifier[1]' -v . -n < ${file} >>/tmp/url.txt | |
| done | |
| cut -d ';' -f 1 < /tmp/titulos.txt |sort | uniq > titulosrevistas.txt |
This file contains hidden or 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
| #!/usr/bin/bash | |
| # primer parametro que buscar ej: country_str:argentina | |
| # segundo parametro que archivo de template utilizar. ej: chile.j | |
| ##### archivo template | |
| ##### { "id": .id , country_str:{"set":"Chile" }} | |
| echo "$2 en portal '$1'" | |
| solrdump -verbose -server http://localhost:8389/solr/biblio -q "$1" -fl 'id' |jq -f $2 -c >update.json | |
| solrbulk -server http://localhost:8389/solr/biblio update.json |
This file contains hidden or 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 | |
| # dos parámetros / two parameters | |
| # ex. ./enrolldecurso_a_curso.sh --id 20 715 | |
| # $1 curso orign $2 curso destino | |
| # ### path of the moodle root | |
| cd /datos/webs/moodle36/html | |
| #export curso | |
| php /home/desarrollo/moosh/moosh.php user-list --course=$1 --id >/tmp/exportados.txt | |
| #exit 111 |
This file contains hidden or 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
| ############################################################################### | |
| # Genera un entorno de desarrollo con | |
| # PHP 7.0 nginx pgadmin4 postgresql.10 todo con volumenes especiales para el | |
| # pgdadmin4 postgresql y archivos de la aplicación | |
| # https://github.com/thaJeztah/pgadmin4-docker | |
| # https://phpdocker.io/generator | |
| ############################################################################### | |
| version: "3.1" | |
| services: | |
| db: |
This file contains hidden or 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
| ############################################################################### | |
| # Generated on phpdocker.io # | |
| ############################################################################### | |
| version: "3.1" | |
| services: | |
| db: | |
| image: postgres:10 | |
| container_name: ideas-db | |
| restart: always | |
| volumes: |
This file contains hidden or 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
| email=myemail@gmail.com | |
| password=some | |
| dbpassword=somedbpass |
This file contains hidden or 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
| version: "3.1" | |
| services: | |
| db: | |
| image: postgres:10 | |
| container_name: sid-db | |
| restart: always | |
| volumes: | |
| - /datos/webs/sid/sigsid2018/pgdb:/var/lib/postgresql/data | |
| ports: | |
| - "5432:5432" |
This file contains hidden or 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
| update biblio.items set inventario_numeral = | |
| REGEXP_REPLACE(inventario, '([A-Z|a-z|\.|\()|\-|/|[:space:]|ó|ª|;|\+|\\|\:\,|´|}])' , '','g' )::integer | |
| where inventario ~ '[0-9]' and length(inventario)<=10 and inventario_numeral is null; | |
This file contains hidden or 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
| version: '3' | |
| services: | |
| wp: | |
| image: wordpress:latest # https://hub.docker.com/_/wordpress/ | |
| ports: | |
| - ${IP}:80:80 # change ip if required | |
| volumes: | |
| - ./config/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini | |
| - ./wp-app:/var/www/html # Full wordpress project |
This file contains hidden or 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
| /usr/local/vufind/solr/vendor/bin/post -url http://usuario:clave@lab1.draphp.com:8389/solr/biblio/update -d "<delete><query>$1</query></delete>" |