Skip to content

Instantly share code, notes, and snippets.

@welly
welly / docker_for_mac_disk_default_size.md
Created December 17, 2018 12:12 — forked from stefanfoulis/docker_for_mac_disk_default_size.md
How to resize Docker for Mac Disk image and set the default size for new images

Set the default size for new Docker for Mac disk images

UPDATE: The instructions here are no longer necessary! Resizing the disk image is now possible right from the UI since Docker for Mac Version 17.12.0-ce-mac49 (21995).

If you are getting the error: No space left on device

Configuring the qcow2 size cap is possible in the current versions:

# my disk is currently 64GiB
### Keybase proof
I hereby claim:
* I am welly on github.
* I am welly (https://keybase.io/welly) on keybase.
* I have a public key ASBeQJLxjeQ1R-Fy1Tu-_nFha_FHXXJZi0XEh8QPSVfP-wo
To claim this, I am signing this object:
@welly
welly / local.services.yml
Created December 13, 2017 12:28
Local development services.yml for Drupal 8
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
cache: false
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
@welly
welly / settings.local.php
Created December 13, 2017 12:26
Local developer settings.php for Drupal 8
<?php
$databases['default']['default'] = array (
'database' => 'drupal',
'username' => 'drupal',
'password' => 'drupal',
'host' => 'mariadb',
'port' => '3306',
'driver' => 'mysql',
'prefix' => '',
Verifying my Blockstack ID is secured with the address 1N7pRXjaxxyrGfJbkXAuo9YS7MTwUwVeYZ https://explorer.blockstack.org/address/1N7pRXjaxxyrGfJbkXAuo9YS7MTwUwVeYZ
@welly
welly / gist:c1210457dc32f56d8a1c9b23fb451354
Created November 20, 2017 17:49
fb cli tool for docker4drupal projects
#!/usr/bin/env bash
# Console colors
red='\033[0;91m'
red_bg='\033[101m'
yellow_bg='\033[43m'
green='\033[0;32m'
green_bg='\033[42m'
yellow='\033[1;33m'
NC='\033[0m'
@welly
welly / docker-compose.yml
Created November 5, 2017 20:38
Docker compose for Docker4Drupal
version: "2"
services:
mariadb:
image: wodby/mariadb:10.1-2.3.5
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot PATH
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory PATH >
Options Indexes FollowSymLinks MultiViews
# PHPENV Setup
<IfModule alias_module>
ScriptAlias /phpenv "/home/vagrant/.phpenv/shims"
<Directory "/home/vagrant/.phpenv/shims">
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mime_module>
The function will not be run in future, but you can run
it yourself as follows:
autoload -Uz zsh-newuser-install
zsh-newuser-install -f
The code added to ~/.zshrc is marked by the lines
# Lines configured by zsh-newuser-install
# End of lines configured by zsh-newuser-install
You should not edit anything between these lines if you intend to
run zsh-newuser-install again. You may, however, edit any other part