Skip to content

Instantly share code, notes, and snippets.

View kessl's full-sized avatar
🦑

Daniel Kessl kessl

🦑
View GitHub Profile
@kessl
kessl / ceil.py
Created September 19, 2022 15:37
# simplest: round up using math.ceil
math.ceil(11 / 3)
# using integer division
result = 11 // 3
if result * 3 != 11: # or 11 % 3 != 0 or 11 % 3 > 0
result += 1
# smartass way 🙃 equivalent to the above
11 // 3 + (11 % 3 > 0)
title slug tags author created
Wireguardifying crappy work VPN
wireguardifying-crappy-work-vpn
devops
Daniel
2021-06-28 13:20:20 -0700

Wireguardifying crappy work VPN

title slug tags author created
Static site analytics with Nginx, GoAccess & no JS
static-site-analytics-with-nginx-goaccess-no-js
devops
Daniel
2021-03-14 13:15:00 -0700

Static site analytics with Nginx, GoAccess & no JS

title slug tags author created
My humble homelab beginnings
my-humble-homelab-beginnings
homelab
Daniel
2020-05-06 11:19:11 -0700

My humble homelab beginnings

title slug tags author created
Making-of this blog
making-of-this-blog
frontend
devops
Daniel
2020-04-27 07:38:47 -0700

Making-of this blog

title slug tags author created
Setting up a dev environment on GitLab pages
gitlab-pages-dev-env
devops
Daniel
2020-03-21 16:00:00 -0700

Setting up a dev environment on GitLab pages

title slug tags author created
Dotfiles
dotfiles
homelab
poweruser
Daniel
2021-10-01 14:49:23 -0700

Dotfiles

title slug tags author created
Home data storage with encrypted cloud backup
data-storage-with-encrypted-cloud-backup
homelab
Daniel
2021-01-13 06:28:14 -0800

Home data storage with encrypted cloud backup

title slug tags author created
Content Security Policy, inline scripts and Next.js
content-security-policy-inline-scripts-and-next-js
frontend
Daniel
2020-04-29 08:28:41 -0700

Content Security Policy, inline scripts and Next.js

title slug tags author created
Getting rid of Redux / apollo-link-rest with Next.js
bye-redux-hello-apollo-link-rest
frontend
Daniel"
2020-03-26 23:00:00 UTC

Getting rid of Redux / apollo-link-rest with Next.js