Skip to content

Instantly share code, notes, and snippets.

View kessl's full-sized avatar
🦑

Daniel Kessl kessl

🦑
View GitHub Profile
{
2283699 => [
[ 0] {
:child => {
"id" => 14786780,
"type_with_codec" => "uint64_delta"
},
:parent => {
"id" => 14788537,
"type_with_codec" => "float64_delta"
@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 Wireguardifying crappy work VPN
slug wireguardifying-crappy-work-vpn
tags
devops
author Daniel
created 2021-06-28 13:20:20 -0700

Wireguardifying crappy work VPN

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

Static site analytics with Nginx, GoAccess & no JS

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

My humble homelab beginnings

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

Making-of this blog

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

Setting up a dev environment on GitLab pages

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

Dotfiles

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

Home data storage with encrypted cloud backup

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

Content Security Policy, inline scripts and Next.js