Skip to content

Instantly share code, notes, and snippets.

View demicuz's full-sized avatar
🤖
beep boop

Denis Mazurak demicuz

🤖
beep boop
View GitHub Profile
{
"title": "Caps Lock to Escape, enable Left Control when held",
"rules": [
{
"description": "Caps Lock to Escape on single press, Left Control on press and hold.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
{
"title": "Caps Lock (Ctrl) + HJKL",
"rules": [
{ "description": "Caps Lock to Ctrl",
"manipulators": [{"type": "basic", "from": {"key_code": "caps_lock", "modifiers": {"optional": ["any"]}}, "to": [{"key_code": "left_control"}]}] },
{ "description": "Ctrl + H/J/K/L to Arrow Keys",
"manipulators": [{"type": "basic", "from": {"key_code": "h", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}] },
{"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]},
{"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}]},
{"type": "basic", "from": {"key_code": "l", "modifiers": {"mandatory": ["left_control"], "optional": ["any"]}}, "to": [{"key_code": "right_arrow"}]}] },
@demicuz
demicuz / Ayu-selection-mod.conf
Created November 21, 2022 14:10
A modified Ayu theme for Kitty terminal
background #0e1419
foreground #e5e1cf
cursor #f19618
selection_background #243340
color0 #000000
color8 #555555
color1 #ff3333
color9 #ff6565
color2 #b8cc52
color10 #e9fe83

Второй рубежный контроль по дисциплине "Основы веб-технологий"

Персональный сайт

Главные требования

  1. Работа выполнена самостоятельно.
  2. Работа создана во время проведения занятия.
  3. Не менее трех коммитов за авторством студента, равномерно распределенных по времени выполнения задания.
  4. Работа размещена на удаленном репозитории на Gitlab в папке студента в группе Mospolytech_fit

Вопросы к первому рубежному контролю

Основы веб-технологий

  1. W3С консорциум. Цели и задачи W3C
  2. Инженерный совет Интернета IETF
  3. Сеть Интернет и протоколы
  4. RFC и стандартизация
  5. Стек протоколов TCP/IP, TCP-соединение
  6. Системы адресации. IPv4. IPv6
@demicuz
demicuz / fish_remove_path.fish
Created September 15, 2022 01:29
Fish shell has `fish_add_path` to add directories to PATH. But doesn't have a remove function, so here it is.
# Source: superuser.com/questions/776008
function fish_remove_path --description "Remove paths from the PATH"
if set -l index (contains -i $argv[1] $PATH)
set --erase --universal fish_user_paths[$index]
echo "Updated PATH: $PATH"
else
echo "$argv[1] not found in PATH: $PATH"
end
end
@demicuz
demicuz / man.fish
Last active August 4, 2022 19:59
Limit maximum width of `man` output in fish shell
function man
if test $COLUMNS -gt 80
set -gx MANWIDTH 80
else
set -gx MANWIDTH $COLUMNS
end
command man --no-hyphenation --no-justification $argv
end
@demicuz
demicuz / viman
Created June 10, 2022 01:41
Using Vim as a pager for man
#!/bin/bash
text=$(man "$@") && echo "$text" | vim -R +":set ft=man nolist nonu fdm=indent sw=7" -
@demicuz
demicuz / kitty.conf
Last active November 21, 2022 14:08
My config for Kitty terminal
# vim:fileencoding=utf-8:foldmethod=marker
# Keyboard bindings
map ctrl+p nth_window -1
map ctrl+c copy_and_clear_or_interrupt
map ctrl+v paste_from_clipboard
map kitty_mod+t new_tab_with_cwd
map kitty_mod+enter new_window_with_cwd
# map kitty_mod+n new_os_window_with_cwd
@demicuz
demicuz / Mariana.conf
Last active June 6, 2022 06:12
Mariana theme from Sublime Text for Kitty terminal
# Mariana theme from Sublime Text for Kitty terminal
foreground #d5dee9
background #303841
cursor #f9ae57
cursor_text_color background
selection_foreground #d5dee9
selection_background #596673