Skip to content

Instantly share code, notes, and snippets.

@bre7
bre7 / RemoveDupfromPATH.ps1
Created January 26, 2022 20:58 — forked from gitsoup/RemoveDupfromPATH.ps1
Windows Powershell to remove duplicate PATH variables
#---------------------------------------------------------------------------------
#The sample scripts are not supported under any Microsoft standard support
#program or service. The sample scripts are provided AS IS without warranty
#of any kind. Microsoft further disclaims all implied warranties including,
#without limitation, any implied warranties of merchantability or of fitness for
#a particular purpose. The entire risk arising out of the use or performance of
#the sample scripts and documentation remains with you. In no event shall
#Microsoft, its authors, or anyone else involved in the creation, production, or
#delivery of the scripts be liable for any damages whatsoever (including,
#without limitation, damages for loss of business profits, business interruption,
@bre7
bre7 / f680.md
Created October 14, 2024 16:35 — forked from olmedocr/f680.md
Instrucciones para obtener las claves GPON, SIP y de administración del router f680 v2 y v4 con firmware T18

Pre requisitos: USB formateado en NTFS Live CD de alguna distro de linux (probe con macOS, pero no parece funcionar) f680 v2 o v4 con version de firmware T18 o anterior (no se si funcionará con futuras versiones)

Al lio: Formateamos el USB en NTFS y desde linux creamos un symlink con el siguiente comando: ln -s /var/samba/lib/smb.conf .

Lo enchufamos al USB del router y nos metemos en la interfaz web, en el apartado de aplicaciones nos aseguramos de que el servidor samba este activado y funcionando, ahi mismo encontraremos las instrucciones para conectarnos

@bre7
bre7 / Image.astro
Last active January 3, 2025 19:14 — forked from sannajammeh/Image.astro
Astro Responsive Image
---
import type { ImageMetadata, ImageTransform } from "astro";
import { getImage } from "astro:assets";
import LoadableImage from "./LoadableImage.astro";
type Props = {
src: ImageMetadata;
alt: string;
/**
* Array of screens to generate the image for i.e [320, 480, 1200]