Skip to content

Instantly share code, notes, and snippets.

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

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. koekeishiya/yabai#637

[2020-11-25 20:32:02] fiedl@fiedl-mbp ~
▶ brew install https://raw.githubusercontent.com/koekeishiya/homebrew-formulae/7a2b00e1c94793bf5bee6fc68b2449ec8f7213b5/yabai.rb
@fiedl
fiedl / ex2.ipynb
Created May 6, 2020 13:19
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 February 17, 2020 23:13
Before updating to Catalina, export spark scripts

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 July 8, 2019 19:48
Calender-Server Replacement for macOS
@fiedl
fiedl / python-hates-me.md
Last active March 6, 2019 16:44
Python hates me. It's mutual.

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 February 4, 2022 04:22
macOS server replacement

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. >

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 September 10, 2017 20:18
macOS Server not accessible

macOS Server not accessible

Issue

  • No port of the server application can be reached.

Diagnose

  • The server system log keeps repeating:

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