Skip to content

Instantly share code, notes, and snippets.

View mkalygin's full-sized avatar

Michael Kalygin mkalygin

View GitHub Profile
@mkalygin
mkalygin / output.txt
Created April 5, 2016 11:09
Meteor packages for 'Client modified - refreshing' issue
accounts-base@1.2.2
accounts-google@1.0.6
accounts-oauth@1.1.8
accounts-password@1.1.4
accounts-ui@1.1.6
accounts-ui-unstyled@1.1.8
ahref:dragula@3.5.4
aldeed:autoform@5.8.1
aldeed:collection2@2.9.1
aldeed:collection2-core@1.1.1
@mkalygin
mkalygin / tinypng
Created September 13, 2018 10:36
This simple batch script compresses PNG and JPEG files with TinyPNG API https://tinypng.com. It depends on jq tool https://stedolan.github.io/jq/.
# Usage:
# ./tinypng <path> <path> ...
#
# Upload the files to shrink and then save them locally under the same name.
# Only works with JPEG and PNG. Accepts wildcard path for batch compression.
#
# Uses TinyPNG API: https://tinypng.com/developers/reference.
# Uses TINYPNG_API_KEY environment variable for TinyPNG API key.
# Depends on jq: https://stedolan.github.io/jq/