Skip to content

Instantly share code, notes, and snippets.

View vmassuchetto's full-sized avatar

Vinicius Massuchetto vmassuchetto

View GitHub Profile
@vmassuchetto
vmassuchetto / shotwell-thumbnailer
Last active April 10, 2017 04:12 — forked from benjaoming/shotwell_regenerate_thumbnails.sh
Regenerate Shotwell thumbnails in parallell processing
#!/bin/bash
THUMB_ROOT=~/.cache/shotwell/thumbs
MAX_PROCESSES=4
i=0
sqlite3 ~/.local/share/shotwell/data/photo.db \
"select id||' '||filename from PhotoTable order by exposure_time desc" |
while read id filename; do
@vmassuchetto
vmassuchetto / purge.sh
Last active August 2, 2023 15:07 — forked from adrienbrault/purge.sh
Script to clean a Vagrant box before packaging it. Updated to work with Debian and some additional directories. It's also less general and does not remove any system packages at all.
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
# - https://gist.github.com/adrienbrault/3775253
# Unmount project
umount /vagrant