Skip to content

Instantly share code, notes, and snippets.

View zdraganov's full-sized avatar

Zhivko Draganov zdraganov

View GitHub Profile
@zdraganov
zdraganov / conventional_commits.md
Created June 5, 2023 13:50
Conventional Commits

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@zdraganov
zdraganov / pbn.js
Created May 23, 2020 08:11
DDS example
import { dealerCompute } from 'results/utils/hands'
import { shortDirections } from 'results/constants'
const suitsSorted = ['S', 'H', 'D', 'C']
const ranksSorted = ['A', 'K', 'Q', 'J', 'T', '9', '8', '7', '6', '5', '4', '3', '2']
const pbnDirectionCardsOrder = {
N: ['N', 'E', 'S', 'W'],
E: ['E', 'S', 'W', 'N'],
S: ['S', 'W', 'N', 'E'],
@zdraganov
zdraganov / zhivko.sh
Last active November 11, 2024 08:01
Zhivko permissions
#!/bin/bash
#add user
SSH_PUBLIC_KEY='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDwX5WfMS4W5WTIOfxI89NefoNd29SIMH1Aw1aRLJapQ [email protected]'
id zhivko
if [ $? -ne 0 ]; then
useradd -m -d /home/zhivko -s /bin/bash zhivko
mkdir /home/zhivko/.ssh
chmod 0700 /home/zhivko/.ssh

This is my Atom settings export. Enjoy