Skip to content

Instantly share code, notes, and snippets.

@fardjad
fardjad / minikube-on-wsl2-with-podman.md
Last active Oct 1, 2022
[Minikube on WSL2 with Podman] Tips for running a local development Kubernetes cluster on WSL2 with Podman #wsl2 #minikube #podman #kubernetes #docker
View minikube-on-wsl2-with-podman.md
@fardjad
fardjad / how-to-install-parallels-tools-on-manjaro.md
Last active Sep 29, 2022
[How to Install Parallels Tools on Manjaro] Steps required to install Paralells Tools on Manjaro Linux #linux #manjaro #parallelsdesktop #macos
View how-to-install-parallels-tools-on-manjaro.md

How to Install Parallels Tools on Manjaro

Steps required to install Paralells Tools on Manjaro Linux

Steps

  1. Install Manjaro Linux on a VM (it's recommended to take a snapshot before installing Parallels Tools)
  2. Update the OS

pacman -Syu

@fardjad
fardjad / batch-m4a-to-mp3.md
Last active Sep 18, 2022
[How to Convert m4a Files to mp3, Preserving Bitrate and ID3 Tags Using ffmpeg] #ffmpeg #bash
View batch-m4a-to-mp3.md

How to convert m4a files to mp3, preserving bitrate and id3 tags using ffmpeg

Prerequisites

  1. ffmpeg
  2. cygwin (on windows)

Commands

cd /path/to/m4a/files
mkdir out
for f in *.m4a; do 
@fardjad
fardjad / how-to-install-homebrew-on-manjaro.md
Last active Sep 17, 2022
[How to Install Homebrew on Manjaro] Steps required to install homebrew on Manjaro Linux #linux #manjaro #homebrew
View how-to-install-homebrew-on-manjaro.md

How to Install Homebrew on Manjaro

Steps required to install Homebrew on Manjaro Linux

Steps

  1. Install base-devel

     pacman -Syu # CAUTION: this updates the whole system
    

pacman -S base-devel

@fardjad
fardjad / how-to-install-homebrew-on-debian-based-distros.md
Last active Jun 19, 2022
[How to Install Homebrew on Debian-based Distros] Steps required to install homebrew on MX Linux (and other Debian-based distros) #linux #debian #mxlinux #homebrew
View how-to-install-homebrew-on-debian-based-distros.md

How to Install Homebrew on Debian-based Distros

Steps required to install Homebrew on MX Linux (and other Debian-based distros)

Steps

  1. Update apt cache and optionally do a full upgrade

     apt update
    

apt full-upgrade # optional, reboot if needed

@fardjad
fardjad / debian-sid-with-systemd-on-wsl2.md
Last active May 18, 2022
[Debian sid with systemd on WSL2] Instructions for running Debian sid with systemd on WSL2 #windows #wsl2 #debian #sid #linux
View debian-sid-with-systemd-on-wsl2.md

Debian sid with systemd on WSL2

Instructions for running Debian sid with systemd on WSL2

Instructions

  1. Make sure you're running Windows 10 Build 19041+ (run ver)

  2. Enable the Windows Subsystem for Linux (reboot if needed):

     # In an elevated PowerShell session
    

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

@fardjad
fardjad / how-to-enable-dark-theme-on-elementaryos.md
Last active May 7, 2022
[How to Enable Dark Theme on ElementaryOS] Instructions for enabling dark theme (almost) everywhere on ElementaryOS #elementary #linux #dark
View how-to-enable-dark-theme-on-elementaryos.md

How to Enable Dark Theme on ElementaryOS

Instructions for enabling dark theme (almost) everywhere on ElementaryOS

Pantheon Apps

  1. Replace the contents of /usr/share/dbus-1/interfaces/io.elementary.pantheon.AccountsService.xml with this file.
  2. Replace the line <annotation name="org.freedesktop.Accounts.DefaultValue" value="0"/> with <annotation name="org.freedesktop.Accounts.DefaultValue" value="1"/> under PreferColorScheme section.

Source

@fardjad
fardjad / doublecmd-explorer-integration.reg
Last active Apr 10, 2022
[doublecmd-explorer-integration.reg] Double Commander Explorer Integration #windows #registry #doublecmd
View doublecmd-explorer-integration.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Drive\shell]
@="open"
[HKEY_CLASSES_ROOT\Drive\shell\open]
[HKEY_CLASSES_ROOT\Drive\shell\open\command]
@="C:\\Program Files\\Double Commander\\doublecmd.exe -C \"%1\""
@fardjad
fardjad / how-to-start-colima-automatically-on-macos.md
Last active Apr 3, 2022
[How to start Colima automatically on macOS] Instructions for starting Colima automatically on macOS similar to Docker Desktop #macos #colima #docker
View how-to-start-colima-automatically-on-macos.md

Steps

  1. Allow colima start to run without password:
cat <<-EOF | sudo tee /private/etc/sudoers.d/colima
%admin ALL=NOPASSWD: /bin/rm -rf /var/run/docker.sock
%admin ALL=NOPASSWD: /bin/ln -s $HOME/.colima/docker.sock /var/run/docker.sock
EOF
@fardjad
fardjad / how-to-install-ice-ssb-manager-on-debian.md
Last active Mar 8, 2022
[How to install ICE - SSB Manager on Debian] Steps required to build and install ICE SSB on Debian Linux and its derivatives #ice #ssb #debian
View how-to-install-ice-ssb-manager-on-debian.md

How to install ICE - SSB Manager on Debian

Steps required to build and install ICE SSB on Debian Linux and its derivatives

Steps

  1. Install the dependencies

     apt install build-essential devscripts
     apt install python3 python3-gi python3-requests python3-bs4 python3-lxml
    

apt install chromium-browser