Skip to content

Instantly share code, notes, and snippets.

View OlegSchwann's full-sized avatar

Oleg Schwann OlegSchwann

  • Limassol, Cyprus
View GitHub Profile
@Aldaviva
Aldaviva / oath-totp-google-authenticator-export-keepass-import.md
Last active January 7, 2026 14:42
Export one-time passwords from Google Authenticator and import them into KeePass

Import TOTP from Google Authenticator into Keepass

  1. Export a QR code from Google Authenticator
    1. Open the Google Authenticator Android app
    2. Tap ☰ › Transfer accounts › Export accounts
    3. Laboriously deselect all accounts except the one you want to export
    4. Tap Next
  2. Decode the otpauth-migration URI from the QR code
    1. Take a screenshot of the QR code on the screen by holding Power+Volume Down
  3. Open the screenshot in Google Photos or another app that can decode QR codes
@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 January 18, 2026 05:21
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 May 9, 2025 13:39
[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()