Skip to content

Instantly share code, notes, and snippets.

View Cristian5c26l's full-sized avatar
馃挱
Trying to learn english.

Cristian Hern谩ndez Cristian5c26l

馃挱
Trying to learn english.
  • Mexico
View GitHub Profile
@subfuzion
subfuzion / curl.md
Last active September 22, 2025 09:33
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@tzmartin
tzmartin / m3u8-to-mp4.md
Last active September 15, 2025 01:45
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@Klerith
Klerith / git-alias.md
Last active September 27, 2025 13:08
Useful Git Alias

Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s status --short

Alternativa 煤til de status

git config --global alias.s status -sb

@Klerith
Klerith / README.md
Last active September 22, 2025 21:43
Deprecated Method - Decorador

@Deprecated - Method Decorator

En la definici贸n del m茅todo, se puede marcar como obsoleto (deprecated) con la justificaci贸n. Esto ayudar谩 a que otros developers sep谩n que deben de utilizar ya la alternativa.

@Deprecated('Most use speak2 method instead')
 speak() {
      console.log(`${ this.name }, ${ this.name }!`)
 }
@Klerith
Klerith / instalaciones.md
Last active September 28, 2025 03:26
Instalaciones recomendadas - Curso de Angular de cero a experto
@Klerith
Klerith / instalaciones-next.md
Last active September 21, 2025 21:16
Instalaciones recomendadas para el curso de Next.js 13 >
@Klerith
Klerith / docker-compose.yml
Last active August 23, 2025 03:36
PostgreSQL + PgAdmin
version: '3'
services:
myDB:
image: postgres:15.3
container_name: my-database
restart: always
ports:
- 5432:5432
environment:
@Klerith
Klerith / programas.md
Created July 13, 2023 20:10
Programas para hacer diagramas entidad relaci贸n
@Klerith
Klerith / medium-dbdiagram.txt
Created July 14, 2023 18:25
Creaci贸n del diagrama de la base de datos
Table users {
user_id integer [pk, increment]
username varchar [not null, unique]
email varchar [not null, unique]
password varchar [not null]
name varchar [not null]
role varchar [not null]
gender varchar(10) [not null]
@Klerith
Klerith / configurar-node-ts.md
Last active September 27, 2025 22:42
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y dem谩s dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuraci贸n de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src