Skip to content

Instantly share code, notes, and snippets.

View matasarei's full-sized avatar

Yevhen Matasar matasarei

View GitHub Profile
@matasarei
matasarei / live_coding_user_management_system.md
Last active March 31, 2025 10:15
Live Coding: Simple User Management System

Live coding: Simple User Management System

Suggested level: Middle

Task Overview: Building a Simple User Management System

The challenge is divided into three steps, each increasing in complexity. The goal is to evaluate problem-solving skills, OOP understanding, and ability to refactor code.

Step 1

@matasarei
matasarei / _php_dev.md
Last active July 12, 2024 19:33
Install PHP from sources
git clone https://github.com/php/php-src.git
cd php-src

./buildconf

./configure \
  --prefix=/opt/php/dev \
  --enable-cli \
  --enable-fpm \
@matasarei
matasarei / centos8-9.sh
Last active June 2, 2024 19:34 — forked from yodermk/centos8-9.sh
Commands to live-upgrade CentOS Streams 8 -> 9
# The general procedure here is adapted from the 7->8 guide here. https://www.tecmint.com/upgrade-centos-7-to-centos-8/
#
# It is a curated list of my bash history. I entered other commands so hopefully I got the right ones here.
yum upgrade
reboot
dnf install epel-release
dnf install rpmconf
dnf install yum-utils
rpmconf -a # answer "n" to both things
@matasarei
matasarei / howto_keyboard_layout_lag_fix_juno.md
Last active April 24, 2019 21:11
Switch layout with Super + Space and fix keyboard layout lag on elementaryOS Juno

HOWTO: Switch layout with Super + Space and fix keyboard layout lag on Juno

  1. sudo wget https://gist.githubusercontent.com/matasarei/579991cfab9f5e7f966c7a424e5fa4c3/raw/87037b9776a86ffd3dd2b32432bed9d5509da2d8/switch-layout.sh -O /usr/bin/switch-layout
  2. sudo chmod +x /usr/bin/switch-layout
  3. Go to keyboard settings
  4. Add custom keyboard shortcut switch-layout and set any combination, like Super + Spase.
@matasarei
matasarei / how_to_replace_protected_codesign.md
Last active August 30, 2018 14:58
HOWTO: Replace protected codesign file [MACOS]

HOWTO: replace protected codesign file (or any other system file)

  1. Reboot in recovery mode (poweroff, hold Command + R and powerup)

  2. Open terminal

  3. Mount disk in write mode

mount -uw /
@matasarei
matasarei / bootstrap_panel_fix.js
Created June 29, 2018 12:21
Fixed Bootstrap panel
(() => {
const panel = $('.panel-request');
const offsetTop = panel.offset().top;
$(window).on('scroll resize', () => {
const scrollTop = $(window).scrollTop();
if (scrollTop > offsetTop) {
panel.css({
'position': 'absolute',
@matasarei
matasarei / openwrt_relayd_repeater.md
Last active October 3, 2025 03:47
HOWTO: Setup OpenWRT (LEDE) WiFi repeater (the right way)

HOWTO: Setup OpenWRT (LEDE) WiFi repeater

First of all, you need to install relayd package:

opkg install relayd
/etc/init.d/relayd enable

Edit DHCP configuration

file: /etc/config/dhcp

@matasarei
matasarei / diff_msoffice_same_pc.md
Created March 18, 2018 15:39
HOWTO: Use diff MS Office versions on same system

HOWTO: Use diff MS Office versions on same system

  1. Install MS Office from oldest to newest versions.
  2. Run Office apps you want to use by default.
  3. Run next command to prevent MS Office run configuration scipts (for each installed version):
reg add HKCU\Software\Microsoft\Office\<office version>\Word\Options /v NoReReg /t REG_DWORD /d 1

Replace `` with next values:

@matasarei
matasarei / lede-simple-ftp.md
Last active March 18, 2018 18:24
Easy way to set up personal home FTP server with OpenWRT (LEDE) router

Easy way to set up personal home FTP server with OpenWRT (LEDE) router

You will need:

  • Router with USB port;
  • OpenWRT or LEDE (recommended) firmware;
  • USB stick or USB hard drive.

Install USB support packages

opkg update
opkg install kmod-usb-ohci kmod-usb2 usbutils kmod-usb-storage kmod-fs-ext4 block-mount