Skip to content

Instantly share code, notes, and snippets.

View ianomad's full-sized avatar

Iliiaz Akhmedov ianomad

View GitHub Profile
@quiver
quiver / eic-cli.sh
Last active June 15, 2022 21:23
simple shell script to demonstrate how EC2 Instance Connect CLI is implemented
#!/bin/bash
# simple shell script to demonstrate how EC2 Instance Connect CLI is implemented.
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstances.html
#
# Usage
# $ bash eic-cli.sh i-1234
if [ $# -ne 1 ]; then
echo "Usage"
echo "$ bash eic-cli.sh i-1234"
@diegopacheco
diegopacheco / gatling-ConnectException-assign-address.md
Last active August 24, 2022 16:05
Gatling: Hot fo fix: "java.net.ConnectException: Cannot assign requested address"?
  val httpConf = http
    .baseURL("http://IP:9200")
    .acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
    .doNotTrackHeader("1")
    .acceptLanguageHeader("en-US,en;q=0.5")
    .acceptEncodingHeader("gzip, deflate")
    .userAgentHeader("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0")
    .shareConnections