Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View germanfr's full-sized avatar
👽
Busy being abducted by aliens

Germán Franco germanfr

👽
Busy being abducted by aliens
View GitHub Profile
@germanfr
germanfr / pkg-options
Last active December 30, 2018 15:59
Development utils for Cinnamon extensions/applets/desklets
# An example of a pkg-options
ASSETS_DIR='icons'
# Relative to the UUID folder
PACKAGE_FILES=(
$(find . -mindepth 2 -name '*.js' | cut -d '/' -f3-)
$ASSETS_DIR/
)
# Files that need to be moved into the UUID folder
EXTRA_FILES=(
'LICENSE'
@germanfr
germanfr / simplify.sh
Created March 25, 2018 20:55
Simplify SVG with scour
#!/bin/sh
# temp file for the output (can't output to self)
tmp_file=$(mktemp)
scour -i "$1" -o $tmp_file \
--remove-metadata \
--enable-id-stripping \
--protect-ids-noninkscape \
--disable-simplify-colors
mv -f $tmp_file "$1"