Skip to content

Instantly share code, notes, and snippets.

View Daandelange's full-sized avatar

Daan de Lange Daandelange

View GitHub Profile
@Daandelange
Daandelange / getkirby_mono_to_multi_lang.sh
Created February 14, 2018 19:36
Getkirby: Automatically rename content.txt files for multilang websites
# Renames any .txt file to .fr.txt
# Change the lang.code according to your lang.
# I use it when switching monolang sites to multilang.
# cd to /your/site/content/
# Test drive for renaming ()
find ./ -type f -exec rename -n 's/\.txt$/.fr.txt/' '{}' \;
# Once you're sure, re-run without -n
@Daandelange
Daandelange / syncWithRpi1.sh
Created January 27, 2016 19:56
A simple script to sync your VM guest host's RPI_ROOT folder for cross compiling OpenFrameworks with your rpi1, for @jvcleave's guide.
# This script syncs the /usr folder with your VM guest´s RPI_ROOT/usr
# Make sure to read @jvcleave´s RPI OpenFrameworks cross compiling guide.
# https://forum.openframeworks.cc/t/cross-compiler-for-of-0-9-0-jessie-arm6-rpi1/21336
#
# Execute this from your RPI_ROOT folder.
#
# Useful commands related to cross compiling openframeworks (reminder)
# sudo /etc/init.d restart | stop | start | status
# sudo mount -a
# sudo umount /media/Data