Skip to content

Instantly share code, notes, and snippets.

View tairosonloa's full-sized avatar
🏡
Working remotely

Aitor Alonso tairosonloa

🏡
Working remotely
View GitHub Profile
@tairosonloa
tairosonloa / main.py
Created December 23, 2023 19:19
Script to correct file and exif dates in photos from Facebook dump
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This script will parse the JSON files from your Facebook dump and will copy the photos to a new folder
# with the correct date and time. It will also add the correct date and time to the EXIF data of the photo.
#
# Author: @tairosonloa at https://github.com/tairosonloa
# License: MIT
# Version: 1.0.0
# Date: 2023-12-23
@tairosonloa
tairosonloa / launch.json
Created November 24, 2021 19:19
VScode config for NestJS debugger
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach NestJS WS",
@tairosonloa
tairosonloa / Readme.md
Last active December 15, 2023 00:15
Map WSL2 ports to windows host ports

What is this for?

This Powershell script lets you map ports from your WSL2 instance to the same ports on your Windows host machine. It's useful when working with development tools that must comunicate between the host and the WSL2, such an Android emulator running on Windows and a development server running on WSL2.

How does this work?

  1. Start your WSL2 instance
  2. Write into the $ports array the ports you want to map.
  3. With the WSL2 instance running, run the powersell script on Windows as administrator.
@tairosonloa
tairosonloa / - Typescript React project basic setup
Last active April 27, 2020 15:17
Typescript React project basic setup (VSCode with prettier and ESLint) by Tairosonloa
Typescript React project basic setup (VSCode with prettier and ESLint) by Tairosonloa