Skip to content

Instantly share code, notes, and snippets.

View Victor1890's full-sized avatar
😁
Web technologies lover!

Victor Jesús Rosario Vásquez Victor1890

😁
Web technologies lover!
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@Victor1890
Victor1890 / nvmuse.md
Created January 27, 2025 02:59 — forked from danpetitt/nvmuse.md
Using nvmrc on Windows

Using nvmrc on Windows

Unfortunately nvm use on Windows does not change the node version to that specified in the .nvmrc file as its not supported on nvm for Windows: coreybutler/nvm-windows#388

So the easiest solution to this is to use a simple Powershell command that performs an approximation of the command as follows: nvm use $(Get-Content .nvmrc).replace( 'v', '' );

However, thats a bit awkward and we can do a bit more so instead, we can create an 'alias' to a function that calls the command instead:

function callnvm() {
@Victor1890
Victor1890 / stress-test-with-oha.ps1
Created October 28, 2024 19:42
I have created an automated script to perform a stress test on http requests.
# Parameters for load testing (adjust as needed)
$duration = "30s" # Duration for the test
$concurrentConnections = 50 # Number of concurrent connections
$queryPerSecond = 10 # Queries per second
# Parameters for load testing (adjust as needed)
$duration = "30s" # Duration for the test
$concurrentConnections = 50 # Number of concurrent connections
$queryPerSecond = 10 # Queries per second
@Victor1890
Victor1890 / pr_template.md
Created April 8, 2024 11:49 — forked from nicolasmontielf/pr_template.md
This is a template for your PR's

Context

Gives the reviewer some context about the work and why this change is being made, the WHY you are doing this. This field goes more into the product perspective.

Description

Provide a detailed description of how exactly this task will be accomplished. This can be something technical. What specific steps will be taken to achieve the goal? This should include details on service integration, job logic, implementation, etc.

Changes in the codebase

This is where becomes technical. Here is where you can be more focused on the engineering side of your solution. Include information about the functionality they are adding or modifying, as well as any refactoring or improvement of existing code.

Changes outside the codebase

@Victor1890
Victor1890 / excel.util.ts
Created March 27, 2024 01:20
Create table excel
import excelJS from 'exceljs'
export interface ISheetExcel {
columns: Array<string>
rows: Array<ObjectI>
sheetName: string,
}
export interface ITablesExcel {
sheets: Array<ISheetExcel>
@Victor1890
Victor1890 / base-provider.ts
Created December 27, 2023 22:51
This TypeScript class, named Base, is designed to be extended by other classes, serving as a solid foundation for building HTTP clients in TypeScript applications. It leverages the Fetch API to simplify common HTTP operations, including GET, POST, PATCH, and DELETE requests. The class provides a clean and extensible interface for making API call…
class Base {
private readonly api: string
private readonly headers: HeadersInit
constructor(api: string, headers: HeadersInit = {}) {
this.api = api
this.headers = headers
}
private params(params: Record<string, any>): string {