Skip to content

Instantly share code, notes, and snippets.

@nezahualcoyotl
nezahualcoyotl / firestoreFuncts.js
Created January 27, 2024 21:10
Functions to ease firestore instructions because I keep forgetting how to use them
const admin = require("firebase-admin");
const db = admin.firestore();
function getCollection(collectionName) {
const collection = db.collection(collectionName);
return collection;
}
async function getCollectionWithQuery(
collectionName,
@nezahualcoyotl
nezahualcoyotl / privacy_policy.md
Created April 12, 2023 08:41
DeVole's Privacy Policy

Privacy Policy for DeVole

Last updated: 12 Apr 2023

1. Introduction

DeVole ("we", "us", or "our") operates the DeVole mobile application (the "Service"). This Privacy Policy informs you of our policies regarding the collection, use, and disclosure of personal information when you use our Service.

By using the Service, you agree to the collection and use of information in accordance with this Privacy Policy.

@nezahualcoyotl
nezahualcoyotl / how-to-ssl.md
Created October 2, 2021 00:34
Fast and undetailed guide to install SSL certificate

Create the .key and .csr file by running this in the server

$ openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr

Choose a SSL provider and follow their instructions to upload the .csr file and download a newly generated .crt

The SSL provider provides a .ca-bundle besides the crt. We need to merge them into one file. The order is first the .crt content and then the .ca-bundle content.

Now upload the resulting file into the server, preferibly where the .key and .csr files are.

@nezahualcoyotl
nezahualcoyotl / doYouEvenJS.js
Created May 26, 2021 23:15
Basic stuff I've been doing wrong in javascript
/* is a great practice to use strict to
force all variables to be declared */
"use strict";
// use const to declare important unchanging variables
const pi = 3.141592653589793;
// declare the damn thing with let, not just var
let greeting = "Hello";
@nezahualcoyotl
nezahualcoyotl / installing_wordpress_in_lamp.md
Created October 9, 2020 20:34
Guide to install wordpress in a LAMP environtment

Installing Wordpress in LAMP (Debian)

This is more like a personal note but if it's helpful to you go ahead!

Installing everything you need

Get all the pre requisites of wordrpess

@nezahualcoyotl
nezahualcoyotl / solution.cs
Last active October 9, 2020 20:14
Leetcode - Search a 2D Matrix solution in C#
/* This was my best approach to beat this problem.
It took me ages to get to it because I did it before
completely understanding binary search, but I got it
recognized by two engineers I admire so this is my way
of patting my own back and remembering the effort */
public class Solution {
public bool SearchMatrix(int[][] matrix, int target) {
if(matrix.Length == 0) return false;
@nezahualcoyotl
nezahualcoyotl / installing_laravel_in_lemp.md
Last active April 19, 2021 05:01
Guide to install Laravel in a LEMP environment, specifically for Debian OS

Installing Laravel in LEMP (Debian)

These instructions are meant for beginners and they make sense as I'm writing them at Sept 2020. I'll try to keep it updated.

Setting up your environment

First, let's just update the OS