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
package main | |
// https://play.golang.org/p/hc-EOu8nYJ | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Fetcher interface { |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-16.04" | |
config.vm.network "forwarded_port", guest: 80, host: 9000 | |
#config.vm.boot_timeout = 1200 | |
config.vm.provider "virtualbox" do |vb| |
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
digs :: Integral x => x -> [x] | |
digs 0 = [] | |
digs x = x `mod` 10 : digs (x `div` 10) | |
problem8 :: (Integral a) => a -> a | |
problem8 a = problem8' (digs a) | |
problem8' :: (Integral a) => [a] -> a | |
problem8' xs | |
| inputLength < 13 = 0 |
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"?> | |
<ServiceDefinition name="MultipleSitesInAzure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"> | |
<WebRole name="FirstWebProject"> | |
<Sites> | |
<Site name="Web"> | |
<Bindings> | |
<Binding name="Endpoint1" endpointName="Endpoint1" /> | |
</Bindings> | |
</Site> | |
<Site name="Web2" physicalDirectory="..\SecondWebProject"> |
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
public static void CreatePfxCertFromCerCertAt(string cerLocation, string withPassword) | |
{ | |
var directory = Path.GetDirectoryName(cerLocation); | |
var fileName = Path.GetFileNameWithoutExtension(cerLocation); | |
X509Certificate cert = new X509Certificate(cerLocation); | |
byte[] certData = cert.Export(X509ContentType.Pkcs12, withPassword); | |
System.IO.File.WriteAllBytes(directory + @"\" + fileName + ".pfx", certData); | |
} |
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
<ServiceConfiguration osFamily="2" osVersion="*" serviceName="CloudCore" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration"> | |
<Role name="WebRole"> | |
… | |
</Role> | |
</ServiceConfiguration> |
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
new-eventlog -logname 'domsEventLogs' -source 'app' |
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
powershell Set-ExecutionPolicy RemoteSigned -Force | |
powershell -ExecutionPolicy Unrestricted .\CreateEventLog.ps1 |
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
<WebRole name="WebRole"> | |
<Startup> | |
<Task commandLine="startup.cmd" executionContext="elevated" taskType="simple"> | |
</Task> | |
</Startup> | |
… | |
</WebRole> |
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
def deploy_locally | |
#need to do a local CSPack Command | |
exec "#{STOP_LOCAL_DEV_FABRIC}" | |
exec "#{RUN_LOCAL_DEV_FABRIC}" | |
end |
NewerOlder