Skip to content

Instantly share code, notes, and snippets.

View digitaldonkey's full-sized avatar

Thorsten Krug digitaldonkey

View GitHub Profile
@awmichel
awmichel / README.md
Last active February 1, 2023 19:20
Docker Machine OSX Autostart
View README.md

Docker Machine OSX Autostart

This is a simple launchd config that will start your default docker-machine on startup. You can customize the machine that is started by updating lines 11 and 16 with the correct machine name.

Install

  1. Copy the file com.docker.machine.default.plist below to ~/Library/LaunchAgents/com.docker.machine.default.plist.
  2. Run the following in a terminal: launchctl load ~/Library/LaunchAgents/com.docker.machine.default.plist
  3. Profit!
@golderweb
golderweb / curl-no-ipv6.php
Last active January 21, 2024 19:16
Wordpress (MU-)Plugin: cURL disable IPv6
View curl-no-ipv6.php
<?php
/**
* @package curl-no-ipv6
* @version 1.0
* @since 1.0
*/
/*
Plugin Name: cURL no IPv6
Plugin URI: https:
Description: On systems where cURL is compiled with IPv6, Requests to Wordpress Update API will timeout since cURL tries it about 15s. Since the timeout defined by WordPress is 3s/5s/10s this will breake the Updater. This Plugin simply forces cURL to use IPv4 only.