Skip to content

Instantly share code, notes, and snippets.

View jepebe's full-sized avatar

Jean-Paul Balabanian jepebe

  • Eviny
  • Norge
View GitHub Profile
@jepebe
jepebe / shortcuts.md
Created January 9, 2024 14:39
Custom PyCharm Shortcuts on MacOS

Overview

  • ⌘ Command
  • ⌥ Alt
  • ⇧ Shift
  • ⌃ Control
  • ↑ Up
  • ↓ Down
  • ← Left
  • → Right

Disable macOS accent popup (enable repeat key)

defaults write -g ApplePressAndHoldEnabled -bool false
@jepebe
jepebe / nintendo.md
Last active September 10, 2023 14:42
How to transfer SD card data using macOS

If you're using windows, just follow Nintendo's advice, but if you're using macOS / OSX you end up with annoying error messages telling you your card is corrupt. It took me ages to figure this out, so I thought I'd share. I read this post and was convinced it might not be possible, but I just upgraded my 128GB card to a 256GB without losing (or having to re-download) any content. Hope this helps someone here.

Steps are as follows:

  1. Backup the Nintendo folder from your original SD card. You can just drag and drop it to your Desktop, but just to be on the safe side I ran Disk Utility and selected File -> New Image -> Image from "disk2s1". Your SD card may be named differently.
  2. Format the new SD card in the Switch
  3. Eject the old SD card and insert the new SD card into your mac
  4. Copy contents of the Nintendo folder from your copy onto the new SD card (if you did it via an image, then double-click on your image file to mount it, then copy from there). Select Replace all files if prompted.
  5. Wait for ag
@jepebe
jepebe / setup.bat
Last active November 2, 2022 23:06
Manually install MS-DOS 6.22
rem Copy and expand MS-DOS 6.22 files to c:\dos
rem Start script in a directory that contains all files from the 3 install floppies
rem Files will be copied or expanded to c:\dos
rem disk #1
copy ATTRIB.EXE c:\dos\ATTRIB.EXE
copy AUTOEXEC.BAT c:\dos\AUTOEXEC.BAT
copy CHKDSK.EXE c:\dos\CHKDSK.EXE
copy COMMAND.COM c:\dos\COMMAND.COM
@jepebe
jepebe / pxemsdos.md
Created November 2, 2022 19:18
MS-DOS 6.22 PXE Boot on a Raspberry PI

Booting MS-DOS 6.22 over PXE on a Raspberry PI

Trying to boot MS-DOS 6.22 on an older computer with no floppy drive, however, there is PXE LAN boot support. These instructions installs and configures PXE Linux on the Raspberry PI and sets up a bootable floppy image for MS-DOS 6.22.

Install dependencies

apt-get install dnsmasq pxelinux

Writing an image file to SD card on MacOS

Information from here

sudo dd if=path_of_your_image.img of=/dev/rdiskn bs=1m

rdiskn means raw disk device and is supposed to be faster to write to link

@jepebe
jepebe / partitioning.md
Last active October 31, 2022 19:55
Partitioning a SD card for MS-DOS 6.22

MS-DOS 6.22 has a partition size limit of 500MB. This command will (On MacOS) create a FAT16 partition that is 500MB and mark the rest as free space.

diskutil partitionDisk /dev/disk5 2 MBRFormat "MS-DOS FAT16" SD1 500M FREE Untitled R

/dev/disk5 is the volume you want to partition 2 is the number of partitions MBRFormat is to make the FAT MBR style "MS-DOS FAT16" the type of filesystem

Keybase proof

I hereby claim:

  • I am jepebe on github.
  • I am balabanian (https://keybase.io/balabanian) on keybase.
  • I have a public key whose fingerprint is 99D9 FBC6 9051 6B8F C735 71D8 3EC9 F9A9 DBEB 4EEE

To claim this, I am signing this object: