Compressing 4 bundles with Pound (npm view pound) with JavaScript production code from https://redsmin.com
- times: 37720ms 36971ms
- output size: 533Ko, 479Ko, 120Ko, 538Ko
| #!/bin/bash | |
| dir=/root/deadlocks | |
| [ -d $dir ] || mkdir -p $dir | |
| cd $dir || { echo "Could not cd to $dir"; exit 1; } | |
| mysql -be 'show engine innodb status;' \ | |
| | sed 's/\\n/\n/g' \ | |
| | awk '/TRANSACTIONS/{flag=0}flag;/LATEST DETECTED DEADLOCK/{flag=1}' \ | |
| > latest.txt |
Compressing 4 bundles with Pound (npm view pound) with JavaScript production code from https://redsmin.com
| /** | |
| * September 20 night: 1 hour code rush | |
| * @FGRibreau | |
| * | |
| * Requirements | |
| * ------------ | |
| * The aim of this code rush is to enable developers to define a "range hash map" | |
| * in a very expressive way (without if/then/else). | |
| * | |
| * Data-set |
| /** | |
| * Add the following code just after UnderscoreJS declaration to find | |
| * where _.template calls are run against empty templates. | |
| */ | |
| (function(old){ | |
| _.template = function(str, data) { | |
| if(!str){ | |
| console.error("Could not load template", new Error().stack); |
| $('#el').AttributeObserver(attr, callback, [delay]); |
| // | |
| // Usage: require('./pid')("myapp"); | |
| // | |
| var fs = require('fs'); | |
| module.exports = function(appname){ | |
| process.title = appname; | |
| var PID_FILE = "/usr/local/var/run/"+process.title+".pid"; |
| import random | |
| population = 200 | |
| generations = 0 | |
| mutation = 0.01 | |
| alphabet = "abcdefghijklmnopqrstuvwxyz! " | |
| target = "subscribe to howcode!" | |
| output = "" | |
| data = [] |
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2
| var pull = require('pull-stream') | |
| require('ssb-client')(null, { | |
| remote: 'net:wx.larpa.net:8008~shs:DTNmX+4SjsgZ7xyDh5xxmNtFqa6pWi5Qtw7cE8aR9TQ=' | |
| }, function (err, sbot) { | |
| var start = Date.now(), n = 0; | |
| var ts = Date.now() | |
| var _n = 0, l = 0, K = 0 |
| { '@DTNmX+4SjsgZ7xyDh5xxmNtFqa6pWi5Qtw7cE8aR9TQ=.ed25519': 'wx.larpa.net:8008:@DTNmX+4SjsgZ7xyDh5xxmNtFqa6pWi5Qtw7cE8aR9TQ=.ed25519', | |
| '@D0GsAaMyt96Ze3q1YiiuzWhPkyou2fVTUgw8Xr+G7Jo=.ed25519': '9ithub.com:8008:@D0GsAaMyt96Ze3q1YiiuzWhPkyou2fVTUgw8Xr+G7Jo=.ed25519', | |
| '@dBQlwh9Gtr3i5YMOGtIOKtGNVepeu+nyb6KGl1vtOcM=.ed25519': 'sp9.solarpunk.dk:8008:@dBQlwh9Gtr3i5YMOGtIOKtGNVepeu+nyb6KGl1vtOcM=.ed25519', | |
| '@SP4xNZmDsOuRrjDS6NCcmr3xoieXQOMPBQ4TkUHSJ2M=.ed25519': 'sp4.solarpunk.dk:8008:@SP4xNZmDsOuRrjDS6NCcmr3xoieXQOMPBQ4TkUHSJ2M=.ed25519', | |
| '@BzMp3eRNjPUonwRd/0loT3KaRKIMFx7ZOZQE1F+XDug=.ed25519': 'sbot.ktorn.com:8008:@BzMp3eRNjPUonwRd/0loT3KaRKIMFx7ZOZQE1F+XDug=.ed25519', | |
| '@eM4e8pmRiZpeCBitqp6vq3lT8EwC5UjjKuajHbpWnNI=.ed25519': '198.199.97.80:8008:@eM4e8pmRiZpeCBitqp6vq3lT8EwC5UjjKuajHbpWnNI=.ed25519', | |
| '@YXquIbh1OqCCdMuqCO4tSJuYR7RL811CTuu59n7G0pk=.ed25519': 'post.tableflip.io:8008:@YXquIbh1OqCCdMuqCO4tSJuYR7RL811CTuu59n7G0pk=.ed25519', | |
| '@nSCVHJ5OSajcynWgo3Xh0bChZN3e4oV1ooIuFWdxrmg=.ed25519': 'hub.devcontr |