Skip to content

Instantly share code, notes, and snippets.

View OleksandrKucherenko's full-sized avatar

Oleksandr OleksandrKucherenko

View GitHub Profile
@anthavio
anthavio / jstatd
Last active January 14, 2016 13:09
jstatd /etc/init.d script
#!/bin/sh
# chkconfig: 345 99 05
# description: Java jstatd utility
# Install
# /etc/init.d/jstatd
# chkconfig --add jstatd
# Optional variables:
# JAVA_HOME, JPS_BIN, JSTATD_BIN, JSTATD_PORT, POLICY_FILE
# JPS_APP_ID, JVM_START_LOG, START_TIMEOUT, STOP_TIMEOUT, TIME_STEP
@avbk
avbk / robo.md
Last active October 14, 2017 00:16
Testing with Robolectric within Android Studio

Testing with Robolectric within Android Studio

Prerequisites

0. Setup a project

Setup a new Android project with Android Studio. If you already have done this you can skip this step.

@OleksandrKucherenko
OleksandrKucherenko / JsonLoader.java
Last active March 23, 2018 06:20
Volley Library adaptation for Loader pattern.
import android.os.Handler;
import android.os.Message;
import android.support.v4.content.Loader;
import com.android.volley.NoConnectionError;
import com.android.volley.Response;
import com.android.volley.RetryPolicy;
import com.android.volley.TimeoutError;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonRequest;
@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" "
@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 @
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
@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 #
# #
#########################################################################
@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!
#
@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"
}
@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.