Skip to content

Instantly share code, notes, and snippets.

View matasarei's full-sized avatar

Yevhen Matasar matasarei

View GitHub Profile
@yodermk
yodermk / centos8-9.sh
Created February 13, 2022 19:08
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
@rishavpandey43
rishavpandey43 / git-commit-styleguide.md
Last active November 17, 2025 11:52
This gist consist of the rules and best practice of good conventional git commit message

Git Commit Messages Style-Guides

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally after the first line
  • When only changing documentation, include [ci skip] in the commit title
  • Consider starting the commit message with an applicable emoji

Types

@nmilosev
nmilosev / edit-init-rc.md
Created May 27, 2018 21:31 — forked from ashutosh-mishra/edit-init-rc.md
How to run custom script from init.rc, How to Extract Android Kernel And Modify The Boot Ramdisk(Android 4+)

init.rc changes

init.rc changes to run any script Can be used to start any android application, service

on property:dev.bootcomplete=1
    exec - system system -- /system/bin/sh <custom script path>
    # exec - system system -- /system/bin/sh /data/local/bootscript/testservice.sh

Script can contains applications start, stop commands

@neretin-trike
neretin-trike / pug.md
Last active October 16, 2025 10:04
Туториал по HTML препроцессору Pug (Jade)
@c-bata
c-bata / README.md
Last active September 11, 2023 22:00
Try to deserialize protobuf binary using decodeIO/protobuf.js

How to reproduce

Use from proto.

import protobuf from "protobufjs";

// omit

export const ProfileActionCreators = {
    fetchProfile(){
@miere
miere / README.md
Last active April 3, 2022 23:01
Elementary OS Loki - Customization

Elementary OS Loki

This guide will help you to have a better experience with ElementaryOS

Installing the 'add-apt-repository'

Elementary OS come out-of-box with a large set of applications available from the AppCenter. The ElementaryOS developers believe that this set of application will provide you a great user experience and you may not need any other third-party application installed on your OS. Thus, it does not have the 'add-apt-repository' installed on your system.

But, it is quite easy to install it on your EOS.

@crittermike
crittermike / xdebug_alpine.md
Last active October 1, 2020 12:49
Xdebug + PHPStorm for PHP 7 on Alpine Linux

First, install the Xdebug package from the testing repository.

$ apk add php7-xdebug --repository http://dl-3.alpinelinux.org/alpine/edge/testing/

Now edit the /etc/php7/php.ini file and add the following to the end of it:

zend_extension=/usr/lib/php7/modules/xdebug.so
@fevangelou
fevangelou / my.cnf
Last active November 5, 2025 13:22
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated September 2024 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@techslides
techslides / github-gist-api.js
Last active January 1, 2022 23:03
GitHub API to make Gists with Ajax
/*
Assuming jQuery Ajax instead of vanilla XHR
*/
//Get Github Authorization Token with proper scope, print to console
$.ajax({
url: 'https://api.github.com/authorizations',
type: 'POST',
beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", "Basic " + btoa("USERNAME:PASSWORD"));