Skip to content

Instantly share code, notes, and snippets.

View vanhumbeecka's full-sized avatar
🎯
Focusing

vanhumbeecka

🎯
Focusing
View GitHub Profile
@adriansr
adriansr / svg2icns.sh
Created February 19, 2018 15:21
Convert SVG file to macOS icon (icns) format
#!/bin/sh -x
set -e
SIZES="
16,16x16
32,16x16@2x
32,32x32
64,32x32@2x
128,128x128
@mistadikay
mistadikay / npm-install.sh
Created October 17, 2018 12:35
Speedup node modules installation if cache exists on s3
#!/usr/bin/env bash
NPM_TARBALL=node_modules.tgz
NPM_MD5SUM_FILE=package-lock.md5sum
NPM_CACHE_DIR=${HOME}/.cache/YOUR_PROJECT/npmtarball
S3_DIR=s3://YOUR_BUCKET/YOUR_PROJECT
function shouldInstallFromCache() {
printf "\nChecking the cache\n"
[[ ! -e $NPM_CACHE_DIR ]] && mkdir -p $NPM_CACHE_DIR