- Log on with
ssh root@<public ip>
. - Add new user with
adduser <username>
. - Give that new user sudo permissions with
usermod -aG sudo <username>
- Copy ssh keys from root user to new user
mkdir /home/<username>/.ssh cp ~/.ssh/authorized_keys /home/<username>/.ssh/ chown <username> /home/<username>/.ssh/authorized_keys
- Log out and log on with that new user
ssh <username>@<public ip>
View sentinel-2-l2a-mosaic-120-2019-12-7-01K.json
{ | |
"type": "Feature", | |
"stac_version": "1.0.0-beta.2", | |
"id": "sentinel-2-l2a-mosaic-120-2019-12-7-01K", | |
"properties": { | |
"start_datetime": "2019-12-07T00:00:00", | |
"end_datetime": "2019-12-17T00:00:00", | |
"platform": "sentinel-2", | |
"gsd": 120, | |
"datetime": null |
View pyproject.toml
[tool.poetry] | |
name = "tmp" | |
version = "0.1.0" | |
description = "" | |
authors = ["Kyle Barron"] | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
pyarrow = "^2.0.0" |
View pack-12bits-sentinel.py
import zlib | |
from io import BytesIO | |
# pip install bitstruct | |
import bitstruct | |
import numpy as np | |
import rasterio | |
path = 's3://sentinel-cogs/sentinel-s2-l2a-cogs/2020/S2A_26PQB_20200401_0_L2A/B02.tif' |
View pack-12bits.py
import zlib | |
from io import BytesIO | |
# pip install bitstruct | |
import bitstruct | |
import numpy as np | |
arr = np.random.randint(0, 4096, size=(256, 256), dtype=np.uint16) | |
buf = BytesIO() | |
np.save(buf, arr) |
View widget-deserialization.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View affine_reproj_tile_intersect.py
def intersect_bounds(bounds1, bounds2): | |
"""Find intersection of two bounding boxes | |
Attributes | |
---------- | |
bounds1 : list | |
bounds (left, bottom, right, top). | |
bounds2 : list | |
bounds (left, bottom, right, top). | |
Returns | |
------- |
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View new_droplet.md
View scrape-sitemap.sh
#!/bin/sh | |
SITEMAP=$1 | |
if [ "$SITEMAP" = "" ]; then | |
echo "Usage: $0 http://domain.com/sitemap.xml" | |
exit 1 | |
fi | |
XML=`wget -O - --quiet $SITEMAP` |
View lvm_personal.md
TODO: Create
title | date | author |
---|---|---|
Using LVM; My Setup |
August 11, 2017 |
Kyle Barron |
personal_backup
folder and logical volume on bulk_hdd. This is for non-current tasks which I don't want to have on my NVME.
TODO: Create My Personal LVM Setup
NewerOlder