Skip to content

Instantly share code, notes, and snippets.

View yorchwebs's full-sized avatar
🧑‍💻
I'm working on it now...

Jorge Garcia yorchwebs

🧑‍💻
I'm working on it now...
View GitHub Profile
import time
def simple_for():
lista = []
for x in range(0, 100_000_000):
lista.append(x)
def list_comprehension():
lista = [x for x in range(0, 100_000_000)]
from fabric.api import run
from fabric.api import env, cd, prefix, sudo
from fabric.api import local
env.hosts = ['104.236.4.54']
env.user = 'eduardo'
env.key_filename = '/home/eduardo/.ssh/id_ed25519.pub'
def deploy():
@Klerith
Klerith / tarea-pg-admin.md
Last active December 10, 2025 22:03
Tarea sobre PGAdmin y Postgres

Docker Hub images

Postgres

pgAdmin

1. Crear un volumen para almacenar la información de la base de datos

docker COMANDO CREAR postgres-db

2. Montar la imagen de postgres así

OJO: No hay puerto publicado -p, lo que hará imposible acceder a la base de datos con TablePlus

CREATE DATABASE IF NOT EXISTS bootcamp;
USE bootcamp;
DROP TABLE IF EXISTS users;
CREATE TABLE users(
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, -- Este es un campo único.
name VARCHAR(50) NOT NULL,
age INT NOT NULL,
import shutil
from pathlib import Path
current_path = Path.cwd()
documents_path = current_path / 'documents'
files_path = documents_path / 'txts'
pdfs_path = documents_path / 'pdfs'
images_path = documents_path / 'images'
@codigoconjuan
codigoconjuan / style.css
Created November 9, 2022 16:55
Style.css para Crear un Tema nuevo
/*
Theme Name: Gym Fitness
Theme URI:
Author: Juan Pablo De la torre Valdez
Author URI: http://twitter.com/codigoconjuan
Description: Theme Diseñado para el Gimnasio GymFitness
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Gym, gimnasio, flexbox, css grid, mobile first
@hcosta
hcosta / resumen.md
Last active September 23, 2025 20:06

Configurar VSC para Django (Actualizado 03/2024)

Actualmente no es necesario configurar el proyecto en el directorio .vscode/settings.json, es mucho más fácil. Solo hay que seguir estos pasos:

  1. Antes de nada instalad estas extensiones en vuestro Visual Studio Code:
@FranklinYu
FranklinYu / README.markdown
Last active December 10, 2025 07:17
links for old versions of Docker for Mac (inspired by docker/for-mac#1120)

links for old versions of Docker for Mac

Deprecated

Docker provides download links in release note. They promised that

(we) will also include download links in release notes for future releases.

Note:

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active December 12, 2025 01:49
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example