Skip to content

Instantly share code, notes, and snippets.

View paleite's full-sized avatar
:fishsticks:
TS ❤️

Patrick Aleite paleite

:fishsticks:
TS ❤️
View GitHub Profile
@paleite
paleite / export-styles.md
Last active June 11, 2020 16:45
Export css / styles of HTML Element / Node
@paleite
paleite / download-files-with-range-and-zero-padding.sh
Created May 2, 2018 08:25
Download files with range/seq and zero-padding
for i in $(seq -f "%03g" 1 100)
do
wget http://example.com/assets/pics/myawesomestuff${i}.jpg
done
@paleite
paleite / resize-and-convert.sh
Created April 19, 2018 10:36
Batch resize and convert images with retina-support
#!/bin/bash
if ! brew ls --versions imagemagick > /dev/null; then
# The package is not installed
echo "Installing imagemagick…"
brew install imagemagick
fi
echo "Resizing to @2x…"
mogrify -path . -resize "160x30>" ../originals/*.png
@paleite
paleite / golang_on_rpi.md
Created July 19, 2017 11:18 — forked from konradko/golang_on_rpi.md
Install Golang 1.7 on Raspberry Pi
wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin