Skip to content

Instantly share code, notes, and snippets.

View rkoster's full-sized avatar

Ruben Koster rkoster

View GitHub Profile
@sneal
sneal / fix-ruby.sh
Last active February 10, 2022 15:25
vSphere CPI - Fix Ruby Compilation on Mac
#!/usr/bin/env bash
brew install openssl@1.1
mkdir -p /usr/local/opt/openssl/lib/
ln -s /usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib /usr/local/opt/openssl/lib/
ln -s /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib /usr/local/opt/openssl/lib/
pushd /usr/local/opt/openssl/lib/
ln -s libssl.1.1.dylib libssl.dylib
ln -s libcrypto.1.1.dylib libcrypto.dylib
popd
@h4xnoodle
h4xnoodle / bosh-certs-rotate.txt
Last active October 12, 2021 17:32
Bosh system certificate rotation
On director
Task kick off to rotate some certs
nats, blobstore, system ones
shows 'updating instance' calls but it's not a deploy
maybe say 'configuring instance blah/xxx'
Applying instance configuration acb/123
-- Generating: exchange key pair, new certificates
-- Encrypting and sending certificates
type breakpoint = [ | `lg | `md | `sm | `xl | `xs ];
type breakpointsObj = {
.
"keys": array(string),
"values": {
.
"lg": int,
"md": int,
"sm": int,
@saleem-mirza
saleem-mirza / logger.go
Last active October 22, 2021 19:04
Azure Log Analytics Logger in Golang
package main
import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"net/http"
"time"
"unicode/utf8"
"strconv"
@Amit-PivotalLabs
Amit-PivotalLabs / bosh-links-why-and-how.md
Last active December 10, 2021 21:33
BOSH Links: Why and How
@friegger
friegger / disks.md
Last active November 29, 2017 13:50
Disk with OpenStack and BOSH

Disks with OpenStack and BOSH

How Disks are Used

- separate devices  
  root disk        -> vda -> /  
  ephemeral disk   -> vdb -> /var/vcap/data  
  persistent disk  -> vdc -> /var/vcap/store  
- same device 
@jmathai
jmathai / Elodie-On-Synology.md
Last active September 30, 2021 16:38
Getting Elodie running on a Synology
@g0t4
g0t4 / _README.md
Created November 30, 2016 03:46
Setting up a Docker Hub registry mirror on a Synology NAS

Instructions

  • Save the docker-compose.yml and config.yml in the same directory on one of your volumes on the NAS.
  • SSH in and use docker-compose up -d
  • Test the mirror with curl --head http://NAS-IP:55000
  • Start up docker daemons with the following option or put this in the daemon config file or copy into Docker for Mac/Windows settings. --registry-mirror=http://NAS-IP:55000
  • Pull an image and then check that it is cached in your mirror with curl http://NAS-IP:55000/v2/_catalog
    • or check that a large image isn't slow after the first pull :)

Notes

@DenisIzmaylov
DenisIzmaylov / NOTES.md
Last active November 15, 2019 07:39
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.

Content

@drnic
drnic / rebind-apps.rb
Created May 22, 2015 22:12
Rebind all applications for a Cloud Foundry service
#!/usr/bin/ruby
require 'rubygems'
require 'json'
require 'pp'
# for the #sh helper
require "rake"
require "rake/file_utils"
include FileUtils
## PREREQ: Using CF cli tools, make sure you've logged in as a user (admin) who can see all orgs/spaces