ssh-add -R #deletes all loaded keys
add-add ~/.ssh/myKey #add the desired key
git clone ... #see what happens
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
//knoten.js Netzdiener-Beispiel in DEUTSCHskript | |
var Http = FordereAn('http'); | |
Http.ErstelleDiener(Funktion (Anf, Ant) { | |
Ant.SchreibeKopf(200, { "Inhalts-Art" : "text/blank"}); | |
Ant.Beenden("Hallo Welt \n"); | |
}).höre(1337, "LokalerGastgeber"); | |
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(S) Stuff | |
# Redirect all users except IE 5-8 & Android < 4 to HTTPS | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteCond %{HTTP_USER_AGENT} !MSIE\ [5-8] | |
RewriteCond %{HTTP_USER_AGENT} !Android.*(Mobile)?\ [0-3] | |
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L] |
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
# enable basic auth for dev systems | |
SetEnvIfNoCase Host dev\.host\.com passreq | |
AuthType Basic | |
AuthName "Testing" | |
AuthUserFile htuser | |
Require valid-user | |
Order deny,allow | |
Deny from env=passreq |
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
#!/usr/bin/env node | |
"use strict"; | |
console.log("checking for auto responses"); | |
var fs = require("fs"), | |
exec = require("child_process").exec; | |
var input = ""; |
- Stackvis
- FlameGraph (cloned to
~/tools/FlameGraph
)
perf record -i -g -e cycles:u -- node --perf-basic-prof app.js
- generate some load!
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
"use strict"; | |
var request = require("request"); | |
function fetchKeys(userName) { | |
return new Promise(function (resolve, reject) { | |
request(`https://github.com/${userName}.keys`, function (err, res, body) { | |
if (err) { | |
reject(err); |
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
"use strict"; | |
var util = require("util"); | |
var Writable = require("stream").Writable; | |
var model = require("../db/dynamodb"); | |
/** | |
* Log Stream | |
* |
Problem: Promises resolve only with a single value. If you want to pass on the result of PromiseCall1 to PromiseCall2, you have different options:
You can nest a .then()
for Promise Call 2 and return both value from the scope.
- Nesting makes it harder to read and should be avoided
OlderNewer