Skip to content

Instantly share code, notes, and snippets.

View galkin's full-sized avatar
🇺🇦

Nikita Galkin galkin

🇺🇦
View GitHub Profile
@galkin
galkin / subtree.sh
Created April 8, 2016 11:28
subtree example
#Remove submodule
git submodule deinit ocv-raml
git rm ocv-raml
#Add new remote repository with specification
git remote add -f ocv-raml https://github.com/ThomasCookOnline/ocv-raml.git
#Copy paste all commits from spec to our repository
git read-tree --prefix=ocv-raml/ -u ocv-raml/master
#Commit new commits
git commit -m "Replace ocv-raml submodule by subtree"
@galkin
galkin / pre-commit
Last active July 9, 2016 05:29
Auto run node test before commit
#!/bin/sh
echo "Running tests"
STATUS=0
npm test
if [ $? -ne 0 ]
then
echo "Tests had failed - commit aborted"
STATUS=1
@galkin
galkin / simple-git-workflow.md
Created July 29, 2016 11:19 — forked from leesmith/simple-git-workflow.md
Simple Git Workflow For Continuous Delivery

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow

### Keybase proof
I hereby claim:
* I am galkin on github.
* I am galkin (https://keybase.io/galkin) on keybase.
* I have a public key whose fingerprint is B2B7 338B CC37 855B 4F0F 3083 38F5 74AF 3123 16AE
To claim this, I am signing this object:
@galkin
galkin / issues.md
Created November 9, 2016 17:59
Kindly Care - Architecture Board Review

What well

  • Response time
  • SEO
  • Swagger as Specification for Frontend and Mobile Clients
  • Analytics
  • All features production ready

Action points

@galkin
galkin / install_jmeter.sh
Last active November 11, 2016 11:35
Perfomance testing
#!/bin/bash
if ! mkdir temp_dir >/dev/null 2>&1
then
echo "Cann't make 'temp_dir' folder. Aborting.";
exit 1;
fi
if ! type java >/dev/null 2>&1
then
#!/bin/bash
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
# Modified by Mikko Rantalainen 2012-08-09
# Pipe the output to "sort -nk3" to get sorted output
# Modified by Marc Methot 2014-09-18
# removed the need for sudo
SUM=0
OVERALL=0
@galkin
galkin / README.md
Created November 8, 2017 13:30 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@galkin
galkin / Feedback.md
Created February 27, 2018 06:23
Feedback Yuri Predborskiy

Highlevel

REST API

  • Endpoints. Реализованы все кроме put. File-storage завязан на имена файлов, а не на asset id.
  • Payloads. Реализованы не правильно. Структура payload-а имеет status для определения успешности операции. Для этого используют http коды. Asset size не передается.
  • Headers. Не реализованы. Заявленный в контракте Location отсутвует.

Streaming

  • Read. Реализовано.
  • Write. Реализовано через временую дирректорию с использованием koa-body вместо стриминга сразу в FileStorage.
@galkin
galkin / Readme.md
Last active March 24, 2018 16:46
Skip broken eslint rules

Usage

Pass the URL for this gist to npx in the project folder

Precondition:

  • eslint is installed
  • .eslintrc.json exist