Skip to content

Instantly share code, notes, and snippets.

View EugenMayer's full-sized avatar
🏠
Working from home

Eugen Mayer EugenMayer

🏠
Working from home
View GitHub Profile
FROM nabeken/docker-volume-container-rsync
RUN mkdir -p /var/www
ENV VOLUME /var/www
VOLUME /var/www
require 'docker-compose'
threads = []
project_paths = %w(/project/path1 /project/path2 /project/path3 /project/path)
project_paths.each do |path|
threads.push Docker::Compose::Session.new(dir:compose_base_path1)
end
@EugenMayer
EugenMayer / debian
Created October 3, 2016 21:31
php5.5-igbinary missing
/ cat /etc/debian_version
8.6
Same problem here, though, it have some other informations. I upgraded 2 ubuntu 14 LTS boxes from 8.5 to 8.7.(1) going as 8.5->8.6->8.7.0->8.7.1 ... the first box has the issue described here, the second does not.
I compared basically any possible configuration, `zmprov gacf | grep -i proxy` only has the difference in the zimbraReverseProxyUpstreamLoginServers as expected, nothing else.
Anything else seems configured exactly the same. So
/opt/zimbra/libexec/zmproxyconfig -e -w -o -a 8080:80:8443:443 -x https -H `zmhostname`
But the working ( 2nd ) box has https://, the first broken box has http:// - both using ips not hostnames. As described just changing the schema to https fixes it.
Then i found one difference which can matter: `zmprov -garpb`
@EugenMayer
EugenMayer / fix_d4m.sh
Last active April 17, 2017 12:32
fix_d4m.sh
#!/bin/bash
set -e
cd ~/Library/Containers/com.docker.docker/Data/database
git reset --hard
echo -n "Current full-sync-on-flush setting: "
P=~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/disk/full-sync-on-flush
if [ -f $P ]; then
echo "file exists"
#!/bin/bash
set -e
# compile
echo compiling ACPI tables
cd ./ACPI-Tables && iasl -dl -da SS*.aml DSDT.aml && cd ..
# patch 1 - DSDT name
# patch 2 - rename XHCI to XHC
#!/bin/bash
set -e
#### READ THIS
# put this script to /usr/loca/bin/install_zimbra_le and make it executable
# expected letsencrypt to be in /etc/ssl/letsencrypt
# setup certbot or acme.sh to pull your certificates from letsencrypt using this command
# ./acme.sh --issue --dns dns_cf --dnssleep 25 -d $DOMAIN --reloadcmd "/usr/loca/bin/install_zimbra_le"
version: "2"
services:
test:
image: alpine
volumes:
- /Users/em/test:/var/www:cached
command: "time dd if=/dev/zero of=/var/www/test.dat bs=1024 count=100000"
@EugenMayer
EugenMayer / fix_d4m.sh
Created July 27, 2017 19:49
fix docker-for-mac performance
#!/bin/bash
set -e
cd ~/Library/Containers/com.docker.docker/Data/database
git reset --hard
echo -n "Current full-sync-on-flush setting: "
P=~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/disk/full-sync-on-flush
if [ -f $P ]; then
echo "file exists"
default['grub']['config']['settings']['cmdline_linux']='quiet net.ifnames=0 biosdevname=0'
default[:kontextwork][:base][:serial_console] = true