Skip to content

Instantly share code, notes, and snippets.


Adrian Wyssmann papanito

View GitHub Profile
View gist:05c306947a86b236ce6cffa5975dac0e
# get resource limits and requests for deplyoments in cluster
kubectl get deployments -o name -o=jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{}{"\t"}{..resources.requests}{"\t"}{..resources.limits}{"\n"}{end}' -A --context sit
View Getting_copy-paste_working_in_Windows_10_KVM.txt
Found the answer to getting copy/paste working in Windows 10 KVM here:
Solution was to run installer in this ISO (do not have url, sorry, I think Google can find it)
Download latest spice tools from here: and install it.
papanito / ironfeed.json
Last active Feb 3, 2021
ttrss feediron config
View ironfeed.json
"\/developer": {
"type": "xpath",
"xpath": "article[contains(@class, 'si-detail')]",
"cleanup": [
papanito /
Last active Jul 5, 2021 — forked from pavlov99/
Find your role's id in ansible-galaxy
$ ansible-galaxy role info YourUser.RoleName | grep -E 'id: [0-9]' | awk {'print $2'}
papanito /
Created Jun 11, 2020 — forked from janeczku/
How to register Rancher managed Kubernetes clusters in Argo CD

How to register Rancher managed Kubernetes clusters in Argo CD

Registering Rancher managed clusters in Argo CD doesn't work out of the box unless the Authorized Cluster Endpoint is used. Many users will prefer an integration of Argo CD via the central Rancher authentication proxy (which shares the network endpoint of the Rancher API/GUI). So let's find out why registering clusters via Rancher auth proxy fails and how to make it work.

Hint: If you are just looking for the solution scroll to the bottom of this page.

Why do i get an error when running argocd cluster add?

Service Account tokens and the Rancher authentication proxy

papanito / k8s-metricbeat.values.yaml
Last active Jun 9, 2020
An example `values.yaml` for installing `helm install k8s-metricbeat stable/metricbeat --namespace kube-system -f k8s-metricbeat.values.yaml`. It does not yet include shipping secret
View k8s-metricbeat.values.yaml
# The instances created by daemonset retrieve most metrics from the host
enabled: true
podAnnotations: []
priorityClassName: ""
- key:
operator: Exists
effect: NoSchedule
nodeSelector: {}
View gist:1664fa452087e3ae91bafd73a74b2edd
openssl pkey -in $KEY -pubout -outform pem | sha256sum
openssl x509 -in $CERT -pubkey -noout -outform pem | sha256sum
openssl req -in $CSR -pubkey -noout -outform pem | sha256sum
papanito /
Last active May 17, 2018 — forked from rickyah/
A simple guide to git-svn

Getting started with git-svn

git-svn is a git command that allows using git to interact with Subversion repositories.git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.


Cloning the SVN repository

You need to create a new local copy of the repository with the command

View arch.conf
title Arch Linux (Standard)
linux /vmlinuz-linux
initrd /initramfs-linux.img
options luks.uuid=556bf1e4-3730-4da3-8688-0f3c468bf5bb luks.crypttab=yes resume=/dev/mapper/CryptVol-swap root=/dev/mapper/CryptVol-root rw