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
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 |
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
require 'formula' | |
class Macvim < Formula | |
homepage 'http://code.google.com/p/macvim/' | |
url 'https://github.com/b4winckler/macvim/tarball/snapshot-66' | |
version '7.3-66' | |
sha1 'd11696f7089688fa96a45fc57410c60f6ca5a394' | |
head 'https://github.com/b4winckler/macvim.git', :branch => 'master' |
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 ruby | |
require 'octokit' | |
pass_re = /^password: "(.*)"$/ | |
token = `security find-generic-password -s "GitHub API Token" -g 2>&1 | grep "password"`.match(pass_re)[1] | |
c = Octokit::Client.new(:access_token => token) | |
user_login = c.user.login |
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
let subscribeAsAsyncSeq (conn:IEventStoreConnection) (stream:string) (resolveLinks:bool) (bufferSize:int) (ct:CancellationToken) = asyncSeq { | |
use buffer = new System.Collections.Concurrent.BlockingCollection<ResolvedEvent>(bufferSize) | |
let inline onEvent subs (evt:ResolvedEvent) = | |
buffer.Add(evt) | |
let inline onDrop (subs:EventStoreSubscription) (reason:SubscriptionDropReason) (ex:exn) = | |
printfn "SUBSCRIPTION DROPPED! last position=%i reason=%O ex=%O" (subs.LastEventNumber.GetValueOrDefault()) reason ex | |
() | |
let! subs = conn.SubscribeToStreamAsync(stream, resolveLinks, Action<_,_>(onEvent), Action<_,_,_>(onDrop), null) |> Async.AwaitTask | |
yield! buffer.GetConsumingEnumerable(ct) |> AsyncSeq.ofSeq | |
} |
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
#include<stdio.h> | |
main() | |
{ | |
printf("Hello World"); | |
} |
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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"ec2:Describe*", | |
"ec2:CreateKeyPair", | |
"ec2:DeleteKeyPair", | |
"ec2:CreateImage", | |
"ec2:DescribeKeyPairs", | |
"ec2:CreateSecurityGroup", |
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/perl | |
# | |
# The goal of this is to read a bunch of variables from debconf | |
# To implement a "late_command_runparts" like function. | |
# Ie, you would populate the preseed with content like: | |
# late-command-d late-command/90-fix-hosts string content-for-fix-hosts | |
# late-command-d late-command/10-install-my-packages string payload | |
# | |
# Then, in the actual late_command, we would suck out all those | |
# values, and run them by doing something like this: |
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
(* | |
This gist runs a 3 in memory node EventStore cluster | |
and a client that send messages to the cluster | |
To use the web interface, copy EventStore web folders. | |
You can found them in the server distribution at http://geteventstore.com/downloads/. | |
Then connect to http://localhost:2113/ | |
You can view the cluster status at: | |
http://localhost:2113/web/gossip.htm |
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; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Collections.Concurrent; | |
namespace Praeclarum | |
{ | |
/// <summary> | |
/// Wraps a value and only allows access to it using a single thread | |
/// of execution (see SingleThreadQueue). |
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.Collections.Generic; | |
using System.ComponentModel; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Media; | |
using Gma.QrCodeNet.Encoding; | |
namespace Gma.QrCodeNet.Wpf | |
{ | |
public class QrCodeElement : Control |
OlderNewer