Skip to content

Instantly share code, notes, and snippets.

View Matte0Serafini's full-sized avatar

Matteo Serafini Matte0Serafini

  • Netaddiction s.r.l.
  • Terni, Umbria, Italy
View GitHub Profile
@ongkiii
ongkiii / IPA-Sources.md
Last active October 27, 2025 17:31
REPOS/TELEGRAM CHANNELS LIST BY u/angkitbharadwaj
@perfectbase
perfectbase / await.tsx
Last active July 19, 2025 11:53
Await component for Next.js
import { Fragment, Suspense, type ReactNode } from 'react';
import { ErrorBoundary } from 'react-error-boundary';
type AwaitProps<T> =
| {
promise: Promise<T>;
children: (data: T) => ReactNode;
fallback?: ReactNode;
errorComponent?: ReactNode | null;
}
@jlia0
jlia0 / agent loop
Last active October 28, 2025 01:55
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
"use client";
import React, { useEffect, useId, useState } from "react";
import { motion, AnimatePresence, MotionConfig } from "framer-motion";
import { PlusIcon, XIcon } from "lucide-react";
import { createPortal } from "react-dom";
import { cn } from "@/lib/utils";
import { buttonVariants } from "../button";
const transition = {
@ilkou
ilkou / shadcn-ui react-select.jsx
Created March 26, 2024 13:54
react-select with shadcn/ui
/* ----------- simple-select.js ----------- */
import * as React from 'react';
import Select from 'react-select';
import type { Props } from 'react-select';
import { defaultClassNames, defaultStyles } from './helper';
import {
ClearIndicator,
DropdownIndicator,
MultiValueRemove,
Option
@gimenete
gimenete / safeParse.ts
Last active March 15, 2024 16:05
A wrapper around the fetch function that validates the response body against a Zod schema
import z from "zod";
export async function safeFetch<T>(
schema: z.Schema<T>,
input: RequestInfo,
init?: RequestInit
): Promise<T> {
const response = await fetch(input, init);
if (!response.ok) {
import * as React from 'react';
import { DateTime } from 'luxon';
import { Calendar as CalendarIcon } from 'lucide-react';
import { Button } from '@/components/ui/Button';
import { Calendar } from '@/components/ui/Calendar';
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/Popover';
import { cn } from '@/lib/utils';
import { SelectSingleEventHandler } from 'react-day-picker';
import { Label } from '@/components/ui/Label';
@adamz01h
adamz01h / canvas_fingerprint.js
Created July 20, 2022 20:22
html5 canvas fingerprinting
console.log("canvas fingerprint: " + canvas_fingerprint());
function check_canvas(){
var elem = document.createElement('canvas');
return elem;
}
function canvas_fingerprint(){
@huytd
huytd / wordle.md
Last active October 26, 2025 01:01
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@nicoandmee
nicoandmee / guard.js
Last active August 29, 2023 09:53
cvs browser fingerprinting
! function e(t, r, n) {
function i(o, s) {
if (!r[o]) {
if (!t[o]) {
var c = "function" == typeof require && require;
if (!s && c) return c(o, !0);
if (a) return a(o, !0);
var d = new Error("Cannot find module '" + o + "'");
throw d.code = "MODULE_NOT_FOUND", d