brew install ffmpeg
brew install imagemagick
// npm.im/rugmi
npm i -g rugmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://nayuki.eigenstate.org/res/calculate-gcd-javascript.js | |
// Returns the GCD of the given integers. Each input must be non-negative. | |
function gcd(x, y) { | |
while (y != 0) { | |
var z = x % y; | |
x = y; | |
y = z; | |
} | |
return x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1 | |
Comment: GPGTools - https://gpgtools.org | |
hQEMA5fHim8EY+8fAQf+Np78QL2SpNKCG3fM6twwgSe/iHsZ3VmDco8oNA3U950d | |
At2CCKz913i/D1sCyfxI0+U0eiMIT+SKadM2+cDtLJVq5BUlUsxximPwJSWDzwY1 | |
zV5JpeAp3hLuMcYa7LdcJXkRElRABrIw5ioLqsTsi8NymEyhpeY6bE15Vx/qA3zu | |
Mmj3/RKmjnUMO2DSvJB2J1+FAAUMWJu39/HCtR08SgPsPy9qo+aT4BXvsFIn58oo | |
rofTkSQhoMQwtliekfouk30sX9ZD750ISz1Il96RDONFQlXKoVESHEwhYuAb/Mw1 | |
ZYdvoSGjBA1h4rlyXj/vbDxeqVMM1GJKbZoJ2OWPFdJLAV5KUy70MyqxdS+RU+Ew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anonymous UUID: 065C32C4-19FB-AB59-04AB-533814968B06 | |
Thu Mar 20 08:09:29 2014 | |
panic(cpu 2 caller 0xffffff7f88795fb0): "GPU Panic: [<None>] 3 3 7f 0 0 0 0 3 : NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff811a499000 0x0a5480a2, D0, P2/4\n"@/SourceCache/AppleGraphicsControl/AppleGraphicsControl-3.4.35/src/AppleMuxControl/kext/GPUPanic.cpp:127 | |
Backtrace (CPU 2), Frame : Return Address | |
0xffffff801348aca0 : 0xffffff8006422fa9 | |
0xffffff801348ad20 : 0xffffff7f88795fb0 | |
0xffffff801348adf0 : 0xffffff7f86e22eab | |
0xffffff801348aeb0 : 0xffffff7f86eec49a | |
0xffffff801348aef0 : 0xffffff7f86eec50a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://www.cyberciti.biz/faq/bash-loop-over-file/ | |
for f in /vol/log/*.gz | |
do | |
echo $f | |
glacier-cmd upload --description "log file $f" --partsize 32 my-vault $f | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://cloud.google.com/products/cloud-storage/ | |
s3-equiv, standard redundancy storage (updated 3/25/2014) | |
storage xfer out | |
amazon: $0.085/gb/mo 1st GB free, $0.12/gb | |
d'host: $0.050/gb/mo $0.05/gb | |
google: $0.026/gb/mo $0.12/gb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://us1.php.net/manual/en/function.compact.php | |
// http://phpjs.org/functions/compact/ | |
var city = 'Los Angeles', state = 'California', country = 'USA', opts; | |
opts = someFn(city, state, country); | |
console.log(opts); | |
// prints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
es = require 'event-stream' | |
createStream = (name) -> | |
write = (item) -> | |
console.log 'read', name, item | |
@queue item | |
end = -> | |
console.log 'end', name | |
@queue null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:Get*", | |
"s3:List*" | |
], | |
"Resource": ["arn:aws:s3:::BUCKET-NAME", "arn:aws:s3:::BUCKET-NAME/*"] |
OlderNewer