Skip to content

Instantly share code, notes, and snippets.

View atombender's full-sized avatar

Alexander Staubo atombender

View GitHub Profile
@j33ty
j33ty / fluxctl-cheatsheet.sh
Created May 28, 2020 12:10
fluxctl cheatsheet
# fluxctl cheatsheet
## Use different namespace than default for flux daemon.
export FLUX_FORWARD_NAMESPACE={kube_ns}
fluxctl --k8s-fwd-ns={kube_ns} list-workloads
## List all workloads
fluxctl list-workloads
## List all workloads in all namespaces
@macnibblet
macnibblet / poc.go
Last active January 30, 2019 00:44
package handler
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
"sync"
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active June 25, 2024 07:29
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@josephmosby
josephmosby / gist:4227884
Created December 6, 2012 20:09
Week One of Ruby on Rails: RSpec Gripe #1

This will either be the first of a series of posts on "how I became a Ruby convert" or "why Ruby is the worst language on the planet."

I've spent the last two years of my life working with Python and its popular web frameworks (Django, webapp2, and Flask). Python was the first language I ever learned, so I'm admittedly a bit biased toward the "Pythonic" way of doing things. Python favors readability of code, but it also favors exactitude. I can push bits around in memory with the same ease as a GET request. The entire community feels like it's made up of scientists who want to support that - so libraries follow the Pythonic way of doing things. Boolean tests are written the same way in each library as they are in the core Python language.

So you can imagine my frustration when I start working with Ruby on Rails... and specifically, RSpec.

Let's take a look at a webapp2 test:

import unittest