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 bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
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
# | |
# Run git status after specified set of command | |
# | |
# @author Oleksandr Shybystyi [email protected] | |
# | |
# default list of git commands `git status` is running after | |
gitPreAutoStatusCommands=( | |
'add' | |
'rm' |
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
.PHONY: test | |
test: | |
node ndjson_validator.js < good.ndjson | |
! node ndjson_validator.js < bad.ndjson |
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
.PHONY: test | |
test: good.tested bad.tested | |
good.tested: ndjson_validator.js good.ndjson | |
node ndjson_validator.js < good.ndjson | |
touch good.tested | |
bad.tested: ndjson_validator.js bad.ndjson | |
! node ndjson_validator.js < bad.ndjson | |
touch bad.tested |
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
.PHONY: clean | |
clean: | |
-rm *.tested |
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 isLittleEndian = new Uint8Array(new Uint16Array([0x1234]).buffer)[0] === 0x34; |
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 last_known_version = "1.0.0"; | |
const api_root = "https://XXX.workers.dev/version/"; | |
const x86_64_apple_darwin = api_root + "x86_64-apple-darwin"; | |
const x86_64_unknown_linux_gnu = api_root + "x86_64-unknown-linux-gnu"; | |
const x86_64_pc_windows_msvc = api_root + "x86_64-pc-windows-msvc"; | |
const re_x86_64_apple_darwin = /href="\/denoland\/deno\/releases\/download\/v(.*?)\/deno-x86_64-apple-darwin.zip"/; | |
const re_x86_64_unknown_linux_gnu = /href="\/denoland\/deno\/releases\/download\/v(.*?)\/deno-x86_64-unknown-linux-gnu.zip"/; | |
const re_x86_64_pc_windows_msvc = /href="\/denoland\/deno\/releases\/download\/v(.*?)\/deno-x86_64-pc-windows-msvc.zip"/; |
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 rules; | |
import com.google.common.collect.ImmutableMap; | |
import org.eclipse.jdt.launching.SocketUtil; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* Created with IntelliJ IDEA. |
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 integration; | |
import com.kenshoo.trackingfront.configuration.RabbitConfiguration; | |
import com.kenshoo.trackingfront.rabbitmq.RabbitConnectionFactory; | |
import com.rabbitmq.client.Connection; | |
import com.rabbitmq.client.ConnectionFactory; | |
import org.junit.*; | |
import org.junit.rules.ExpectedException; | |
import static org.mockito.Matchers.anyString; |
NewerOlder