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 -S ERL_FLAGS=+B elixir | |
Mix.install([{:req, "~> 0.4.0"}]) | |
# the normal Req request which decodes to String | |
resp = Req.get!("https://dummyjson.com/products/1").body | |
IO.puts(resp["title"]) | |
IO.puts(resp["description"]) | |
# supplying the decode keyword list options: |
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
# assumes you have vim and wget installed | |
sudo su | |
cd ~ | |
yum install gcc pcre-devel tar make openssl-devel systemd-devel -y | |
wget https://www.haproxy.org/download/2.3/src/haproxy-2.3.2.tar.gz -O ~/haproxy.tar.gz | |
tar xzvf ~/haproxy.tar.gz -C ~/ |
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
# Download Denodo JDBC driver from https://community.denodo.com/drivers/jdbc/32 | |
# set JDBC_HOME: | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.(latest).jdk/Contents/Home | |
# Download maven from https://maven.apache.org/install.html | |
# unzip/untar and ls to the /bin folder & execute: | |
# this will install/create the Denodo driver for the self-created version number based on the jar filename. |