Skip to content

Instantly share code, notes, and snippets.

View OleksandrKucherenko's full-sized avatar

Oleksandr OleksandrKucherenko

View GitHub Profile
@kant2002
kant2002 / Dependencies.md
Last active April 8, 2024 14:03
Іструкції по збірці ісходного коду Дії локально

Аплікації

Репозиторій Мій Опис Опис Дії
android-diia Андроід версій Дія.Апплікація
ios-diia iOS версій Дія.Апплікація

Сервіси

Репозиторій Опис Опис Дії
be-auth-service Керування авторізаціі через інші сервіси. This repository contains the service which provides authorization functionality with different strategies for the application.
@zebreus
zebreus / firebase.tf
Last active March 27, 2024 11:00
Terraform configuration for creating a firebase project with firestore, functions and storage
# firebase.tf https://gist.githubusercontent.com/Zebreus/906b8870e49586adfe8bd7bbff43f0a8/raw/firebase.tf
# Terraform configuration for creating a firebase project with firestore, functions and storage
# Unfinished
terraform {
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = "4.11.0"
}
@anthonyaxenov
anthonyaxenov / args.sh
Last active September 11, 2023 12:30
[SHELL] Argument parser for bash scripts without getopt or getopts
#!/bin/bash
#########################################################################
# #
# Argument parser for bash scripts #
# #
# Author: Anthony Axenov (Антон Аксенов) #
# Version: 1.5 #
# License: MIT #
# #
#########################################################################
@OleksandrKucherenko
OleksandrKucherenko / configureMyMac.sh
Last active April 22, 2024 07:49
Pre-configure My mac
#!/usr/bin/env bash
set -x # uncomment to debug
# required for Homebrew
xcode-select —-install
sudo xcodebuild -license accept
# install https://brew.sh/
which brew || (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" )
@OleksandrKucherenko
OleksandrKucherenko / git-cheats.sh
Last active March 27, 2023 09:37
GIT useful commands
#!/bin/bash
# Get root folder path of the project under git
# Output: /Users/oleksandr.kucherenko/projects/klarna-app
git rev-parse --show-toplevel
# Get latest commit hash
# Output: 1b03718dabad03aaef917eff3ea8bb15e4fa1c46
git rev-parse @
@blurayne
blurayne / ui-widget-select.sh
Last active March 15, 2024 20:27
Pure BASH interactive CLI/TUI menu (single and multi-select/checkboxes)
#!/bin/bash
##
# Pure BASH interactive CLI/TUI menu (single and multi-select/checkboxes)
#
# Author: Markus Geiger <mg@evolution515.net>
# Last revised 2019-09-11
#
# ATTENTION! TO BE REFACTORED! FIRST DRAFT!
#
Useful tricks for Android gradle files
- build time
- ci_job
- dependencies
- force a lang for a specific flavor
- gcm flavorish google-services.json
- git commit count
- git sha
- isIdeBuild
@OleksandrKucherenko
OleksandrKucherenko / version-up.sh
Last active December 24, 2023 09:54
Calculate Next Suitable Version Tag for Your Git based project
#!/usr/bin/env bash
# shellcheck disable=SC2155
## Copyright (C) 2017, Oleksandr Kucherenko
## Last revisit: 2023-09-30
## Version: 2.0.2
## License: MIT
## Fix: 2023-10-01, prefix for initial INIT_VERSION was not applied
## Fix: 2023-10-01, correct extraction of latest tag that match version pattern
## Added: 2023-09-30, @mrares prefix modification implemented
@OleksandrKucherenko
OleksandrKucherenko / git-log-top10.sh
Created June 30, 2016 07:34
Get fancy git log, get last top 10 commits. (By parameter can be defined number of line to print)
#!/bin/bash
if [ -z "$1" ]; then
TOP=10
else
TOP=$1
fi
# display top 10 messages with line numbering
git --no-pager log --pretty=format:"%h%x09%Cblue%cr%Cgreen%x09%an%Creset%x09%s%Cred%d%Creset" -n $TOP --date=short | nl -w2 -s" "