Skip to content

Instantly share code, notes, and snippets.

View yovany-lg's full-sized avatar

José Yovany Luis García yovany-lg

  • México, Oaxaca.
View GitHub Profile
@yovany-lg
yovany-lg / gist:b26264860ca4778d874e8014833235ef
Last active March 16, 2026 21:58
go2rtc and cloudflare

go2rtc Setup Guide — Windows Mini-PC

Deployment guide for go2rtc on a dedicated Windows mini-PC installed at a condominium, exposed via Cloudflare Tunnel for remote camera viewing.

Prerequisites

  • Windows 10/11 mini-PC (Intel NUC, Beelink, etc.) connected to the condo LAN
  • IP cameras with RTSP streams on the same network
  • Cloudflare account with a domain configured
  • Admin access to the condo router (for static IP assignment)
@yovany-lg
yovany-lg / keybase.md
Created November 19, 2023 17:20
keybase.md

Keybase proof

I hereby claim:

  • I am yovany-lg on github.
  • I am yovanylg (https://keybase.io/yovanylg) on keybase.
  • I have a public key ASCoHhiZH8cVytF3SIGMWw2F6pG9-Z5GgKOxqxPG4Oa0Ggo

To claim this, I am signing this object:

@yovany-lg
yovany-lg / expo-typescript-eslint-prettier.md
Last active February 22, 2026 11:40
Setting up React Navite: Expo + Typescript + Eslint (Airbnb) + Prettier

Steps to get started with Expo, Typescript, ESLint and Prettier

The first step is to use the Expo CLI to initialize the project. If you don't have the latest version of the Expo CLI tool, (or you don't have it installed) run npm install -g expo-cli.

Now run the following commands in the same order:

  • expo init my-app -t expo-template-blank-typescript
  • npx install-peerdeps --dev eslint-config-airbnb
  • npm i --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
  • npm i --save-dev prettier eslint-config-prettier eslint-plugin-prettier

Create or edit the file .eslintrc.json with the following content:

@yovany-lg
yovany-lg / flattern_array.py
Created January 3, 2018 07:11
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4].
array = [[1,2,[3]],4]
def arrayFlat(arr, newArray = []):
"""Function that receives an array of integers, there can be nested array
elements, and returns the flattened version of the given aray"""
for el in arr:
if not isinstance(el, list):
newArray.append(el)
else:
arrayFlat(el, newArray)