Skip to content

Instantly share code, notes, and snippets.

@AlexAtkinson
AlexAtkinson / GoodFastCheap.md
Created October 4, 2023 18:46
Venn Diagram - Good Fast Cheap

Good Fast Cheap

@superseb
superseb / k3s-etcd-commands.md
Last active April 9, 2024 20:34
k3s etcd commands

k3s etcd commands

etcd

Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):

Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:

curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 19, 2024 13:25
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@alexellis
alexellis / kubernetes-ingress-example.yaml
Created June 21, 2020 12:50
kubernetes-ingress-example.yaml
# From my webinar for Sysdig - Exploring Kubernetes 1.18
# Create A KinD or k3s cluster with no IngressController
# Run `arkade install ingress-nginx` to add IngressNginx to the cluster as your IngressController
# Save and apply all the Kubernetes YAML files below
# Forward the IngressController
# kubectl port-forward ingress-nginx-controller 8080:80
@mehyedes
mehyedes / README.md
Last active May 13, 2020 17:38 — forked from alexellis/README.md
Provision faasd 0.8.1 on DigitalOcean with Terraform 0.12.0 with TLS support

Bootstrap faasd with TLS support on Digitalocean

  1. Sign up to DigitalOcean

  2. Download Terraform

  3. Clone this gist using the URL from the address bar

  4. Run terraform init

  5. Configure terraform variables as needed by updating the main.tfvars file:

    | Variable | Description | Default | | ------------ | ------------------- | --------------- |

@alexellis
alexellis / FAASD_MULTIPASS.md
Last active July 31, 2021 01:50
FAASD_MULTIPASS.md
@alvarocavalcanti
alvarocavalcanti / Dockerfile.dev
Last active March 17, 2024 15:29
Configuring Python Remote Interpreter using Docker
FROM python:3.7
ENV PYTHONUNBUFFERED 1
WORKDIR /code
# Copying the requirements, this is needed because at this point the volume isn't mounted yet
COPY requirements.txt /code/
# Installing requirements, if you don't use this, you should.
# More info: https://pip.pypa.io/en/stable/user_guide/
@florimondmanca
florimondmanca / asgi-packages.md
Last active December 4, 2023 15:52
ASGI Packages

A list of ASGI-related Python packages I maintain:

@noamtamim
noamtamim / README.md
Last active March 29, 2024 11:36
Markdown with PlantUML

How to use PlantUML with Markdown

PlantUML is a really awesome way to create diagrams by writing code instead of drawing and dragging visual elements. Markdown is a really nice documentation tool.

Here's how I combine the two, to create docs with embedded diagrams.

Step 0: Setup

Get the command-line PlantUML from the download page or your relevant package manager.

@ralsina
ralsina / slides.tmpl
Last active May 18, 2022 07:41
A gallery slideshow shortcode for Nikola
## Nikola slides shortcode
## Put it in shortcodes/ in your site
## Use it like this:
## {{% slides "foo" %}}
## That will create a carousel with all the images from galleries/foo
## This uses bootstrap4 so only works in themes that use it
## Twek as needed for visuals
<%!
import os