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
% node middleware.js 130 ↵ | |
Error: Can't set headers after they are sent. | |
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11) | |
at ServerResponse.header (/usr/local/lib/node_modules/express/lib/response.js:718:10) | |
at ServerResponse.send (/usr/local/lib/node_modules/express/lib/response.js:163:12) | |
at ServerResponse.json (/usr/local/lib/node_modules/express/lib/response.js:249:15) | |
at /Users/phil/Desktop/middleware.js:20:6 | |
at Layer.handle [as handle_request] (/usr/local/lib/node_modules/express/lib/router/layer.js:95:5) | |
at trim_prefix (/usr/local/lib/node_modules/express/lib/router/index.js:312:13) | |
at /usr/local/lib/node_modules/express/lib/router/index.js:280:7 |
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
# LOL, gist doesnt like utf8 chars :D | |
hello ☹ more here | |
bufferA length: 17 : "hello 9 more here" | |
bufferB length: 19 : "hello ☹ more here" | |
bufferC length: 19 : "hello ☹ more here" | |
bufferA json {"type":"Buffer","data":[104,101,108,108,111,32,57,32,109,111,114,101,32,104,101,114,101]} | |
bufferB json {"type":"Buffer","data":[104,101,108,108,111,32,226,152,185,32,109,111,114,101,32,104,101,114,101]} | |
bufferC json {"type":"Buffer","data":[104,101,108,108,111,32,226,152,185,32,109,111,114,101,32,104,101,114,101]} |
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/bash | |
# script: time-docker-build.sh | |
# | |
# All command line arguments are passed to docker build command. | |
# | |
# usage: ./time-docker-build.sh | |
# | |
DATE_FORMAT="+%s" |
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
var _vis_opt_queue = window._vis_opt_queue || [], | |
_vis_counter = 0, adobeVar = 'eVar63'; | |
_vis_opt_queue.push(function() { | |
try { | |
if (_vis_counter) { | |
return; | |
} | |
var _vis_combination; | |
s[adobeVar] = ''; |
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
alert('hello'); |
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
////////////////////////////// | |
// Get currently running ops, good for finding out indexing progress | |
db.currentOp().inprog.map(a => a.msg) | |
/* [ | |
undefined, | |
undefined, | |
"Index Build: scanning collection Index Build: scanning collection: 10385246/54469342 19%", | |
] */ | |
////////////////////////////// |
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
# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
indent_style = space |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>com.apple.security.cs.allow-jit</key> | |
<true/> | |
<key>com.apple.security.cs.allow-unsigned-executable-memory</key> | |
<true/> | |
<key>com.apple.security.cs.allow-dyld-environment-variables</key> |
OlderNewer