Skip to content

Instantly share code, notes, and snippets.

View yagopajarino's full-sized avatar

Yago Pajariño yagopajarino

View GitHub Profile
@yagopajarino
yagopajarino / maci-v2-trusted-setup-ceremony_attestation.log
Created August 15, 2024 23:13
Attestation for MACI v2 Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm yagopajarino-50267208 and I have contributed to the MACI v2 Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (processmessages_14-9-2-3)
Contributor # 50
Contribution Hash:
d45e3778 f1388798 15962384 6619d3cc
dd3530ae 5f1c24a1 ae20c07a f443b783
b030cf90 427bd010 a1e2ab15 768b95bf
63925e07 9fb2dadb 59b537b8 bf77fbb9
/* Extrae curricula del curso de Udemy
Ejecutar en la consola de chrome dentro de la pagina de inicio del curso
06-03-2024
Creado por Yago Pajariño ([email protected])
*/
let curricula = document.querySelector('div[data-purpose="course-curriculum"]');
let contenedorCurso = curricula.lastElementChild
let lis = new Array(...contenedorCurso.querySelectorAll("li"))
@yagopajarino
yagopajarino / power-query-calendar.txt
Created August 25, 2023 17:27
Generate Calendar table in Power Query
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjDUByIjAyNjpdhYAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [StartDate = _t]),
#"Added Custom" = Table.AddColumn(Source, "EndDate", each Date.From(DateTime.LocalNow())),
#"Changed Type2" = Table.TransformColumnTypes(#"Added Custom",{{"EndDate", type date}}),
#"Changed Type" = Table.TransformColumnTypes(#"Changed Type2",{{"StartDate", type date}}),
#"Added Custom1" = Table.AddColumn(#"Changed Type", "Dates", each {Number.From([StartDate])..Number.From([EndDate])}),
#"Expanded Dates" = Table.ExpandListColumn(#"Added Custom1", "Dates"),
#"Changed Type1" = Table.TransformColumnTypes(#"Expanded Dates",{{"Dates", type date}}),
#"Removed Columns1" = Table.RemoveColumns(#"Changed Type1",{"StartDate", "EndDate"}),
#"Added Custom2" = Table.AddColumn(#"Removed Columns1", "Year", each Date.Year([Dates])),
@yagopajarino
yagopajarino / power-query-datetime-utc-3.txt
Created August 25, 2023 17:25
Fecha Hora actual en Power Query
= DateTimeZone.UtcNow() - #duration(0,3,0,0)
@yagopajarino
yagopajarino / grep.sh
Created August 14, 2023 15:21
Find console.log using grep in bash
grep -R "console.log" src/
@yagopajarino
yagopajarino / base64.md
Last active August 10, 2023 14:47
base64

Cómo saber si a bunch of chars es un texto base64 encoded?

TLDR; tiene uno o varios '=' al final de la secuencia

Por contrucción, el string de base64 enconding tiene que tener una logitud múltiplo de 4. Si la logitud del texto enconded no es múltiplo de 3 se debe agregar padding para que la salida sea múltiplo de 4.

Ej extraido de wikipedia

| Input | Length | Outout | Length | Padding |

@yagopajarino
yagopajarino / feriados.csv
Last active June 8, 2023 16:51
Script para descargar csv con feriados Argentina 2023
date label type
01/01/2023 Año Nuevo inamovible
20/02/2023 Carnaval inamovible
21/02/2023 Carnaval inamovible
24/03/2023 Día Nacional de la Memoria por la Verdad y la Justicia inamovible
02/04/2023 Día del Veterano y de los Caídos en la Guerra de Malvinas inamovible
06/04/2023 Jueves Santo Festividad Cristiana no_laborable
07/04/2023 Viernes Santo Festividad Cristiana inamovible
06/04/2023 Primeros dos días de la Pascua Judía (b) no_laborable
07/04/2023 Primeros dos días de la Pascua Judía (b) no_laborable