I hereby claim:
- I am drakemccabe on github.
- I am drakemccabe (https://keybase.io/drakemccabe) on keybase.
- I have a public key ASBbfeixTsWe4KnumApD8p7sI0c9aQOD5wy4fOtYAUw4aAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome tmp=`date +%Y%m%d%H%M%S`;open -na "Google Chrome" --args --user-data-dir=/tmp/$tmp --no-first-run --disable-extensions --safe-plugins --disable-default-apps --disable-save-password-bubble --disable-session-storage --disable-sync --disable-zero-browsers-open-for-tests --lang=en-US |
| wrapper.aggregate = function(startDate, endDate) { | |
| var model = mongoose.model('Action'); | |
| model.aggregate([ | |
| {'$match': { cd: { '$gt': startDate, '$lt': endDate }, actionType: 'Click' }}, | |
| {'$group': { _id: '$ad', clk: { '$sum': '$value' }}} | |
| ]).exec(function(err, results) { | |
| console.log(results); | |
| }); | |
| } |
| # call fucntion in vcl_res | |
| # Throw error on spam bot comment attempt | |
| # if first letter of comment ID is not numeric, throw 404. | |
| sub clean_comment { | |
| if (req.url ~ "comment\/reply\/\d*\/\D") { | |
| error 404 "Page Not Found"; | |
| } | |
| } | |
| # remove all inline style tags | |
| (style=")([a-zA-Z0-9:;\.\s\(\)\-\,]*)(") | |
| #remove all self closing tags and replace with correct tag | |
| # find | |
| <\s*([^\s>]+)([^>]*)/\s*> | |
| # replace | |
| <$1$2></$1> |
| # Get varnish version | |
| varnishd -V | |
| # most frequent cookies | |
| varnishtop -i RxHeader -I Cookie | |
| # continually updated list of frequent URLs | |
| varnishtop -i RxURL | |
| # most frequent UA strings |
| # Download + install mongodb (centOs) | |
| https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ | |
| Create a /etc/yum.repos.d/mongodb-org-3.2.repo file | |
| [mongodb-org-3.2] | |
| name=MongoDB Repository | |
| baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ | |
| gpgcheck=1 | |
| enabled=1 |
| ffmpeg -i input.mp4 -vf "scale=in_color_matrix=bt601:out_color_matrix=bt709" output.mp4 |