Skip to content

Instantly share code, notes, and snippets.

View jbeda's full-sized avatar
💭
E_TOOMANYRESPONSIBILTIES - Poke me on email/slack/twitter for response.

Joe Beda jbeda

💭
E_TOOMANYRESPONSIBILTIES - Poke me on email/slack/twitter for response.
View GitHub Profile
@jbeda
jbeda / hello.xml
Created September 29, 2015 22:46
Minimal OOXML file
<?xml version="1.0" encoding="utf-8"?>
<?mso-application progid="Word.Document"?>
<pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">
<pkg:part pkg:contentType="application/vnd.openxmlformats-package.relationships+xml" pkg:name="/_rels/.rels" pkg:padding="512">
<pkg:xmlData>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId1" Target="word/document.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"/>
</Relationships>
</pkg:xmlData>
</pkg:part>
@jbeda
jbeda / README.md
Last active June 15, 2019 23:39
Shader Functions
@jbeda
jbeda / gist:16191ad2cec4835de40b
Last active May 10, 2019 11:48
IP CIDR math in bash
function increment_ipv4 {
local ip_base=$1
local incr_amount=$2
local -a ip_components
local ip_regex="([0-9]+).([0-9]+).([0-9]+).([0-9]+)"
[[ $ip_base =~ $ip_regex ]]
ip_components=("${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}" "${BASH_REMATCH[3]}" "${BASH_REMATCH[4]}")
ip_dec=0
local comp
for comp in "${ip_components[@]}"; do
@jbeda
jbeda / gist:0fb9748db43ecb14f72f8662516a8047
Last active March 8, 2019 20:33
I love `git commit --fixup`
# Have origin be your fork, upstream is upstream.
$ git remote -v
origin git@github.com:jbeda/kubernetes.git (fetch)
origin git@github.com:jbeda/kubernetes.git (push)
upstream git@github.com:kubernetes/kubernetes.git (fetch)
upstream git@github.com:kubernetes/kubernetes.git (push)
# Make some changes to a bunch of files in a multi commit PR
# Find the commit you want to tweak, copy the hash
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbeda
jbeda / heptio-kubecon-eu-2018.md
Last active June 14, 2018 22:31
Heptio KubeCon EU 2018 Talks
@jbeda
jbeda / registries.md
Created January 26, 2018 22:54
TGIK8s 23 notes
  • Terminology
    • Registry -- the API/service you talk to to push/pull images
    • Repository -- a set of relate container images that share the same name but different tags.
    • Container Image -- a single image that can be used to launch a container. Has multiple "names"
    • Container Image Layer -- implementation detail used to speed up image push/pull/launch
  • Docker Hub
    • One personal registry per user. There are "organizations" that are shared registries. Similar to github model.
  • ACR
    • Registry is called foo.azurecr.io
  • 2 authentication mechanisms:
@jbeda
jbeda / keys.json
Created April 1, 2018 01:53
WhiteFox config
{
"header": {
"Variant": "truefox",
"Generator": "KIICONF 0.2",
"Base": "TheTrueFoxBase",
"Date": "2016-05-30",
"KLL": "0.3c",
"Author": "HaaTa (Jacob Alexander) 2015",
"Version": "0.2",
"Name": "WhiteFox",
@jbeda
jbeda / general notes and links
Created November 17, 2017 22:33
TGIK8s 017 notes
@jbeda
jbeda / Ubuntu 16.04
Created April 6, 2017 01:10
Install prev kubeadm versions
sudo apt-get -y install kubectl=1.5.3-00 kubelet=1.5.3-00 kubernetes-cni=0.3.0.1-07a8a2-00
curl -Lo /tmp/old-kubeadm.deb https://apt.k8s.io/pool/kubeadm_1.6.0-alpha.0.2074-a092d8e0f95f52-00_amd64_0206dba536f698b5777c7d210444a8ace18f48e045ab78687327631c6c694f42.deb
sudo dpkg -i /tmp/old-kubeadm.deb
sudo apt-get install -f
sudo apt-mark hold kubeadm kubectl kubelet kubernetes-cni