Skip to content

Instantly share code, notes, and snippets.

View pedrosorrentino's full-sized avatar

Pedro Sorrentino pedrosorrentino

View GitHub Profile
@Geczy
Geczy / readme.md
Last active June 6, 2025 15:36
Migrate Coolify to a new server
@Klerith
Klerith / templateSlice.js
Last active June 12, 2025 16:20
Cascaron para crear Redux Slices rápidamente
import { createSlice } from '@reduxjs/toolkit';
export const templateSlice = createSlice({
name: 'name',
initialState: {
counter: 10
},
reducers: {
increment: (state, /* action */ ) => {
//! https://react-redux.js.org/tutorials/quick-start
@jonmircha
jonmircha / helpHttp.js
Last active January 29, 2025 04:11
Script que te permite simplificar peticiones HTTP con Fetch, esta escrita en VanillaJS por lo que puedes usarla con cualquier framework o librería
export const helpHttp = () => {
const customFetch = (endpoint, options) => {
const defaultHeader = {
accept: "application/json",
};
const controller = new AbortController();
options.signal = controller.signal;
options.method = options.method || "GET";