Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Felix Bünemann felixbuenemann

💭
I may be slow to respond.
View GitHub Profile
View openssl-1.0.2u-darwin-arm64.patch
--- 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:.\$(
View omc_vote_darwin64-arm64_support.txt
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.
View gdfsload
#!/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
View pkg-remove
#!/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
View foo.go
package main
import (
"crypto/md5"
"fmt"
"os"
)
func check(e error) {
if e != nil {
View foo.go
package main
import (
"crypto/md5"
"fmt"
"os"
)
func check(e error) {
if e != nil {
View plexwatcher.py
#!/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)
View openseadragon-imgix-poc.html
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body, #openseadragon1 {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
View aus_driver_amazon_s3_exception_typo3_8.7.22.txt
#0 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/Middleware.php(79): Aws\Api\Validator->validate('HeadObject', Object(Aws\Api\StructureShape), Array)
#1 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(354): Aws\Middleware::Aws\{closure}(Object(Aws\Command), NULL)
#2 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(377): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#3 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(311): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#4 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(330): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#5 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/Middleware.php(55): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL)
#6 typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/SSECMiddleware.php(59): Aws\Middlew
View apache-solr-proxy-cors.conf
<VirtualHost *:443>
ServerName solr.example.org
DocumentRoot /var/www/html
<LocationMatch "^/(solr/core_[a-z]{2,4}/select)$">
Order allow,deny
Allow from 127.0.0.1
Satisfy any
AuthType Basic
AuthName Restricted
You can’t perform that action at this time.