Skip to content

Instantly share code, notes, and snippets.

View felixbuenemann's full-sized avatar
💭
I may be slow to respond.

Felix Bünemann felixbuenemann

💭
I may be slow to respond.
View GitHub Profile
apiVersion: kops.k8s.io/v1alpha2
kind: Cluster
metadata:
creationTimestamp: "2018-06-15T09:48:03Z"
generation: 14
name: k8s-production.example.org
spec:
api:
dns: {}
authorization:
class Go < Formula
desc "Open source programming language to build simple/reliable/efficient software"
homepage "https://golang.org"
license "BSD-3-Clause"
# stable do
# url "https://golang.org/dl/go1.15.5.src.tar.gz"
# mirror "https://fossies.org/linux/misc/go1.15.5.src.tar.gz"
# sha256 "c1076b90cf94b73ebed62a81d802cd84d43d02dea8c07abdc922c57a071c84f1"
#
--- openssl-1.0.2u/Configure 2019-12-20 14:02:41.000000000 +0100
+++ openssl-1.0.2u/Configure 2020-11-22 16:23:13.000000000 +0100
@@ -650,7 +650,9 @@
"darwin-i386-cc","cc:-arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:".eval{my $asm=$x86_asm;$asm=~s/cast\-586\.o//;$asm}.":macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
"debug-darwin-i386-cc","cc:-arch i386 -g3 -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
"darwin64-x86_64-cc","cc:-arch x86_64 -O3 -DL_ENDIAN -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:".eval{my $asm=$x86_64_asm;$asm=~s/rc4\-[^:]+//;$asm}.":macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(
OMC VOTE: macOS ARM64 Support in OpenSSL 1.1.1
Background to the vote:
Apple has recently released new Mac computers that are powered by their own
ARMv8 compatible SoC called the Apple Silicon M1 or short M1.
This chip is an evolution of their previous ARM chips in the A series, most
similar to the A14 used in the latest generations of iPhones and iPads, but
with a chip configuration like the iPad Pro.
#!/bin/sh
# Load Google Drive File Stream and Kernel Extension
# on macOS Big Sur 11.1 Beta
set -e
bundleid=com.google.drivefs
app=`mdfind "kMDItemCFBundleIdentifier == '$bundleid'"`
if [ "$app" = "" ]; then
echo "Google Drive File Stream.app not found" >/dev/stderr
exit 1
fi
#!/bin/sh
# pkg-remove removes macOS packages using the receipt
# Copyright: 2020 by Felix Buenemann
# License: MIT
set -eo pipefail
volume=/
dryrun=false
force=false
for arg in "$@"; do
case $arg in
package main
import (
"crypto/md5"
"fmt"
"os"
)
func check(e error) {
if e != nil {
package main
import (
"crypto/md5"
"fmt"
"os"
)
func check(e error) {
if e != nil {
#!/usr/bin/env python3
#
# plexwatcher.py - parse watcher events to partially scan plex libraries
# relevant paths and sections are discovered directly from the plex database
#
# Author: Felix Buenemann - https://github.com/felixbuenemann
import os, sys, re, sqlite3, subprocess
from os.path import dirname
# reload(sys)
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body, #openseadragon1 {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;