Skip to content

Instantly share code, notes, and snippets.

View OlegSchwann's full-sized avatar

Oleg Schwann OlegSchwann

  • Limassol, Cyprus
View GitHub Profile
@OlegSchwann
OlegSchwann / 1_traffic_distribution.proto
Last active September 8, 2022 08:41
ClickHouse: Can window view read from kafka engine?
syntax = "proto3";
package traffic_distribution;
message CampaignTraffic {
uint32 CampaignID = 1;
string RotatorName = 2;
int64 LastActionAt = 3; // timestamp
uint64 Count = 4;
}
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active June 27, 2024 14:45
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@mjj2000
mjj2000 / get-current-git-tag.sh
Last active June 4, 2024 14:55
[GIT] Get tag of current branch(that is HEAD) or fallback to short commit hash(7 digits) by single shell command
git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD
@ik5
ik5 / time_format.go
Created November 9, 2016 09:04
A full example of all possible time formats in Golang
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println("Times: ")
t := time.Now()