Skip to content

Instantly share code, notes, and snippets.

@PaSaSaP
PaSaSaP / README.md
Created December 7, 2023 22:16
Install MELD on MacOS

Use python3.11

git clone https://github.com/yousseb/meld

pip3.11 install pyobjc  # import Foundation
brew install gtk+3
brew install gtksourceview4
brew install gtk-mac-integration # required to work with gtksourceview4
@PaSaSaP
PaSaSaP / README.md
Created August 18, 2023 10:46
How to put "Translate Selected Text" by S3.Translator within context menu to the top?

Follow that tutorial

userChrome.css should look like:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#s3_translator-menuitem-_translate_selection { order: -1; }
@PaSaSaP
PaSaSaP / GreatTmux.json
Last active November 26, 2022 15:47
ITerm2 profile configuration for tmux on macos
{
"Use libtickit protocol" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.3333333432674408,
"Red Component" : 0.3333333432674408,
"Blue Component" : 1
},
@PaSaSaP
PaSaSaP / keybindings.tmux
Created November 26, 2022 09:23
Byobu custom bindings.
unbind-key -n C-a
set -g prefix ^A
set -g prefix2 F12
bind a send-prefix
# for old releases...
bind-key -n C-S-F3 swap-window -t :-1 -d \; select-window -p
bind-key -n C-S-F4 swap-window -t :+1 -d \; select-window -n
@PaSaSaP
PaSaSaP / parse_hmi_event_codes.py
Last active October 3, 2023 08:25
Parse Nextion HMI project file so script creates dir tree structure containing event codes.
#!/usr/bin/env python3
"""
Parse HMI Nextion file and put result into directory tree.
While parsing Nextion cannot have opened that project.
Tested for Nextion 1.63.3
"""
import sys
import os
from os.path import basename, exists, realpath