In this document I'll briefly go over the structure I've set up for organizing and automating the unzipping of each week's cases and installing all the required conda environments.
First off, create the main folder. I called it ds4a
.
mkdir ds4a
#!/bin/sh | |
cd ./$1 | |
for z in *.zip; do | |
echo "Now unzipping ${z}" | |
unzip $z -n -d ../../cases/$1/ | |
done | |
cd ../../cases/$1/ | |
rm -rf __MAC* |
#!/bin/sh | |
cd $1 | |
for D in *; do | |
if [ -d "${D}" ]; then | |
echo "Now working at" | |
echo "${D}" | |
echo "..." | |
cd ${D} | |
conda env update --file osx_env.yml | |
echo "All done!" |
#!/bin/bash | |
eval "$(conda shell.bash hook)" | |
cd $1 | |
echo "" | |
if [ ! -f osx_env.yml ]; then | |
echo "Cant find osx_env.yaml file!" |
#!/bin/sh | |
cd $1 | |
for D in *; do | |
if [ -d "${D}" ]; then | |
echo "Now working at" | |
echo "${D}" | |
echo "..." | |
cd ${D} | |
# Grab correct environment name |
#!/bin/sh | |
# Reads query from file | |
query=$(cat $1) | |
# Creates output file | |
touch $2 | |
# Performs query | |
PGPASSWORD=[password] psql -h [server] -U postgres -d [database] -c "${query}" > $2 |
module Dracula | |
function says(s::String)::Nothing | |
dracula_ascii = " | |
_..._ | |
.' '. | |
; __ __ ; | |
|/ \\ / \\| | |
|\\| -- ' -- |/| | |
|(| \\o| |o/ |)| | |
_\\| > |/_ |
cd | |
git clone --depth=1 --single-branch \ | |
--branch emacs-27 https://github.com/emacs-mirror/emacs.git | |
cd emacs/ | |
sudo apt install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \ | |
libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \ | |
libjansson-dev libharfbuzz-dev libharfbuzz-bin imagemagick \ |