Skip to content

Instantly share code, notes, and snippets.

View 724399396's full-sized avatar

Liberty 724399396

View GitHub Profile
@werty1st
werty1st / docker wait nfs systemd
Created July 30, 2019 22:01
docker wait nfs systemd
UPDATE / SOLUTION FOR ANYONE HAVING THIS PROBLEM
1.) Make sure your NFS mount in /etc/fstab does NOT have the "bg" background field
and
2.) Create: /etc/systemd/system/docker.service.d/override.conf
with:
[Unit]
After=nfs.mount
and then
systemctl daemon-reload
@prcaen
prcaen / compress_image.sh
Created May 13, 2015 12:42
Compress all PNG or JPG files of a folder thanks to TinyPNG or TinyJPG API
#!/bin/bash
# Install
# This script need a API key from TinyPNG. See this page: https://tinypng.com/developers
# It also need jq library, which can be install thanks to: `brew install jq`
# Usage
# cd to your folder. This script will compress all PNG or JPG files recursively.
API_KEY="CHANGE_ME"