Sometimes, you need to use your EC2 instance's credentials to access the AWS resources, for testing, development, etc.. This is how you do it.
create 169.254.169.254
on loopback interface
sudo ip a add 169.254.169.254 dev lo
library(SNPediaR) | |
library(tidyverse) | |
# Original function has som issues with parsing that need fixing | |
getPages2 <- function (titles, verbose = FALSE, limit = 50, wikiParseFunction = identity, | |
baseURL, format, query, ...) | |
{ | |
if (missing(baseURL)) | |
baseURL <- "https://bots.snpedia.com/api.php" | |
if (missing(format)) |
FROM maven:3.6.3-jdk-8 | |
RUN apt update \ | |
&& apt install -y git \ | |
&& curl -sL https://deb.nodesource.com/setup_12.x | bash \ | |
&& apt install -y nodejs | |
RUN git clone https://github.com/drajer-health/eCRNow.git | |
WORKDIR eCRNow/ | |
COPY eCRFiles/application.properties src/main/resources/application.properties | |
COPY eCRFiles/config.js frontend/public/config.js | |
RUN sed -i s/newJsonParser/newXmlParser/g src/main/java/com/drajer/ecrapp/config/SpringConfiguration.java |
This set of instructions goes with this presentation deck.
yum install postgis24_10
FROM postgres:12-alpine | |
ENV POSTGIS_VERSION 2.5.3 | |
ENV PROJ_VERSION 4.9.3 | |
ENV PROTOBUF_VERSION 3.10.0 | |
ENV PROTOBUF_C_VERSION 1.3.2 | |
RUN set -ex \ | |
\ | |
&& apk add --no-cache --virtual .fetch-deps \ |
#! /usr/bin/env python3 | |
def replace_contents( | |
string: str, | |
search_string: str, | |
replace_string: str = "", | |
global_replace: bool = False, | |
terminate_char: str = ' ', | |
return_type: type = str, | |
memoryview_cast: str = '@c' | |
): |
#! /bin/bash | |
TMPLOC=/tmp | |
RD=$TMPLOC/readylock.$$ | |
RQ=$TMPLOC/request_fifo.$$ | |
RS=$TMPLOC/result_file.$$ | |
start_cmdserver() { | |
mkfifo $RQ | |
( |
#! /bin/bash | |
begin='2017-01-01' | |
segments=\ | |
"YEAR 2017-01-01 2018-01-01 | |
Q1 2017-01-01 2017-04-01 | |
Q2 2017-04-01 2017-07-01 | |
Q3 2017-07-01 2017-10-01 | |
Q4 2017-10-01 2018-01-01 | |
JAN 2017-01-01 2017-02-01 | |
FEB 2017-02-01 2017-03-01 |
#! /bin/bash | |
# Created by Eric Marriott | |
for i in perl dislocker sudo; do | |
if ! type "$i" > /dev/null;then | |
echo "$i not found. exiting..." | |
exit 1 | |
fi | |
done |
#! /bin/bash | |
sudo rfkill unblock all | |
sudo killall wpa_supplicant | |
sudo killall dhclient | |
sudo rm -r /run/wpa_supplicant | |
sudo wpa_supplicant -B -iwlp2s0 -Dnl80211 -m '' -c/etc/wpa_supplicant/wpa_supplicant.conf | |
sudo dhclient wlp2s0 $! |