Skip to content

Instantly share code, notes, and snippets.

View junelsolis's full-sized avatar
🌀
Working with image data

Junel Solis junelsolis

🌀
Working with image data
View GitHub Profile
@junelsolis
junelsolis / convert.py
Created December 20, 2021 03:45
Convert large tiff to tiled pyramidal OME-TIFF
# Requires libvips 8.12
import pyvips
image = pyvips.Image.new_from_file('input.tif')
image.tiffsave('ouput.ome.tif', tile=True, tile_width=512, tile_height=512, pyramid=True, subifd=True, compression='jp2k')
@junelsolis
junelsolis / docker-compose.yml
Last active February 13, 2020 10:02
Docker Compose for Mautic terminated with an NGINX reverse proxy
version: '3.6'
services:
mautic:
image: mautic/mautic
links:
- db:mysql
restart: always
ports:
@junelsolis
junelsolis / docker-compose.yml
Last active February 13, 2020 07:45
Docker-based NGINX Well-Known Server with reverse proxy
version: '3.6'
services:
web:
image: nginx:latest
restart: always
volumes:
- "./www:/usr/share/nginx/html:ro"
ports:
- "127.0.0.1:6500:80"
@junelsolis
junelsolis / INSTRUCTIONS
Last active November 8, 2018 08:19
Connecting Wordpress Docker container with MariaDB on Host
mysql -u root -p -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root_password'; FLUSH PRIVILEGES;"