-
To install the OpenSSH on the Windows machine, follow these tutorials:
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
import com.atlassian.jira.bc.issue.search.SearchService | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.jql.builder.JqlQueryBuilder | |
import com.atlassian.jira.util.thread.JiraThreadLocalUtils | |
def searchService = ComponentAccessor.getComponent(SearchService) | |
def customFieldManager = ComponentAccessor.customFieldManager | |
def storyPointsCf = customFieldManager.getCustomFieldObjectByName('Story Points') | |
def issue = event.issue |
-
To install the OpenSSH on the Windows machine, follow these tutorials:
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
Recently, I use JMXterm to collect info about Java JVM via JMX and MBeans. Here is a short note. | |
- Download JMXterm | |
https://sourceforge.net/projects/cyclops-group/files/jmxterm/1.0.0/jmxterm-1.0.0-uber.jar/download | |
- Run JMXterm | |
java -jar jmxterm-1.0.0-uber.jar --url localhost:<jmx listen port> | |
- All MBeans from java.lang | |
$>domain java.lang |
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.lightbend.akka.http.sample | |
import java.util.UUID | |
import akka.NotUsed | |
import akka.actor.{ ActorSystem, Cancellable } | |
import akka.stream.ActorMaterializer | |
import akka.stream.scaladsl.Source | |
import scala.collection.mutable |
Данный гист является сборником важной информацией, используемой в анализе данных.
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
import org.apache.kafka.common.serialization.Serdes; | |
import org.apache.kafka.streams.KafkaStreams; | |
import org.apache.kafka.streams.StreamsConfig; | |
import org.apache.kafka.streams.kstream.KStream; | |
import org.apache.kafka.streams.kstream.KStreamBuilder; | |
import org.apache.kafka.streams.kstream.KTable; | |
import org.apache.kafka.streams.kstream.KeyValueMapper; | |
import org.apache.kafka.streams.kstream.ValueMapper; | |
import java.util.Arrays; |
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
# Like gnome-terminal's command-completion notifications, but usually run | |
# everything within a tmux window? No problem: add this to your .bashrc, and | |
# make sure `xdotool` is installed. Adjust the `notify-send` command line to | |
# taste. | |
# | |
# THIS DOESN'T WORK WITH WAYLAND. If you're on Wayland, let me know if you | |
# come up with a reliable way to identify the currently-focused window. | |
function notify_finished() { | |
# If we're not in tmux, fall back to gnome-terminal's notification. | |
[[ -z $TMUX_PANE ]] && __vte_prompt_command && return |
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
import java.util.concurrent.TimeUnit | |
void convert(int secondsToConvert) { | |
long millis = secondsToConvert * 1000; | |
long hours = TimeUnit.MILLISECONDS.toHours(millis); | |
long minutes = TimeUnit.MILLISECONDS.toMinutes(millis) % TimeUnit.HOURS.toMinutes(1); | |
long seconds = TimeUnit.MILLISECONDS.toSeconds(millis) % TimeUnit.MINUTES.toSeconds(1); | |
String format = String.format("%02d:%02d:%02d", Math.abs(hours), Math.abs(minutes), Math.abs(seconds)); | |
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
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
NewerOlder