Skip to content

Instantly share code, notes, and snippets.

View aohorodnyk's full-sized avatar
:octocat:
Contributing...

Anton Ohorodnyk aohorodnyk

:octocat:
Contributing...
View GitHub Profile
# Created by https://www.toptal.com/developers/gitignore/api/go,windows,macos,linux,visualstudiocode,visualstudio,intellij+all,homebrew,vim,emacs,sublimetext,dotenv,flutter,dart,androidstudio,darteditor,hugo,java,xcode,xcodeinjection,android,web,webstorm+all,pycharm+all,python,helm
# Edit at https://www.toptal.com/developers/gitignore?templates=go,windows,macos,linux,visualstudiocode,visualstudio,intellij+all,homebrew,vim,emacs,sublimetext,dotenv,flutter,dart,androidstudio,darteditor,hugo,java,xcode,xcodeinjection,android,web,webstorm+all,pycharm+all,python,helm
### Android ###
# Built application files
*.apk
*.aar
*.ap_
*.aab
run:
modules-download-mode: readonly # Do not update dependencies.
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
@aohorodnyk
aohorodnyk / prepare-commit-msg
Created June 14, 2021 19:07
Git hook to add ticket number to commit message
#!/bin/bash
#
# This hook adds issue/ticket number from branch name to every commit message
#
BRANCH_NAME=$(git symbolic-ref --short HEAD)
MSG=$(head -n 1 "${1}")
[[ -z "${BRANCH_NAME}" ]] && exit 0
CREATE TABLE t1_new LIKE t1;
RENAME TABLE t1 TO t1_old, t1_new TO t1;
INSERT INTO t1 SELECT * FROM t1_old;

Keybase proof

I hereby claim:

  • I am aohorodnyk on github.
  • I am avoh (https://keybase.io/avoh) on keybase.
  • I have a public key ASA9iWuXqXCfr0OsAQuuYaDUYQUa9vrp1xGfBfRgtIMk3wo

To claim this, I am signing this object:

@aohorodnyk
aohorodnyk / Os-Detection-Makefile
Created May 18, 2018 12:24 — forked from sighingnow/Makefile
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif
#!/usr/bin/env bash
# Delete all containers
docker rm -f $(docker ps -a -q)
# Delete all images
docker rmi -f $(docker images -q)
# Delete all volumes
docker volume rm $(docker volume ls -qf dangling=true)
# Delete all networks
docker network rm $(docker network ls -q)
zend_extension=xdebug.so
xdebug.max_nesting_level=200
xdebug.default_enable=1
xdebug.remote_autostart=0
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_connect_back=0
xdebug.remote_host=10.0.2.2
xdebug.idekey=PHPSTORM
version: '2'
services:
nginx:
restart: always
image: nginx:stable-alpine
ports:
- 80:80
- 443:443
volumes:
- ./conf.d/:/etc/nginx/conf.d/:ro
<config>
<type name="Magento\CatalogInventory\Model\StockRegistry">
<plugin name="plugin_name" type="Magento\CatalogInventory\Model\StockRegistryPlugin" sortOrder="1" />
</type>
</config>