Skip to content

Instantly share code, notes, and snippets.

View eduardolat's full-sized avatar
❤️‍🔥
Working hard

Luis Eduardo eduardolat

❤️‍🔥
Working hard
View GitHub Profile
#!/bin/bash
echo ""
echo "-----------------------------------------"
echo "RDP Server Default Access Credentials"
echo "Username: abc"
echo "Password: abc"
echo "-----------------------------------------"
echo ""
@eduardolat
eduardolat / timezones.go
Last active July 21, 2024 23:15
Go Timezones + Tests
package timezones
type Timezone struct {
Label string `json:"label"`
TzCode string `json:"tzCode"`
Name string `json:"name"`
Utc string `json:"utc"`
}
var Timezones = []Timezone{
@eduardolat
eduardolat / timezones.json
Last active July 21, 2024 23:10
JSON Timezones
[
{
"label":"Pacific/Midway (GMT-11:00)",
"tzCode":"Pacific/Midway",
"name":"(GMT-11:00) Midway",
"utc":"-11:00"
},
{
"label":"Pacific/Niue (GMT-11:00)",
"tzCode":"Pacific/Niue",
@eduardolat
eduardolat / countries.json
Created December 24, 2023 04:02
JSON de países, con nombre en español, ingles, código ISO y prefijo telefónico del país
[
{
"nameES": "Afganistán",
"nameEN": "Afghanistan",
"iso2": "AF",
"iso3": "AFG",
"phoneCode": "93"
},
{
"nameES": "Albania",
@eduardolat
eduardolat / tailwind.config.js
Created December 15, 2023 05:41
Regex for TailwindCSS + Gomponents
/** @type {import('tailwindcss').Config} */
module.exports = {
// Change this to your project source folder
content: ['./web/**/*.go'],
plugins: [],
theme: {
extend: {},
}
}
@eduardolat
eduardolat / gist:165570ee1c81af8a4f2aadda7250cf60
Last active January 7, 2023 05:21
Ejecutar un VNC temporal en docker
Inicia un servidor VNC temporal en docker.
Comando: docker run -p 6080:80 dorowu/ubuntu-desktop-lxde-vnc
Luego de correr el comando ir a http://[ip-del-servidor]:6080
Se puede cambiar el puerto por el deseado, el puerto interno del contenedor es 80
-----------
@eduardolat
eduardolat / GetFirebaseAuthToken.html
Last active October 22, 2022 22:02
Web sencilla para obtener el idToken de los usuarios de firebase
<!DOCTYPE html>
<html lang="es">
<head>
<script>
var firebaseConfig = {
// ...
};
</script>
<title>API Auth</title>
@eduardolat
eduardolat / fbErrorToText.js
Last active March 7, 2025 10:20 — forked from Albejr/firebase-message
Errores de firebase auth en español
export const errorList = {
'auth/app-deleted': 'No se encontró la base de datos',
'auth/expired-action-code': 'El código de acción o el enlace ha caducado',
'auth/invalid-action-code':
'El código de acción no es válido. Esto puede suceder si el código está mal formado o ya se ha utilizado',
'auth/user-disabled':
'El usuario correspondiente a la credencial proporcionada ha sido deshabilitado',
'auth/user-not-found': 'Usuario no existente',
'auth/weak-password': 'La contraseña es demasiado débil',
'auth/email-already-in-use':
@eduardolat
eduardolat / OracleOpenPort80Centos.md
Created June 30, 2021 04:41 — forked from jbaranski/OracleOpenPort80Centos.md
Open Port 80 Oracle Cloud Compute Instance (CentOS)

Open Port 80 Oracle Cloud Compute Instance (CentOS)

FYI This was harder than it needed to be:

  1. Looking at your instance info, find VNIC section, click "Public Subnet".
  2. Click on your security list.
  3. Add a new entry with the following options:
  • "Stateless" = No, "Source" = 0.0.0.0/0, "IP Protocol" = TCP, "Source Port Range" = All, "Destination Port Range" = 80
  1. SSH to your instance.
  2. While SSH'ed in your instance, run command firewall-cmd --permanent --add-service=http.
  3. While SSH'ed in your instance, run command firewall-cmd --reload.
  4. Now start Apache, NGINX, or whatever server you need to on port 80. You can now access from the internet.
@eduardolat
eduardolat / firestore.rules
Created March 20, 2021 16:21 — forked from felipepastorelima/firestore.rules
Firestore Rules utilities to reduce verbosity. Generator: https://scaffoldhub.io/firestore-rules
service cloud.firestore {
match /databases/{database}/documents {
// START - Usage example
match /people/{document=**} {
function propertiesValid() {
return request.resource.data.keys().hasAll(['name', 'birthdate', 'yearsOfExperience'])
&& request.resource.data.size() == 3
&& isString('name') && minlength('name', 3) && maxlength('name', 255)