-
brew install gnupg21, pinentry-mac
(this includes gpg-agent and pinentry) -
Generate a key:
$ gpg --gen-key
-
Take the defaults. Whatevs
-
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
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
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
I hereby claim:
- I am dluc on github.
- I am devis (https://keybase.io/devis) on keybase.
- I have a public key ASAqKf0qDP-UL3yWsfNW557yWMjZf3JsaAhsn2KkmCTYzgo
To claim this, I am signing this object:
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
case class IoTHub() { | |
def source(): Source[MessageFromDevice, NotUsed] = /* ... */ | |
def sink[A]()(implicit typedSink: TypedSink[A]): Sink[A, Future[Done]] = typedSink.definition | |
} | |
trait TypedSink[A] { | |
def definition: Sink[A, Future[Done]] | |
} |
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 com.company; | |
import com.microsoft.azure.iot.service.sdk.*; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.concurrent.CompletableFuture; |
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
/* | |
* Copyright (c) Microsoft. All rights reserved. | |
* Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
*/ | |
import com.microsoft.azure.iot.service.sdk.*; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.util.Date; |
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 com.microsoft.azure.iothub; | |
import com.microsoft.azure.iot.service.sdk.FeedbackReceiver; | |
import com.microsoft.azure.iot.service.sdk.IotHubServiceClientProtocol; | |
import com.microsoft.azure.iot.service.sdk.ServiceClient; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; |
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 com.microsoft.azure.iothub; | |
import com.microsoft.azure.iot.service.sdk.FeedbackBatch; | |
import com.microsoft.azure.iot.service.sdk.FeedbackReceiver; | |
import com.microsoft.azure.iot.service.sdk.IotHubServiceClientProtocol; | |
import com.microsoft.azure.iot.service.sdk.ServiceClient; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; |
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
// Test.java | |
import com.microsoft.azure.iot.service.sdk.DeliveryAcknowledgement; | |
import com.microsoft.azure.iot.service.sdk.IotHubServiceClientProtocol; | |
import com.microsoft.azure.iot.service.sdk.Message; | |
import com.microsoft.azure.iot.service.sdk.ServiceClient; | |
import java.nio.charset.StandardCharsets; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; |
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
// BugStatusIsCompletedBeforeCompletion.java | |
import com.microsoft.azure.iot.service.sdk.*; | |
import java.nio.charset.StandardCharsets; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.time.Instant; | |
import java.util.Date; | |
import java.util.UUID; |
OlderNewer