Skip to content

Instantly share code, notes, and snippets.

View glenacota's full-sized avatar

Guido Lena Cota glenacota

View GitHub Profile
@glenacota
glenacota / app.log
Created September 10, 2020 19:55
Open Friday 11.09.2020
xw-app-todos | INFO: 172.25.0.1:50016 - "POST /todos HTTP/1.1" 307 Temporary Redirect
xw-app-todos | [2020-09-09 15:21:19,950] INFO redisrepo - Saved the todo with id 3
xw-app-todos | INFO: 172.25.0.1:50016 - "POST /todos/ HTTP/1.1" 200 OK
xw-app-todos | [2020-09-09 15:21:24,324] INFO redisrepo - Fetched the todo with id 2
xw-app-todos | [2020-09-09 15:21:24,325] INFO redisrepo - Saved the todo with id 2
xw-app-todos | INFO: 172.25.0.1:50022 - "GET /todos/2/done HTTP/1.1" 200 OK
xw-app-todos | [2020-09-09 15:21:24,354] INFO redisrepo - Fetched the todo with id 2
xw-app-todos | [2020-09-09 15:21:24,355] INFO redisrepo - Saved the todo with id 2
xw-app-todos | INFO: 172.25.0.1:50026 - "GET /todos/2/done HTTP/1.1" 200 OK
xw-app-reports | INFO: 172.25.0.1:33568 - "GET /reporto HTTP/1.1" 404 Not Found
curl --location --request PUT '127.0.0.1:9200/_bulk' \
--header 'Content-Type: application/json' \
--data-binary @- << EOF
{ "create" : { "_index" : "movies", "_id" : "135569" } }
{ "id": "135569", "title" : "Star Trek Beyond", "year":2016 , "genre":["Action", "Adventure", "Sci-Fi"] }
{ "create" : { "_index" : "movies", "_id" : "122886" } }
{ "id": "122886", "title" : "Star Wars: Episode VII - The Force Awakens", "year":2015 , "genre":["Action", "Adventure", "Fantasy", "Sci-Fi", "IMAX"] }
{ "create" : { "_index" : "movies", "_id" : "109487" } }
{ "id": "109487", "title" : "Interstellar", "year":2014 , "genre":["Sci-Fi", "IMAX"] }
{ "create": { "_index" : "movies", "_id" : "58559" } }
@glenacota
glenacota / demo.html
Created May 4, 2024 21:23
convert SFIA xlsx to JSON
<!DOCTYPE html>
<html lang="en">
<head>
<title>Convert SFIA xlsx to JSON</title>
<script lang="javascript" src="https://cdn.sheetjs.com/xlsx-0.20.2/package/dist/xlsx.full.min.js"></script>
<style>pre { background-color: bisque; font-family: monospace; display: inline-block; }</style>
</head>
<body>