1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00

Merge branch 'master' of github.com:sbrl/bin

This commit is contained in:
Starbeamrainbowlabs 2017-06-27 22:25:26 +01:00
commit 689e9516d8
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,5 @@
find . -iname "*.md" -print0 | xargs -0 -I {} sh -c 'cat "{}" | wc -w' | awk '{s+=$1} END {printf "%.0f", s}'
find . -iname "*.JPG" -or -iname "*.png" | sed 's/^/\\"/g; s/$/\\"/g' | paste -d\ - - - - - - | xargs -I {} -n 1 bash -c 'echo montage -geometry 800x600+10+10 -tile 3x2 {} tiles/$RANDOM.jpeg' | sh
ffmpeg -framerate 0.5 -pattern_type sequence -s 1080x720 -start_number 1 -i frame%d.jpeg -vcodec mpeg4 out.mp4
grep -c ^processor /proc/cpuinfo
find . -name "*.svg" | xargs -I {} inkscape -e {}.png {}

View file

@ -11,7 +11,7 @@ echo "> Setting ownership of /usr/local to $USER"
sudo chown -R ${USER}:${USER} /usr/local
echo "> Moving extracted node.js binaries"
if [[ "$(pwd)" -ne "/usr/local/lib" ]]; then
if [ "$(pwd)" != "/usr/local/lib" ]; then
rm -rf /usr/local/lib/${NODEJS} && mv ${NODEJS} /usr/local/lib
fi
@ -20,5 +20,8 @@ sudo rm -f /usr/local/bin/{iojs,node,npm,node-gyp}
ln -s /usr/local/lib/${NODEJS}/bin/node /usr/local/bin/node
ln -s /usr/local/lib/${NODEJS}/bin/npm /usr/local/bin/npm
echo "> Global prefix"
npm config set prefix /usr/local
echo "node.js version: $(node -v), npm version: $(npm -v)"