Skip to content

Instantly share code, notes, and snippets.

View itsmikita's full-sized avatar

It's Mikita itsmikita

View GitHub Profile
@itsmikita
itsmikita / concat_audio_files.sh
Created November 9, 2024 07:45
Hyper-quick command-line to merge two or more audio files into one
# NOTE: Input file paths MUST be absolute, whereas output path MUST NOT be relative and files (including output file) MUST be of the same type
ffmpeg -f concat -safe 0 -i <(echo "file '/absolute/path/to/first/file.wav'\nfile '/absolute/path/to/second/file.wav'\n") -c copy -stats output.wav
@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 / 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 / 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 / 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
@itsmikita
itsmikita / README.md
Created May 31, 2024 10:34
Install Arch Linux on Microsoft Surface Laptop (linux-surface)

If you get error Failed to read disk ... with lsblk when installi9ng Arch Linux with archinstall, try this:

  1. Boot archiso.

  2. Run lsblk:

lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0 705.6M  1 loop /run/archiso/airootfs
sda           8:0    1  29.9G  0 disk
@itsmikita
itsmikita / starship.toml
Created May 31, 2024 09:22
Starship configuration.
# ~/.config/starship.toml
# get editor completions based on config schema
"$schema" = "https://starship.rs/config-schema.json"
# Add new line
add_newline = false
# Command execution timeout
command_timeout = 2000