Skip to content

Instantly share code, notes, and snippets.

View SoloSynth1's full-sized avatar
💨
Moved to GitLab

Orix Au Yeung SoloSynth1

💨
Moved to GitLab
View GitHub Profile
@SoloSynth1
SoloSynth1 / gist:753ba4cbb149d15705aa355d9fac677f
Created October 1, 2025 17:00
tridactyl-like vimium config
# Vimium config to match Tridactyl's mappings.
# https://vimium.github.io/commands/
unmap d
unmap u
unmap x
unmap j
unmap k
unmap s
unmap S
unmap o
@SoloSynth1
SoloSynth1 / .gitconfig
Created August 12, 2025 22:31
gitconfig
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
@SoloSynth1
SoloSynth1 / gist:b5b5b461d1ac20f8bf83e5993d2cec61
Last active August 12, 2025 21:49
Fix IntelliJ scaling issues on Wayland

For some reason, IntelliJ IDEs still run on Xwayland in Wayland WMs (as of 2025-08-12). This can cause scaling issues for some monitors where everyting is scaled 2x, or more. (I assume this is caused by HiDPI info provided is incorrect)

To fix this, you can instruct the IDE to use WLToolKit for AWT.

Steps:

  1. Go to Help | Edit Custom VM Options.... You can use the search function to find it as well. A file with .vmoptions extensions will be opened.
  2. Add a line at the end of the file: -Dawt.toolkit.name=WLToolkit.
  3. Restart your IDE.
@SoloSynth1
SoloSynth1 / compose.yaml
Last active July 1, 2025 05:18
paperless-ngx docker compose portainer config
services:
broker:
image: docker.io/library/redis:8
restart: always
volumes:
- /volume1/docker/paperlessngx/redis:/data
db:
image: docker.io/library/postgres:17
restart: always
volumes:
@SoloSynth1
SoloSynth1 / .aerospace.toml
Last active January 30, 2025 19:22
dotfile for AeroSpace (default + yabai-like joining and resizing commands)
# Edited to add yabai-like joining commands & global shortcuts
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands.html
after-login-command = []
# You can use it to add commands that run after AeroSpace startup.
# 'after-startup-command' is run after 'after-login-command'
# Available commands : https://nikitabobko.github.io/AeroSpace/commands.html
@SoloSynth1
SoloSynth1 / normcore-llm.md
Created October 2, 2023 03:06 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SoloSynth1
SoloSynth1 / install-tf.sh
Last active May 25, 2023 21:30
Install Tensorflow and Pytorch using conda+pip
CONDA_ENV=tf
conda create -n $CONDA_ENV python=3.9
conda deactivate
conda activate $CONDA_ENV
# install cuda toolkit
conda install -c conda-forge cudatoolkit=11.8.0
# install cuDNN and Tensorflow
python3 -m pip install nvidia-cudnn-cu11==8.6.0.163 tensorflow==2.12.0
@SoloSynth1
SoloSynth1 / virt-manager-macos.md
Created May 19, 2023 01:18
[macOS, apple silicon] Adding remote libvirtd in virt-manager

Using virt-manager, one can connect to remote libvirtd to gain access to VMs hosted by the remote machine.

For reasons unknown, when trying to add new connection using its GUI, it will not connect properly.

This was most likely caused by the auto-generated URI being incorrect.

Therefore, one way to get around this is to use CLI arguments to add the remote host when opening virt-manager:

virt-manager -c 'qemu+ssh://@/system?socket=/var/run/libvirt/libvirt-sock'
@SoloSynth1
SoloSynth1 / classification-and-regression-using-knn.ipynb
Created May 12, 2023 09:16
classification-and-regression-using-knn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.