Skip to content

Instantly share code, notes, and snippets.

View AmanuelCh's full-sized avatar
🎯
Learning

Amanuel Chaka AmanuelCh

🎯
Learning
View GitHub Profile
@AmanuelCh
AmanuelCh / ExtractingZipFilesWithParts.md
Last active January 20, 2025 14:04
How to extract ZIP files with parts (.zip01, .zip02, etc) for linux, windows and mac

Extracting multi-part ZIP files (like .zip01, .zip02, etc.) can be done using different methods depending on the operating system. Below are instructions for Linux, Windows, and macOS.

Linux

  1. Using the unzip command:

    • First, ensure you have unzip installed. You can install it using your package manager if it's not already installed:

sudo apt-get install unzip # For Debian/Ubuntu

@AmanuelCh
AmanuelCh / import-markdown.md
Created August 19, 2024 22:06
Import markdown files in .tsx file for a vite project

first in your vite-env.d.ts file, put the following line to let typescript treat .md files as a module.

declare module '*.md';

then in your vite.config.ts file put the following code to create a custom plugin which loads .md files and gets the raw content of the .md file

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';