Skip to content

Instantly share code, notes, and snippets.

@fiedl
fiedl / manually-install-formula-yabai-v3.2.0.md
Last active Nov 25, 2020
manually Install homebrew formula: yabai v3.2.0
View manually-install-formula-yabai-v3.2.0.md

Problem

For some reason, homebrew has stopped supporting direct installs of formulae.

I've tried to install a specific version of a package for testing purposes. https://github.com/koekeishiya/yabai/issues/637

[2020-11-25 20:32:02] fiedl@fiedl-mbp ~
▶ brew install https://raw.githubusercontent.com/koekeishiya/homebrew-formulae/7a2b00e1c94793bf5bee6fc68b2449ec8f7213b5/yabai.rb
View ex2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fiedl
fiedl / 01-README.md
Last active Feb 17, 2020
Before updating to Catalina, export spark scripts
View 01-README.md

Before updating to macOS Catalina, which drops support for 32-bit apps, I'm exporting my spark scripts. I'm not sure whether spark will be available as 64-bit version. https://github.com/Jean-Daniel/Spark

@fiedl
fiedl / radicate.md
Last active Jul 8, 2019
Calender-Server Replacement for macOS
View radicate.md
@fiedl
fiedl / python-hates-me.md
Last active Mar 6, 2019
Python hates me. It's mutual.
View python-hates-me.md

Python apparently does hate me.

  • In order to import a library from a sibling folder, e.g. ../lib/test.py, I need import sys; sys.path.append('..'). Otherwise, from ..lib import test will fail.
  • What is the naming convention regarding CamelCase or underscore_case? PEP8 reads: "Function names should be lowercase, with words separated by underscores as necessary to improve readability". Good. Why then this mess: import logging; logging.basicConfig(level = logging.INFO)? Why not logging.basic_config or logging.config or logging.level = logging.INFO? I'm assuming logging.INFO is a constant and therefore CAPITAL.
@fiedl
fiedl / README.md
Last active Nov 28, 2018
macOS server replacement
View README.md

macOS Server discontinues calendar and contacts services.

https://support.apple.com/en-us/HT208312

Prepare for changes to macOS Server 5.7.1

As hosted services have become widespread—and the need to keep software up to date is more important than ever—Apple is making some changes to macOS Server.

Learn about current and future support

Apple continues to develop and support macOS Server, which includes Open Directory, Profile Manager, and Xsan management. The most popular server features—Caching Server, File Sharing Server, and Time Machine Server—have been bundled with every installation of macOS High Sierra since its release in fall 2017, so that even more customers have access to these essential services at no extra cost.

View beamer-slides-with-notes.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fiedl
fiedl / mac-os-server-not-accessible.md
Last active Sep 10, 2017
macOS Server not accessible
View mac-os-server-not-accessible.md

macOS Server not accessible

Issue

  • No port of the server application can be reached.

Diagnose

  • The server system log keeps repeating:
View docker-cleanup.md
View mac-os-port-80.md

On macOS, I'd like to use docker-compose on port 80. But, having the Mac OS Server App installed, this app already blocks port 80.

Which services are listening on port 80?

sudo lsof -i ':80'

Source: https://superuser.com/a/598287/273249