Skip to content

Instantly share code, notes, and snippets.

View CrimsonGlory's full-sized avatar
🐍
Don't

CrimsonGlory CrimsonGlory

🐍
Don't
  • Argentina
View GitHub Profile
@CrimsonGlory
CrimsonGlory / gist:b01b6c929dbf4c73baca849c1ef84739
Created October 29, 2022 21:56
Receta de flan de mi tía
Esta es la receta de flan de mi tía. La guardo acá en los gist de github porque es realmente buena.
Ingredientes:
5 o 6 huevos
250ml leche condensada (marca Nestle)
250ml leche
Azúcar
- Poner 3 cucharadas soperas de azucar en la hornalla hasta que quede marróń líquido.
- Pasar ese líquido por toda la flanera
consumo: 45W
flujo de aire: 5m^3/min
El purificador (ventilador) es industria argentina. Los filtros los importan de Corea del Sur. Los filtros son los mismos que usa el Coway AP-1007EH.
No tiene sentido comprarse uno nuevo. Es mejor comprar uno usado por menos de la mitad y comprar los filtros nuevos. El aparato es básicamente un ventilador.
Me pasó comprar uno usado por 8k ARS (53 USD) pero no prendía. Estuve viendo como funca. La mecánica del encendido es con la tapa. La parte de abajo tiene un iman para sostener pero no impacta en el encendido. Sin la tapa no prende, pero si metés un plástico en el agujero que es una linea vertical, en la parte de arriba a la derecha, ahí prende. Si mirás por ese agujero se ve como un clip de metal. Al poner la tapa, hay un cuadrado de plástico que entra, mueve el clip a la derecha y ahí hace contacto y prende la luz roja. Si eso el circuito no se cierra. Por eso al sacar la tapa se apaga. Yo le dejé un plástico puesto y lo uso sin tapa.
@CrimsonGlory
CrimsonGlory / 4th-edition-8th-edition-exercises-mapping
Last active September 6, 2020 03:54
Walpole & Myers Probabilidad y estadística 4th edition
Given that 4th edition book does not have the solutions for end of chapter exercises End of chapter execises mapping between 4th edition and 9th edition of Probability & Statistics (Walpole & Myers)
CSV Format:
Chapter from 4th edition, excercise number 4th edition, Chapter from 9th edition, excercise number 9th edition, comments
1, 1, 2, 2.103,
1, 2, 2, 2.104,
1, 3, 2, 2.105, only a)
1, 4, 2, 2.106,
1, 5, 2, 2.107,
1, 6, 2, 2.108,
1, 7, 2, 2.109,
@CrimsonGlory
CrimsonGlory / mongo_exit_100.txt
Created August 4, 2018 05:48
Mongo container exits with status 100 and no logs
If mongo container exits with status 100 and no logs, and you are trying to use a custom config file, it may have to do with this:
https://github.com/docker-library/mongo/issues/76#issuecomment-175570063
@CrimsonGlory
CrimsonGlory / ffmpeg-hardsubs.txt
Created March 8, 2017 03:02
Burn (harcode) srt into mp4
Step 1. Download ffmpeg
(ffmpeg static builds: https://johnvansickle.com/ffmpeg/ )
Step 2. Make sure the SRT is valid:
Valid format:
1
00:00:00,000 --> 00:00:03,540
hi bla bla bla
@CrimsonGlory
CrimsonGlory / mongo-docker-swarm-mode.txt
Last active September 24, 2021 20:49
MongoDB sharding + Docker Swarm mode
Warnings:
* as 2017-02-24 (Docker version 1.13.1), swarm mode is not officially recommeded from production.
* There are a few bugs like swarm stop working when changing network. https://github.com/docker/docker/issues/29580
* Some kernel options (like ulimit) are still not supported on swarm when creating services https://github.com/docker/docker/issues/25209
* As 2018-09-24 docker swarm is very unstable and definitely not ready for production. Witch each new version of docker, swarm is more unstable than the previous one. I would strongly recommend avoid using swarm all together. (See issues https://github.com/moby/moby/issues/36696 and https://github.com/moby/moby/issues/37725 )
* 2021-09-10: this is an old gist with experimental configuration. Don't use this for production or anything relevant. Trust me. Also mongo versions are quite old. If you are just playing with mongo and docker swarm, go ahead.
Servers are server1 (mongos and configsrv), server2 (shard1), server3(shard2).
-----Step 1. Create swar
@CrimsonGlory
CrimsonGlory / d3-svg-png-google-maps
Created October 5, 2016 17:40
d3 graph to svg to png to google maps
When you have a D3 chart that is so big, you may want to browse it using Google Maps API.
Steps:
Once you have the D3 chart, use SVG Crowbar to extract the SVG.
http://nytimes.github.io/svg-crowbar/
To convert the SVG to PNG use:
https://runemadsen.com/svg-converter/
This script crash with big values but you can get to 20kx20k pixels