Skip to content

Instantly share code, notes, and snippets.

View dwightgunning's full-sized avatar
:shipit:

Dwight Gunning dwightgunning

:shipit:
View GitHub Profile
@NBrown140
NBrown140 / download_aw3d30.sh
Last active June 21, 2023 15:24
Download full AW3D30 v3.2 dataset
#!/bin/bash
# Script to download all the tiles of the AW3D30 v3.2 dataset
download () {
# I've noticed that non-existing tiles return a 302 response code.
# I assume all the tiles with data have a url that returns 200 response code.
local url=https://www.eorc.jaxa.jp/ALOS/aw3d30/data/release_v2012/$1
echo Cheking $url
local respcode=$(curl -o /dev/null --silent -Iw '%{http_code}' $url)
echo Response code: $respcode
@dwightgunning
dwightgunning / linux-upskill-challenge-notes.md
Created October 5, 2020 07:03
My notes from the Linux Upskill Challenge (Sept 2020)

Linux Upskill Challenge - Notes

Day 1 - Accessing your server

Prohibit password login for the 'root' account: PermitRootLogin prohibit-password

Day 2 - Basic navigation

Use man and search with less/vim command syntax

@acdha
acdha / pre-commit
Last active April 18, 2024 02:22
Git pre-commit hook which runs various code linters. Install this to .git/hooks/pre-commit inside your favorite repos
#!/usr/bin/env PYTHONIOENCODING=utf-8 python
# encoding: utf-8
"""Git pre-commit hook which lints Python, JavaScript, SASS and CSS"""
from __future__ import absolute_import, print_function, unicode_literals
import os
import subprocess
import sys