Skip to content

Instantly share code, notes, and snippets.

@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?
View README.md

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
View GreatTmux.json
{
"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.
View keybindings.tmux
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.
View parse_hmi_event_codes.py
#!/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