Skip to content

Instantly share code, notes, and snippets.

View untainsYD's full-sized avatar
🦅
doing job

Yarosλaβ . untainsYD

🦅
doing job
View GitHub Profile
@untainsYD
untainsYD / .zshrc
Created May 12, 2023 15:33
.zshrc configuration file
```
dot_config="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
partials="${dot_config}/zshrc.d"
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle ':completion:*' matcher-list '' '' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=** r:|=** l:|=*'
zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f'
zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- %d (errors: %e) -!%f'
zstyle ':completion:*:descriptions' format '%U%K{yellow} %F{green}-- %F{red} %BNICE!1! %b%f %d --%f%k%u'
zstyle ':completion:*:default' list-colors "${(s.:.)LS_COLORS}"
Jun 03 18:09:19 untainsYD-workstation systemd[1]: Started Process Core Dump (PID 580404/UID 0).
Jun 03 18:09:19 untainsYD-workstation systemd-coredump[580406]: [🡕] Process 580341 (code) of user 1000 dumped core.
Stack trace of thread 580341:
#0 0x000055c271d5c5e7 n/a (code + 0x697c5e7)
#1 0x000055c271d5c585 n/a (code + 0x697c585)
#2 0x000055c271d4c6c5 n/a (code + 0x696c6c5)
#3 0x000055c271d485b8 n/a (code + 0x69685b8)
#4 0x000055c271500d30 n/a (code + 0x6120d30)
#5 0x000055c27027af06 n/a (code + 0x4e9af06)
@untainsYD
untainsYD / secure_boot.md
Created January 15, 2024 17:40
Secure boot

Secure boot

!!!BE AWARE!!! of doing dual-boot (Windows + Linux) setup. This guide doesn't explain ANYTHING about dual-boot, and you should do it on your own. Before you proceed, beware of these:

You need to backup your keys. See UEFI. Secure boot. Using your own keys.

NOTES: You need to boot in the freshly installed OS (without chroot) before following these steps. I would recommend to do it in the end of the installation.

Secure Boot is a security feature found in the UEFI standard, designed to add a layer of protection to the pre-boot process: by maintaining

@untainsYD
untainsYD / fonts_how_to.md
Created January 22, 2024 21:14
Fonts setup

Fonts

Find out what your default fonts and aliases are with fc-match:

for family in serif sans-serif monospace Arial Helvetica Verdana "Times New Roman" "Courier New"; do
    echo -n "$family: "
    fc-match "$family"
done

Main fonts

@untainsYD
untainsYD / IndexedArray.java
Created May 15, 2025 07:15
Створення власного контейнера на базі масиву
package lab4.container;
import java.util.AbstractList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.NoSuchElementException;
import java.util.Objects;
@untainsYD
untainsYD / Task7.java
Last active May 15, 2025 07:20
Task7
package lab4;
import lab4.container.IndexedArray;
import java.util.Arrays;
import java.util.List;
/**
* Тестування узагальненого класу IndexedArray
*/
package lab4.container;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Узагальнений клас, що представляє двобічно зв'язаний список
* @param <E> тип елементів списку
*/
public class DoublyLinkedList<E> implements Iterable<E> {
@untainsYD
untainsYD / DoublyLinkedListTestClass.java
Created May 15, 2025 07:29
DoublyLinkedListTestClass
package lab4;
import lab4.container.DoublyLinkedList;
import java.util.Iterator;
/**
* Тестування узагальненого класу DoublyLinkedList
*/
public class Task8 {
package lab4.tree;
/**
* Клас для представлення бінарного дерева пошуку,
* модифікація прикладу 3.9 з додаванням функції видалення елемента
*/
public class BinaryTree {
// Клас для представлення вузла
public static class Node {
@untainsYD
untainsYD / BinaryTreeTestClass.java
Created May 15, 2025 07:39
BinaryTreeTestClass
package lab4;
import lab4.tree.BinaryTree;
/**
* Тестування бінарного дерева пошуку з функцією видалення елементів
*/
public class Task9 {
public static void main(String[] args) {
// Основне тестування