This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Image, { ImageProps } from "next/image"; | |
| import { ReactNode, useState } from "react"; | |
| interface ISkeletonImageProps extends ImageProps { | |
| skeleton: ReactNode; | |
| } | |
| const SkeletonImage = ({ skeleton, ...props }: ISkeletonImageProps) => { | |
| const [showSkeleton, setShowSkeleton] = useState<boolean>(true); | |
| const { alt, width, height, src, className } = props; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run with sudo." >&2 | |
| exit 1 | |
| fi | |
| if [[ "$1" == "-h" || "$1" == "--help" ]]; then | |
| echo "Usage: sudo ./script.sh <interface> <MAC_addr>" | |
| echo "Sets the MAC address for the specified network interface." | |
| echo "Arguments:" |
OlderNewer