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 April 24, 2025 13:48
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 April 27, 2025 10:04
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 April 22, 2025 12:06
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 / instalaciones-next.md
Last active April 18, 2025 04:11
Instalaciones recomendadas para el curso de Next.js 13 >
@Klerith
Klerith / docker-compose.yml
Last active April 18, 2025 23:09
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 April 22, 2025 03:51
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
@Klerith
Klerith / instalaciones-nest-microservicios.md
Last active April 16, 2025 02:45
Instalaciones recomendadas para el curso de Microservicios con Nest
@Klerith
Klerith / VueRouterTemplate.vue
Last active March 17, 2025 21:10
Template para nuestro ejercicio de Vue Rotuer
<template>
<div class="flex flex-col h-screen">
<!-- Header -->
<header class="flex items-center h-14 px-4 border-b border-gray-300 sm:h-16 md:px-6 lg:px-8">
<div>
<a class="flex items-center gap-2 font-semibold" href="#">
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="40" height="40" />
</a>
</div>