Skip to content

Instantly share code, notes, and snippets.

View jpcofr's full-sized avatar

Juan Pablo Contreras Franco jpcofr

  • Gothenburg, Sweden
View GitHub Profile
@jpcofr
jpcofr / lazy.md
Last active February 17, 2024 10:34
Task Description Command GNU coreutils/POSIX utils/Unix utils
Create tcsh Alias for readlink alias toclip 'readlink -f \!:1 | to_clipboard' alias, readlink, to_clipboard
Improving alias for copying a path to the clipboard
@jpcofr
jpcofr / README.md
Created March 6, 2024 19:40
Simple Flask web server

Project Setup and Server Execution

To set up the project and run the server, follow these steps:

  1. Python Environment Setup:

    • Ensure Python is installed on your system. You can download and install Python from the official website if needed.
  2. Install Required Libraries:

    • Install Flask, the web framework used for creating the HTTP server:
@jpcofr
jpcofr / merge_code.sh
Created May 9, 2024 09:20
Consolidates C++ related files into a single markdown file
#!/bin/bash
# Script Name: merge_code.sh
# Description:
# This script searches for source code files in a specified directory and its subdirectories,
# optionally excluding certain directories. It consolidates the contents of these files into a
# single Markdown file named all_sources.md, organizing the code by its relative file path and
# highlighting syntax according to the file type.
#
# Usage:
# ./merge_code.sh search_directory [exclude_dir1] [exclude_dir2] [...]