$ sudo -i
# vim /etc/systemd/system/disable-transparent-huge-pages.service
# systemctl enable disable-transparent-huge-pages
# systemctl start disable-transparent-huge-pages
# systemctl status disable-transparent-huge-pages
# cat /sys/kernel/mm/transparent_hugepage/enabled
# cat /sys/kernel/mm/transparent_hugepage/defrag
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Cognito Stack | |
Parameters: | |
AuthName: | |
Type: String | |
Description: Unique Auth Name for Cognito Resources | |
Resources: | |
# Creates a role that allows Cognito to send SNS messages |
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
!function(f) { | |
function e(a) { | |
if(n[a])return n[a].exports; | |
var u=n[a]= { | |
exports: {} | |
, | |
id: a, loaded: !1 | |
} | |
; | |
return f[a].call(u.exports, u, u.exports, e), |
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
$ git diff lib/express/plugins/body-decoder.js | |
diff --git a/lib/express/plugins/body-decoder.js b/lib/express/plugins/body-decoder.js | |
index 1d67ff4..4ec448c 100644 | |
--- a/lib/express/plugins/body-decoder.js | |
+++ b/lib/express/plugins/body-decoder.js | |
@@ -22,7 +22,7 @@ exports.BodyDecoder = Plugin.extend({ | |
var request = event.request | |
if (request.header('Content-Type') && | |
request.header('Content-Type').includes('application/x-www-form-urlencoded')) | |
- request.params.post = queryString.parseQuery(request.body) |
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
'uuid': { | |
'name': 'String', | |
'statement_descriptor': 'String', | |
'persona': 'String', | |
'created': timestamp, | |
'interval': timestamp[day/month/year], | |
'interval_count': 1, | |
'livemode': boolean, | |
'trial_period_days': int | |
'hourly': boolean |
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
"data": [ | |
{ | |
"id": "1hr-test-gbp", | |
"object": "plan", | |
"amount": 1000, | |
"created": 1482085325, | |
"currency": "gbp", | |
"interval": "month", | |
"interval_count": 1, | |
"livemode": true, |
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
/** | |
* cubeD3 Create a rotating cube with D3.js: | |
* | |
* @param id div id tag starting with # | |
* @param width width of the grid in pixels | |
* @param height height of the grid in pixels | |
* @param square | |
*/ | |
function cubeD3(id, width, height) | |
{ |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script> | |
<div id="viz"></div> | |
<div id="scale">scale: <span>240</span></div> | |
<script type="text/javascript"> |
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
✖ 26 of 130 tests failed: | |
1) Default Plugins relation should allow missing relationship when minItems=0: | |
Error: timeout of 2000ms exceeded | |
at null.<anonymous> (/Users/khinester/Sandboxes/zukai/node_modules/mocha/lib/runnable.js:167:14) | |
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15) | |
2) Default Plugins relation should not allow missing relationship when minItems=1: | |
Error: timeout of 2000ms exceeded | |
at null.<anonymous> (/Users/khinester/Sandboxes/zukai/node_modules/mocha/lib/runnable.js:167:14) |