Skip to content

Instantly share code, notes, and snippets.

View adam704a's full-sized avatar

Adam Preston adam704a

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adam704a
adam704a / Forecast API.ipynb
Last active May 19, 2020 13:33
Import ESPEN Forecast API Data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
<title>Title</title>
</head>
@adam704a
adam704a / db_backup.sh
Last active May 22, 2023 18:50
dhis on docker postgres back up
#!/bin/bash
# run sudo aws configure first!
# then schedule like this: sudo crontab -e
# 0 0 * * * /opt/scripts/db_backup.sh # take a backup every midnight
RETENTION_DAYS=14
BUCKET=org.rti-ghd.notresante
DIR=`date +%d-%m-%y`
DEST=./db_backups/$DIR
mkdir $DEST
@adam704a
adam704a / index.html
Created January 26, 2024 18:17
Tournament Bracket with Flexbox
<h1>Athletic Club of Columbus - Open Tournament</h1>
<main id="tournament">
<ul class="round round-1">
<li class="spacer">&nbsp;</li>
<li class="game game-top winner">Jim S <span>2</span></li>
<li class="game game-spacer">&nbsp;</li>
<li class="game game-bottom ">Tom Smith<span>1</span></li>
<li class="spacer">&nbsp;</li>