Skip to content

Instantly share code, notes, and snippets.

View zoidyzoidzoid's full-sized avatar
🌈
Be the change you wanna see in the world!

B zoidyzoidzoid

🌈
Be the change you wanna see in the world!
View GitHub Profile
@keegancsmith
keegancsmith / github-push-pr
Created October 27, 2017 09:22
git alias to push and open PR view
#!/bin/bash
# Pushes to origin and opens a github compare view of it to speed up PR
# creation.
#
# To install add to $PATH with executable permission and run
#
# git config --global alias.pr '!github-push-pr'
#

We don't use that word here

There are some words which carry with them the baggage of sexism and ableism and so they're words we've chosen to avoid using within our community.

We realise that sometimes SlackBot might get a bit over-eager and correct you when you intentionally chose that word and it is appropriate. That's okay, but we find that in most cases, SlackBot's reminders help us choose our words with intention and promote a more inclusive and welcoming space.

There are plenty of other words that you can use which can still convey the meaning you're looking for. Sometimes it might require a bit of creativity, but trust us – it can be done.

We don't assume you were intentionally being sexist or ableist. Our language is littered with the legacy of unfortunate cultural baggage. You might not even believe that there's a problem with the word you used. That's cool, but we don't use that word here.

@ahmetb
ahmetb / gcrgc.sh
Last active March 10, 2025 21:51
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@ChristianWitts
ChristianWitts / DevOps Primer.md
Last active December 18, 2018 10:30
A Brief List of Introductory Resources for Learning About DevOps
@codefromthecrypt
codefromthecrypt / opentracing-zipkin.md
Last active October 27, 2021 01:44
My ramble on OpenTracing (with a side of Zipkin)

I've had many people ask me questions about OpenTracing, often in relation to OpenZipkin. I've seen assertions about how it is vendor neutral and is the lock-in cure. This post is not a sanctioned, polished or otherwise muted view, rather what I personally think about what it is and is not, and what it helps and does not help with. Scroll to the very end if this is too long. Feel free to add a comment if I made any factual mistakes or you just want to add a comment.

So, what is OpenTracing?

OpenTracing is documentation and library interfaces for distributed tracing instrumentation. To be "OpenTracing" requires bundling its interfaces in your work, so that others can use it to time distributed operations with the same library.

So, who is it for?

OpenTracing interfaces are targeted to authors of instrumentation libraries, and those who want to collaborate with traces created by them. Ex something started a trace somewhere and I add a notable event to that trace. Structure logging was recently added to O

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@keegancsmith
keegancsmith / k8s-patch.sh
Created October 28, 2016 07:58
A way to more easily bulk update `k8s` specs, requires modification for your use case. Thought I'd share, since there is no nice way in k8s to partially update a bunch of resources. In this case I wanted to update resource constraints of most our deployments. `find some-magic-here | xargs -n1 ./k8s-patch.sh force`
#!/bin/bash
# Use this script as an example of how to patch k8s resources. It currently
# patches the resource constraints.
set -e
ns=$(cat "$2" | jq -r '.metadata.namespace')
name=$(cat "$2" | jq -r '.kind + "/" + .metadata.name')
patch=$(cat "$2" | jq -c '{spec: {template: {spec: {containers: [.spec.template.spec.containers[] | {name: .name, resources: .resources}]}}}}')
// Compile with:
// GOOS=linux go build -a --ldflags '-extldflags "-static"' -tags netgo -installsuffix netgo -o dns-example main.go
//
// Run on Kubernetes. Example resolv.conf
//
// # /etc/reslov.conf
// search default.svc.cluster.local svc.cluster.local cluster.local google.internal c.hightowerlabs.internal
// nameserver 10.179.240.10
// options ndots:5
//
@annalee
annalee / sample-slack-coc.md
Last active November 7, 2024 19:10
A sample code of conduct for social slack teams.

[SLACKNAME] Code of Conduct

Welcome!

[BRIEF DESCRIPTION OF THE SLACK AND ITS PURPOSE]

The current admins are:

  • [NAMES]