This file contains hidden or 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.Security.Cryptography | |
var str = “William Holroyd”; | |
var byt = Encoding.UTF8.GetBytes(str); | |
var hash = MD5.Create().ComputeHash(byt); | |
var guid = new Guid(hash); | |
// guid will always have a value of "ead7ab16-6d5b-0fa0-73b7-9fe85b675f83" | |
// for the input of “William Holroyd” provided above. This value will always |
This file contains hidden or 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'?> | |
<tomcat-users> | |
<role rolename="tomcat"/> | |
<user username="tomcat" password="tomcat" roles="tomcat,manager-gui,manager-status,manager-jmx,manager-script"/> | |
</tomcat-users> |
This file contains hidden or 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
# Add Oracle VirtualBox Repository | |
wget -q -O - http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc | sudo apt-key add - | |
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty non-free contrib" >> /etc/apt/sources.list.d/virtualbox.org.list' | |
# Add Google Chrome Repository | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
# Add Spotify Repository | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 |
This file contains hidden or 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
<html> | |
<body onload="GetPromo()"> | |
<SCRIPT LANGUAGE="JavaScript"> | |
function GetPromo() { | |
var p = "4650"; | |
var a = "47002"; | |
var b = Math.random().toString().substr(3, 5); | |
var c = Math.random().toString().substr(7, 1);a | |
prompt("Enjoy your coupon! :)", a + b + p + c); |
This file contains hidden or 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
<html> | |
<body onload="GetPromo()"> | |
<SCRIPT LANGUAGE="JavaScript"> | |
function GetPromo() { | |
var p = "24682"; | |
var a = "47000"; | |
var b = Math.random().toString().substr(3, 4); | |
var c = Math.random().toString().substr(7, 1); | |
prompt("Enjoy your coupon! :)", a + b + p + c); |
This file contains hidden or 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
namespace Foundation.Data.Sql.EntityFramework | |
{ | |
using System; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using Foundation.Core.Abstractions; | |
using Foundation.Infrastructure.Common.Data; | |
public class FoundationContext : DbContext |
This file contains hidden or 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
X509Store store = new X509Store(@"\\machinename\MY", StoreLocation.LocalMachine); |
This file contains hidden or 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
// ### The Root application | |
// ./index.js <- lives here | |
// ./views/index.hbs <- the view | |
// ./catsApp <- child app | |
var express = require('express'); | |
var app = express(); | |
var exphbs = require('express-handlebars'); | |
app.engine('hbs', exphbs({defaultLayout: 'single', extname: '.hbs'})); | |
app.set('view engine', 'hbs'); |
This file contains hidden or 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
[wholroyd@wholroyd-fedora fake-dnx]$ docker build . | |
Sending build context to Docker daemon 2.561 MB | |
Sending build context to Docker daemon | |
Step 0 : FROM microsoft/aspnet | |
---> 3ad193895d0a | |
Step 1 : COPY /src/fake-dnx /app | |
---> Using cache | |
---> 677cc7cb7b1a | |
Step 2 : WORKDIR /app | |
---> Using cache |
This file contains hidden or 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
[wholroyd@wholroyd-fedora fake-dnx]$ docker run -i -t a97703ea76ed | |
System.IO.FileNotFoundException: Could not load file or assembly 'Kestrel' or one of its dependencies. The system cannot find the file specified. | |
File name: 'Kestrel' | |
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00000] in <filename unknown>:0 | |
at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence) | |
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <filename unknown>:0 | |
at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName) | |
at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <filename unknown>:0 | |
at Microsoft.AspNet.Hosting.Server.ServerLoader.LoadServerFactory (System.String assemblyName) [0x00000] in <filename unknown>:0 | |
at Microsoft.AspNet.Hosting.Internal.HostingEngin |
OlderNewer