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
// using Newtonsoft.Json.Linq; | |
private String VCAPServices() { | |
if (Environment.GetEnvironmentVariable("VCAP_SERVICES") == null) | |
{ | |
return @" { | |
""user-provided"": [ | |
{ | |
""credentials"": { | |
""uri"": ""http://localhost:13471"" |
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
/* | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json.Linq; | |
*/ | |
private string ServivceURL() { | |
return "http://umbel-beverage-service.cfapps.pez.pivotal.io"; | |
} |
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 crypto = require('crypto'); | |
console.log(dotnet_membership_password_hash("welcome1", "qkI2wRPSW7Y4ArqWkfHm5g==")); // W25/z6MAywBax7DITuKgSmsXua4= | |
function dotnet_membership_password_hash(pass, salt) | |
{ | |
var bytes = new Buffer(pass || '', 'ucs2'); | |
var src = new Buffer(salt || '', 'base64'); | |
var dst = new Buffer(src.length + bytes.length); | |
src.copy(dst, 0, 0, src.length); |
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
Contributing to Open Source | |
=========================== | |
First Rule: You can find the time | |
- It doesn't take much | |
- Weekends are good | |
- Find what other time you're wasting | |
- Try something that's _not_ your day job | |
Second Rule: What to contribute to? |