Skip to content

Instantly share code, notes, and snippets.

View jeroenvermeulen's full-sized avatar

Jeroen Vermeulen jeroenvermeulen

View GitHub Profile
@jeroenvermeulen
jeroenvermeulen / convertImages.sh
Last active September 25, 2020 08:58 — forked from peterjaap/convertImages.sh
Convert images to smaller size and lower quality to reduce file sizes for Magento's original product photos
#!/bin/bash
# convertImages.sh
# Authors: Peter Jaap Blaakmeer (elgentos.nl) & Jeroen Vermeulen (magehost.pro)
# https://gist.github.com/peterjaap/7080989
# https://gist.github.com/jeroenvermeulen/feb819799dea3d74ae9c
NEWQUALITY=90
NEWWIDTH=2000
DIRECTORY=$HOME/httpdocs/media/catalog/product/
@jeroenvermeulen
jeroenvermeulen / lndupes.py
Last active July 24, 2024 07:20 — forked from filipenf/lndupes.py
Reads fdupes(-r1) output and create relative symbolic links for each duplicate
#!/usr/bin/env python
# source: https://gist.github.com/filipenf/e9901883d66b8da65c151cf674e5f2a9
#
# Reads fdupes(-r -1) output and create relative symbolic links for each duplicate
# usage: fdupes -r1 . | ./lndupes.py
import os
from os.path import dirname, relpath, basename, join
import sys
import shlex
@jeroenvermeulen
jeroenvermeulen / Dockerfile
Last active July 11, 2023 16:07 — forked from misteliy/Dockerfile
XFCE Virtual desktop using Chrome Remote Desktop
#
# Example build command: docker build --pull --tag DOCKERHUB-USERNAME/chrome-remote-desktop:ubuntu-xfce --build-arg CODE=4/0AZE....jyuw .
#
FROM amd64/ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
# INSTALL XFCE AND OTHER PACKAGES
RUN apt-get update && apt-get upgrade --assume-yes
RUN apt-get install --assume-yes --fix-missing sudo wget apt-utils xvfb xfce4 xbase-clients \
desktop-base vim python3-psutil psmisc python3-psutil xserver-xorg-video-dummy \
libutempter0 epiphany-browser