Skip to content

Instantly share code, notes, and snippets.

Unix Command Line Cheatsheet

Navigation

  • pwd - Print working directory (show current location)
  • ls - List directory contents
  • ls -la - List all files (including hidden) with details
  • cd <directory> - Change directory
  • cd .. - Go up one level
  • cd ~ - Go to home directory
@luisjunco
luisjunco / exercise-express-query-string.md
Created January 6, 2026 11:33
Exercise to practice Express Query String (req.query)
@luisjunco
luisjunco / dsml-deploy-flask-app-with-docker-and-aws.md
Last active June 4, 2025 20:04
DSML - How to deploy a Flask app with Docker and AWS

Deploy a Flask app with Docker and AWS


1. Create the App

e.g., create an App or API that exposes the functionality from our model, using Flask.

@luisjunco
luisjunco / exercise-react-state.md
Created April 23, 2025 08:54
Practice: React State
@luisjunco
luisjunco / js-interview-the-rice-and-chessboard-problem.md
Last active February 16, 2025 19:45
JavaScript Interview - The rice and chessboard problem

JavaScript Interview - The rice and chessboard problem


In ancient times, a wise person presented a challenge to a curious king: place 1 grain of rice on the first square of a chessboard, and for each subsequent square, double the number of grains.

For example:

  • 1st square → 1 grain
  • 2nd square → 2 grains
@luisjunco
luisjunco / firebase-rest-api-cheatsheet.md
Last active February 27, 2025 14:41
Firebase REST API cheatsheet

Firebase REST API

This document explains how to configure Firebase as a REST API, as well as some common pain points and tips.


Initial setup

Practice: TypeScript arrays

Intro

  • For this exercise, you can work on your local environment (if you have the TypeScript compiler installed).

  • Or, if you prefer, you can work on an online editor like Stackblitz. For example, you can write your TypeScript code here:

Practice: TypeScript functions

Intro

  • For this exercise, you can work on your local environment (if you have the TypeScript compiler installed).

  • Or, if you prefer, you can work on an online editor like Stackblitz. For example, you can write your TypeScript code here:

PostgreSQL Data Types Cheatsheet

Here's a list with some of the most common data types in PostgreSQL.

Boolean

  • BOOLEAN - a Boolean data type can hold one of three possible values: true, false, or null.

Character Types: