Skip to content

Instantly share code, notes, and snippets.

View smirnoffs's full-sized avatar
🇺🇦
2 hours from the idea to production

Sergii Smyrnov smirnoffs

🇺🇦
2 hours from the idea to production
  • AMBOSS GmbH
  • Berlin, Germany
View GitHub Profile
@smirnoffs
smirnoffs / webservice-with-dep.sh
Created November 17, 2022 12:51
Start AIOhttp web-server with external docker dependency and stop the container on SIGINT (ctrl+c)
#!/bin/bash
trap_ctrlc() {
echo "Stopping container"
cont_id=$(docker ps -q --filter name=my-container)
docker stop $cont_id
echo "Container stopped"
}
trap trap_ctrlc INT
@smirnoffs
smirnoffs / team_process.md
Last active August 11, 2021 10:14
Team Process

The Process

Key principles

  • Integrate the code as fast as possible, the code that is not ready should be disabled by feature flags.
  • Deliver frequently, deploy frequency improves quality, decreases rework.
  • Enable fast flow from development to production by reducing variability and batch sizes (slice big tasks, deliver often).
  • Visualize team goals and targets, actively monitor and visualize performance to goals/targets. Visualize and minimize WIP.
  • Eliminate unnecessary controls (code review, QA, manager's approval), automate quality, invest in team capabilities and autonomy.
  • High cooperation, knowledge sharing, novelty and innovations are highly welcomed.
@smirnoffs
smirnoffs / gist:f113041fe50485410f78f90acc86616f
Last active February 26, 2020 16:13
Elasticsearch introduction
# Kibana version should match Elasticsearch version
GET /
DELETE services_v1
DELETE services_v2
DELETE resources
DELETE services_catalog_v1
@smirnoffs
smirnoffs / .env
Created June 14, 2018 20:42 — forked from xeraa/.env
ELASTIC_VERSION=5.6.9
#ELASTIC_VERSION=6.3.0
@smirnoffs
smirnoffs / kill_by_keyword.sh
Created November 29, 2017 19:31
Kill all by keyword
kill -9 `ps aux | grep <keyword> | grep -v grep | awk '{print $2}'`
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := 1.0
for i:=0; i<int(x); i++{