Skip to content

Instantly share code, notes, and snippets.

View itsmikita's full-sized avatar

It's Mikita itsmikita

View GitHub Profile
@itsmikita
itsmikita / fixmagicmouse.sh
Created August 10, 2024 15:43
Fix Magic Mouse (1 but may work on 2 as well) on Arch Linux
# Stop the kernel driver
sudo modprobe -r hid_magicmouse
# Start the driver with these options
sudo modprobe hid_magicmouse \
emulate_3button=0 \
middle_click_3finger=1 \
stop_scroll_while_moving=1 \
scroll_acceleration=1 \
scroll_speed=50 \
scroll_delay_pos_x=300 \
@itsmikita
itsmikita / gist:14aab4df176dba532464a45a0095e1a4
Created August 8, 2024 06:47
yay: When AUR package fails validity checks
If you trust the maintainer instakll it with:
```
yay -S --mflags --skipinteg <package>
```
@itsmikita
itsmikita / README.md
Created July 27, 2024 18:44
Apple Magic Mouse on Arch Linux
@itsmikita
itsmikita / macos-iso.md
Last active July 10, 2024 11:57
Extract ISO image from macOS Somona installer
@itsmikita
itsmikita / MONOREPO.md
Last active June 29, 2024 18:12
How to create a monorepo

How to create a monorepo

  1. Create the root folder:
mkdir monorepo
  1. Create monorepo's package.json:
@itsmikita
itsmikita / README.md
Last active June 21, 2024 05:01
Create bootable USB drive from InstallMacOSX.pkg

Create bootable USB drive from InstallMacOSX.pkg

  1. Erase USB drive with Disk Utility using format Mac OS Extended (Journaled) and Master Boot Record and call it MyVolume
  2. Use Finder to mount/open InstallMacOSX.dmg.
  3. Run following commands:
pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg /tmp/El\ Capitan
diskutil eject Install\ OS\ X
cd /tmp/El\ Capitan
@itsmikita
itsmikita / fontsinstall.sh
Last active June 20, 2024 19:00
(Arch) Linux CLI to install multiple fonts simultaneously
#!/bin/bash
# Function to display usage
usage() {
echo "Usage: $0 [-s] <file_or_directory_path>..."
echo " -s Install fonts system-wide (requires sudo)"
exit 1
}
# Function to install fonts and update font cache
@itsmikita
itsmikita / missing_links.sh
Last active June 20, 2024 18:30
Find missing symlinks (tested on Linux & macOS)
@itsmikita
itsmikita / podman-wordpress-mariadb.sh
Created June 18, 2024 15:25 — forked from sbe-arg/podman-wordpress-mariadb.sh
Wordpress + MariadDB with podman local development
podman pod create --publish 8080:80 --name demo.wp.1
podman run -d --name wp.db --pod demo.wp.1 \
-e MARIADB_USER=mariadb \
-e MARIADB_PASSWORD=mariadb \
-e MARIADB_ROOT_PASSWORD=mariadb \
docker.io/library/mariadb
podman exec -it wp.db \
mysql -e "CREATE DATABASE wordpress;" --user=root --password=mariadb
@itsmikita
itsmikita / NERD-FONT-SYMBOLS.md
Last active May 31, 2024 20:14
When your Nerd Font not displaying any icons on (Arch) Linux.
  1. Remove no-bitmaps setting from your fontconfig:
mv cd /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf ~/Downloads
  1. Install ttf-nerd-fonts-symbols, ttf-nerd-fonts-symbols-common and ttf-nerd-fonts-symbols-mono packages from AUR:
yay ttf-nerd-fonts-symbols