Skip to content

Instantly share code, notes, and snippets.

@celestehorgan
celestehorgan / index.html
Last active January 29, 2020 11:27
Hugo - Iterate over section and subsections
{{ $allSections := site.Sections }} <!-- "blog" and "docs" -->
{{ $docsSections := where $allSections "Section" "docs" }} <!-- "getting-started" and "deployment" -->
{{ $thisUrl := .RelPermalink }} <!-- the URL of the current page -->
<h2>Docs</h2>
{{ range $docsSections }}
<ul>
<li>
{{ .Title }}
@celestehorgan
celestehorgan / kubernetes-community-website.md
Created April 3, 2020 19:07
kubernetes-community-website

The problem: Getting involved in Kubernetes is difficult for first time contributors. The Kubernetes project is huge, there are lots of meetings, events, and SIGs, and in addition to basic Git knowledge it requires specialised knowledge of Kubenetes-specific Git requirements (i.e. Prow).

The kubernetes/community repository does a good job of documenting the existence of SIGs and general processes, but it doesn’t do as good a job at surfacing meetings/events attached to different SIGs (buried in a google calendar) or documenting basic Git processes. However, it suffers for

Proposal: kubernetes/community into a full-blown site Take the content on kubernetes/community and build it out into a full blown site with its own URL, community.kubernetes.io, or similar. Remove the https://kubernetes.io/community/ subpage and link to this new site instead.

This website would be:

  • An index of all SIGs and and WG’s (as it currently does)
@celestehorgan
celestehorgan / loader.py
Last active May 13, 2024 11:26 — forked from Ugbot/loader.py
uploading from S3 into clickhouse
## You also need to create a function URL in AWS Lambda. I'm not sure what the permissions should be so I was very permissive.
import json
import boto3
import csv
import io
from botocore.vendored import requests
s3Client = boto3.client('s3')