Skip to content

Instantly share code, notes, and snippets.

View gzur's full-sized avatar
🚢
Shipping it! 🚢🇮🇹

Gissur @ Skývafnir gzur

🚢
Shipping it! 🚢🇮🇹
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Principles of Software Development for Humans

Measures of success (and inversely; failure):

  1. Our stuff does not break (stuff gets tested on the way out). (CI)
  2. Our stuff ships in no time at all. (from conception to delivery, think weeks, not months). (CD)
  3. When our stuff breaks, we know about it. (monitoring, observability)
  4. When our stuff breaks, it can be easily unbroken. (automatic rollbacks)
  5. Our stuff is simple to deploy. (zero config, production defaults, configurability is the root of all evil)
  6. Our stuff requires no manual intervention. (eliminate operator load, object to doing things that computers can do)
@gzur
gzur / gl.fish
Last active February 20, 2020 22:32
Infers the github/gitlab/bitbucket link from your git remote
# Git Link.
# Infers the github/gitlab/bitbucket link from your git remote
# and opens it in your default browser.
# I mostly use gitlab, so there is some extra options for that (`gl p` / `gl m` / `gl d`)
# 1. cd into a directory containing a git repo
# 2. run `gl`
# 3. Profit!!!
# Only tested on Mac - other OSes are left as an exercise to the reader.
@gzur
gzur / gl.fish
Created February 20, 2020 22:26
Infers the github/gitlab/bitbucket link from your git remote
# Git Link.
# Infers the github/gitlab/bitbucket link from your git remote
# and opens it in your default browser
# Only tested on Mac
function gl
git rev-parse --is-inside-work-tree >/dev/null
if test "$status" -gt 0
return $status
end
set remote (git remote get-url --all origin)
@gzur
gzur / a_gotur.txt
Last active May 8, 2018 14:24
Götuheiti úr LUKRinu sem innihalda aðeins sérhljóðann A
gzur@gzurbook:~/random/a_gotur$ cat lukr_gotuheiti.csv | cut -d "," -f 6 | grep --ignore-case --extended-regexp --invert-match "[áeéiíoóuúyýöæ]|\.$" | sort | uniq
Aragata
Arnargata
Aðalland
Bjallavað
Bjarkargata
Bjarmaland
Bragagata
Brattagata
Dalaland

Keybase proof

I hereby claim:

  • I am gzur on github.
  • I am gzur (https://keybase.io/gzur) on keybase.
  • I have a public key whose fingerprint is 4772 F6E1 7FA6 D06A 2438 C07A 90BF 4DA4 5262 0245

To claim this, I am signing this object: