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
apt-get update && apt-get -y install r-base curl | |
LIBSSL=libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb | |
curl -sSO http://security.debian.org/debian-security/pool/updates/main/o/openssl/$LIBSSL | |
dpkg -i $LIBSSL | |
RSTUDIO=rstudio-server-1.0.153-amd64.deb | |
curl -sSO https://download2.rstudio.org/$RSTUDIO | |
gdebi $RSTUDIO |
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
#!/bin/bash | |
#install R | |
yum install -y R | |
#install RStudio-Server | |
wget https://download2.rstudio.org/rstudio-server-rhel-0.99.465-x86_64.rpm | |
yum install -y --nogpgcheck rstudio-server-rhel-0.99.465-x86_64.rpm | |
#install shiny and shiny-server | |
R -e "install.packages('shiny', repos='http://cran.rstudio.com/')" | |
wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-1.4.0.718-rh5-x86_64.rpm | |
yum install -y --nogpgcheck shiny-server-1.4.0.718-rh5-x86_64.rpm |
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
BEGIN { | |
cmpl = 0xffff; | |
initial = 0x0000; | |
TABLE[ 0] = 0x0000; | |
TABLE[ 1] = 0x1021; | |
TABLE[ 2] = 0x2042; | |
TABLE[ 3] = 0x3063; | |
TABLE[ 4] = 0x4084; |
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
apt-get -y install build-essential cmake | |
curl -sSLO http://www.mirrorservice.org/sites/ftp.apache.org/orc/orc-1.4.1/orc-1.4.1.tar.gz | |
tar -zxf orc-1.4.1.tar.gz | |
cd orc-1.4.1 | |
mkdir build | |
cd build | |
cmake .. -DBUILD_JAVA=OFF | |
make install |
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
adduser sftping | |
mkdir -p /var/sftp/ | |
chmod 755 /var/sftp | |
chown sftping: /var/sftp/ | |
cat <<'EOF' >> /etc/ssh/sshd_config | |
Subsystem sftp internal-sftp | |
Match User sftping | |
X11Forwarding no |
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 | |
profile=default | |
limit=100 | |
while [ -n "$1" ]; do | |
case $1 in | |
--profile ) | |
shift | |
profile=$1 |
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 -o errexit | |
### ------ Preparation ------ ### | |
# brew tap adoptopenjdk/openjdk && brew cask install adoptopenjdk8 | |
# command -v mvn > /dev/null || brew install maven | |
# command -v parquet-tools > /dev/null || brew install parquet-tools |
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 | |
### ------ Preparation ------ ### | |
# Acquire new user credentials to use for Application Default Credentials | |
# Run: gcloud auth application-default login | |
### ------ -------------- --- ### | |
function printUsage() { | |
echo -e " | |
\rUsage: bash ./create-transfer-job.sh [options] <s3-source-data> <gcs-bucket-name> |
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
CREATE TEMP FUNCTION | |
sum_asm(x INT64, y INT64) | |
RETURNS INT64 | |
LANGUAGE js AS """ | |
const sourceBuffer = new Uint8Array([ | |
0, 97, 115, 109, 1, 0, 0, 0, 1, 139, 128, 128, 128, 0, 2, 96, 1, 127, 0, 96, 2, 127, 127, 1, | |
127, 2, 254, 128, 128, 128, 0, 7, 3, 101, 110, 118, 8, 83, 84, 65, 67, 75, 84, 79, 80, 3, 127, | |
0, 3, 101, 110, 118, 9, 83, 84, 65, 67, 75, 95, 77, 65, 88, 3, 127, 0, 3, 101, 110, 118, 18, | |
97, 98, 111, 114, 116, 83, 116, 97, 99, 107, 79, 118, 101, 114, 102, 108, 111, 119, 0, 0, 3, | |
101, 110, 118, 6, 109, 101, 109, 111, 114, 121, 2, 1, 128, 2, 128, 2, 3, 101, 110, 118, 5, 116, |
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 json | |
from boto3.session import Session | |
session = Session() | |
for region_name in session.get_available_regions('secretsmanager'): | |
endpoint_url = f'https://secretsmanager.{region_name}.amazonaws.com' |
OlderNewer