Skip to content

Instantly share code, notes, and snippets.

View raskhadafi's full-sized avatar
:octocat:

Roman raskhadafi

:octocat:
  • Zürich
  • 03:00 (UTC +01:00)
View GitHub Profile
@raskhadafi
raskhadafi / Readme.md
Created December 3, 2025 20:56 — forked from lordpixel23/Readme.md
Adding support for Apple fn/Globe key to QMK

What this does

This allows you to define a key for your QMK keyboard which has some of the same functionality as the fn/Globe key on an Apple keyboard. Applying the following patch to your qmk repository creates a new keycode KC_GLOBE which can then be used in your keymaps.

Where is this from

This commit is updating @drashna's code from Nov 2023 to work with the Nov 2024 files.

How to

@raskhadafi
raskhadafi / lima-on-m1-mac-installation-guide.md
Created March 2, 2022 17:01 — forked from toricls/lima-on-m1-mac-installation-guide.md
Using Lima to run containers with containerd and nerdctl (without Docker Desktop) on M1 Macs

Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.

Sep. 27th 2021 UPDATED

Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:

Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.

1. Install QEMU & Lima

@raskhadafi
raskhadafi / rails-rubocop.yml
Created January 27, 2021 06:10
Rubocop configuration for rails projects
AllCops:
Exclude:
- 'vendor/**/*'
- 'node_modules/**/*'
- 'db/fixtures/**/*'
- 'db/schema.rb'
- 'tmp/**/*'
- 'bin/**/*'
- 'generator_templates/**/*'
- 'builds/**/*'
@raskhadafi
raskhadafi / mailcatcher.conf
Last active December 3, 2025 20:41
Nginx configuration for mailcatcher
upstream mailcatcher {
sticky;
server appserver.domain.ch:3000 max_fails=1 fail_timeout=2s;
}
server {
listen 80;
server_name mailcatcher.domain.ch;
client_max_body_size 4G;
keepalive_timeout 5;