This file contains hidden or 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
# Install GCC compiler | |
# Download, install and open xcode | |
xcode-select --install | |
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Source profile | |
source ~/.profile |
This file contains hidden or 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/sh -e | |
# /etc/rc.local | |
### BEGIN INIT INFO | |
# Provides: vmbootstrap | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: vmbootstrap |
This file contains hidden or 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
# TITLE | |
echo "DIGITAL OCEAN BOOTSTRAP" | |
# ENV VARS CHECK | |
if [ -z "$1" ] ; then | |
echo "DOMAIN arg1 is not set" >&2 | |
exit 1 | |
fi | |
if [ -z "$2" ] ; then | |
echo "INFRAMAIL arg2 is not set" >&2 |
This file contains hidden or 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
function phead { | |
python3 -c "import pandas as pd; pd.set_option('display.max_columns', 30); pd.options.display.width = 300; print(pd.read_parquet('$1').head($2))" | |
} | |
function ptail { | |
python3 -c "import pandas as pd; pd.set_option('display.max_columns', 30); pd.options.display.width = 300; print(pd.read_parquet('$1').tail($2))" | |
} |