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
[info] All tests passed. | |
java.lang.RuntimeException: Nonzero exit value: 1 | |
at scala.sys.package$.error(package.scala:27) | |
at scala.Predef$.error(Predef.scala:142) | |
at sbt.AbstractProcessBuilder.getString(ProcessImpl.scala:146) | |
at sbt.AbstractProcessBuilder.$bang$bang(ProcessImpl.scala:148) | |
at Build$$anonfun$1.apply$mcV$sp(build.scala:71) | |
at Build$$anonfun$1.apply(build.scala:69) | |
at Build$$anonfun$1.apply(build.scala:69) | |
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45) |
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
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0/. main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list | |
sudo apt-get update | |
sudo apt-get -y install mono-complete libmonosgen-2.0-dev |
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
function aws_config | |
if not fgrep -q "[$argv]" ~/.aws/credentials | |
echo "Please specify a valid profile." | |
else | |
set -e AWS_ACCESS_KEY | |
set -e AWS_SECRET_KEY | |
set -g -x ATLAS_TOKEN (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"atlas_token\") { print \$3 }}" ~/.aws/credentials) | |
set account (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"account_id\") { print \$3 }}" ~/.aws/credentials) | |
set username (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"username\") { print \$3 }}" ~/.aws/credentials) | |
set mfarn "arn:aws:iam::$account:mfa/$username" |
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
package com.geteventstore.client; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.Executor; | |
import java.util.function.BiConsumer; | |
import java.util.function.Consumer; | |
public interface EventStoreConnection { | |
CompletableFuture connect(); | |
void close(); |
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
import java.io.UnsupportedEncodingException; | |
public final class HexDumpUtil { | |
public static String formatHexDump(byte[] array, int offset, int length) { | |
final int width = 16; | |
StringBuilder builder = new StringBuilder(); | |
for (int rowOffset = offset; rowOffset < offset + length; rowOffset += width) { | |
builder.append(String.format("%06d: ", rowOffset)); |
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
var order = [...]int{3, 2, 1, 0, 5, 4, 7, 6, 8, 9, 10, 11, 12, 13, 14, 15} | |
func wtfToUUID(netEncoded []byte) uuid.UUID { | |
uuidBytes := make([]byte, 16) | |
for i := 0; i < len(order); i++ { | |
uuidBytes[i] = netEncoded[order[i]] | |
} | |
return uuidBytes | |
} |
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
<powershell> | |
winrm quickconfig -q | |
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}' | |
winrm set winrm/config '@{MaxTimeoutms="1800000"}' | |
winrm set winrm/config/service '@{AllowUnencrypted="true"}' | |
winrm set winrm/config/service/auth '@{Basic="true"}' | |
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow | |
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow |
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
$ mono ~/.dotfiles/vim/bundle/omnisharp-vim/server/OmniSharp/bin/Debug/OmniSharp.exe -p 2000 -s src/EventStore.sln | |
00000048 Using solution path src/EventStore.sln | |
00000050 Using config file /Users/James/.dotfiles/vim/bundle/omnisharp-vim/server/OmniSharp/bin/Debug/config.json | |
Monodoc documentation tree could not be loaded.System.InvalidOperationException: Sequence contains no elements | |
at System.Linq.Enumerable.First[String] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 | |
at MonoDevelop.Projects.HelpService.InitializeHelpTree () [0x00000] in <filename unknown>:0 | |
00001184 OmniSharp server is listening | |
Unhandled Exception: |
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
func getRandomProbablyAvailableSuffixedDnsName(prefix string, client *hostedservice.HostedServiceClient) (string, error) { | |
done := false | |
maybeName := "" | |
for done == false { | |
maybeName = fmt.Sprintf("%s-%d", prefix, rand.Intn(99999)) | |
available, reason, err := client.CheckHostedServiceNameAvailability(maybeName) | |
if err != nil { | |
return "", fmt.Errorf("Error checking cloud service name availability: %s", err) | |
} |
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
diff -r c242bbf5fa8c src/pkg/crypto/tls/common.go | |
--- a/src/pkg/crypto/tls/common.go Wed Jul 17 14:03:27 2013 -0400 | |
+++ b/src/pkg/crypto/tls/common.go Thu Jul 18 13:45:43 2013 -0400 | |
@@ -44,6 +44,7 @@ | |
// TLS handshake message types. | |
const ( | |
+ typeHelloRequest uint8 = 0 | |
typeClientHello uint8 = 1 | |
typeServerHello uint8 = 2 |