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
--- 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:.\$(
@felixbuenemann
felixbuenemann / base58uid.js
Last active September 11, 2023 13:53
Generate random 10 byte base58 identifiers
var min = 7427658739644928; // min int value that is 10 bytes long in base58
var max = 9007199254740992; // max safe integer (exclusive), also 10 bytes
var alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'; // base58
var base = alphabet.length;
function encode(num) {
var mod, str = '';
while (num >= base) {
mod = num % base;
Index: configure.ac
===================================================================
--- configure.ac (revision 15975)
+++ configure.ac (revision 15976)
@@ -353,6 +353,7 @@
AC_DEFINE([DARWIN_10_9], 100900, [DARWIN_VERS value for Mac OS X 10.9])
AC_DEFINE([DARWIN_10_10], 101000, [DARWIN_VERS value for Mac OS X 10.10])
AC_DEFINE([DARWIN_10_11], 101100, [DARWIN_VERS value for Mac OS X 10.11])
+ AC_DEFINE([DARWIN_10_12], 101200, [DARWIN_VERS value for macOS 10.12])
@felixbuenemann
felixbuenemann / ghc.rb
Last active April 21, 2021 23:54
Homebrew formula for official ghc 7.10.2 binaries
class Ghc < Formula
desc "Glorious Glasgow Haskell Compilation System"
homepage "https://haskell.org/ghc/"
url "https://downloads.haskell.org/~ghc/7.10.2/ghc-7.10.2-x86_64-apple-darwin.tar.xz"
sha256 "ef0f00885096e3621cec84a112dfae050cf546ad39bdef29a7719407c6bc5b36"
def install
system "./configure", "--prefix=#{prefix}"
ENV.deparallelize { system "make", "install" }
#!/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)
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"
#
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